Commit
Β·
f0336fd
1
Parent(s):
3b04306
fixed README.md file
Browse files- README.md +8 -4
- reports/.gitkeep +0 -0
- reports/figures/.gitkeep +0 -0
- reports/figures/Training_Validation-Loss_Accuracy.png +0 -0
README.md
CHANGED
@@ -81,8 +81,12 @@ transforms.Compose([
|
|
81 |
transforms.RandomResizedCrop(image_size, scale=(0.8, 1.0), ratio=(0.75, 1.33)),
|
82 |
transforms.ColorJitter(brightness=0.2, contrast=0.2, saturation=0.2, hue=0.1),
|
83 |
transforms.RandomHorizontalFlip(),
|
|
|
|
|
84 |
transforms.ToTensor(),
|
85 |
-
transforms.
|
|
|
|
|
86 |
])
|
87 |
```
|
88 |
|
@@ -105,8 +109,8 @@ from transformers import AutoImageProcessor, ConvNextForImageClassification
|
|
105 |
import torch
|
106 |
|
107 |
# Load model and processor
|
108 |
-
model = ConvNextForImageClassification.from_pretrained("
|
109 |
-
processor = AutoImageProcessor.from_pretrained("
|
110 |
|
111 |
# Load and preprocess image
|
112 |
image = Image.open("example.jpg").convert("RGB")
|
@@ -163,7 +167,7 @@ This result demonstrates the effectiveness of fine-tuning high-capacity pretrain
|
|
163 |
- π Stanford Cars Dataset: [https://huggingface.co/datasets/tanganke/stanford\_cars](https://huggingface.co/datasets/tanganke/stanford_cars)
|
164 |
- π€ Model Card: [https://huggingface.co/sols/car-classification-convnext](https://huggingface.co/sols/car-classification-convnext)
|
165 |
- π GitHub Repository: [https://github.com/Brainster-Data-Science-Academy/CarClassificationTeam1](https://github.com/Brainster-Data-Science-Academy/CarClassificationTeam1)
|
166 |
-
- π Demo Space:
|
167 |
|
168 |
---
|
169 |
## π€ Contributing
|
|
|
81 |
transforms.RandomResizedCrop(image_size, scale=(0.8, 1.0), ratio=(0.75, 1.33)),
|
82 |
transforms.ColorJitter(brightness=0.2, contrast=0.2, saturation=0.2, hue=0.1),
|
83 |
transforms.RandomHorizontalFlip(),
|
84 |
+
transforms.RandomRotation(degrees=15),
|
85 |
+
transforms.RandomGrayscale(p=0.1),
|
86 |
transforms.ToTensor(),
|
87 |
+
transforms.GaussianBlur(kernel_size=(5, 9), sigma=(0.1, 5)),
|
88 |
+
transforms.RandomErasing(p=0.5, scale=(0.02, 0.33), ratio=(0.3, 3.3)),
|
89 |
+
transforms.Normalize(mean=mean, std=std),
|
90 |
])
|
91 |
```
|
92 |
|
|
|
109 |
import torch
|
110 |
|
111 |
# Load model and processor
|
112 |
+
model = ConvNextForImageClassification.from_pretrained("todorristov/car_classification_model")
|
113 |
+
processor = AutoImageProcessor.from_pretrained("todorristov/car_classification_model")
|
114 |
|
115 |
# Load and preprocess image
|
116 |
image = Image.open("example.jpg").convert("RGB")
|
|
|
167 |
- π Stanford Cars Dataset: [https://huggingface.co/datasets/tanganke/stanford\_cars](https://huggingface.co/datasets/tanganke/stanford_cars)
|
168 |
- π€ Model Card: [https://huggingface.co/sols/car-classification-convnext](https://huggingface.co/sols/car-classification-convnext)
|
169 |
- π GitHub Repository: [https://github.com/Brainster-Data-Science-Academy/CarClassificationTeam1](https://github.com/Brainster-Data-Science-Academy/CarClassificationTeam1)
|
170 |
+
- π Demo Space: [https://huggingface.co/spaces/todorristov/car-classification-convnext](https://huggingface.co/spaces/todorristov/car-classification-convnext)
|
171 |
|
172 |
---
|
173 |
## π€ Contributing
|
reports/.gitkeep
ADDED
File without changes
|
reports/figures/.gitkeep
ADDED
File without changes
|
reports/figures/Training_Validation-Loss_Accuracy.png
ADDED
![]() |