End of training
Browse files- README.md +94 -0
- config.json +285 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: microsoft/resnet-152
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- imagefolder
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: Dogs-Breed-Image-Classification-V2
|
12 |
+
results:
|
13 |
+
- task:
|
14 |
+
name: Image Classification
|
15 |
+
type: image-classification
|
16 |
+
dataset:
|
17 |
+
name: imagefolder
|
18 |
+
type: imagefolder
|
19 |
+
config: default
|
20 |
+
split: train
|
21 |
+
args: default
|
22 |
+
metrics:
|
23 |
+
- name: Accuracy
|
24 |
+
type: accuracy
|
25 |
+
value: 0.8408163265306122
|
26 |
+
---
|
27 |
+
|
28 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
29 |
+
should probably proofread and complete it, then remove this comment. -->
|
30 |
+
|
31 |
+
# Dogs-Breed-Image-Classification-V2
|
32 |
+
|
33 |
+
This model is a fine-tuned version of [microsoft/resnet-152](https://huggingface.co/microsoft/resnet-152) on the imagefolder dataset.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 1.0115
|
36 |
+
- Accuracy: 0.8408
|
37 |
+
|
38 |
+
## Model description
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Intended uses & limitations
|
43 |
+
|
44 |
+
More information needed
|
45 |
+
|
46 |
+
## Training and evaluation data
|
47 |
+
|
48 |
+
More information needed
|
49 |
+
|
50 |
+
## Training procedure
|
51 |
+
|
52 |
+
### Training hyperparameters
|
53 |
+
|
54 |
+
The following hyperparameters were used during training:
|
55 |
+
- learning_rate: 5e-06
|
56 |
+
- train_batch_size: 32
|
57 |
+
- eval_batch_size: 32
|
58 |
+
- seed: 42
|
59 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
60 |
+
- lr_scheduler_type: linear
|
61 |
+
- num_epochs: 20
|
62 |
+
|
63 |
+
### Training results
|
64 |
+
|
65 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
66 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
67 |
+
| No log | 1.0 | 483 | 4.6525 | 0.7382 |
|
68 |
+
| 4.7329 | 2.0 | 966 | 4.3558 | 0.7298 |
|
69 |
+
| 4.5033 | 3.0 | 1449 | 3.9568 | 0.7471 |
|
70 |
+
| 4.1405 | 4.0 | 1932 | 3.5160 | 0.7782 |
|
71 |
+
| 3.7176 | 5.0 | 2415 | 3.0805 | 0.7946 |
|
72 |
+
| 3.293 | 6.0 | 2898 | 2.6907 | 0.8021 |
|
73 |
+
| 2.8898 | 7.0 | 3381 | 2.3044 | 0.8126 |
|
74 |
+
| 2.5343 | 8.0 | 3864 | 2.0091 | 0.8177 |
|
75 |
+
| 2.2188 | 9.0 | 4347 | 1.7910 | 0.8126 |
|
76 |
+
| 1.9698 | 10.0 | 4830 | 1.6015 | 0.8194 |
|
77 |
+
| 1.7532 | 11.0 | 5313 | 1.4383 | 0.8220 |
|
78 |
+
| 1.586 | 12.0 | 5796 | 1.3355 | 0.8264 |
|
79 |
+
| 1.4533 | 13.0 | 6279 | 1.2467 | 0.8260 |
|
80 |
+
| 1.336 | 14.0 | 6762 | 1.1575 | 0.8313 |
|
81 |
+
| 1.2641 | 15.0 | 7245 | 1.1038 | 0.8321 |
|
82 |
+
| 1.185 | 16.0 | 7728 | 1.0606 | 0.8395 |
|
83 |
+
| 1.1329 | 17.0 | 8211 | 1.0178 | 0.8398 |
|
84 |
+
| 1.0977 | 18.0 | 8694 | 1.0115 | 0.8408 |
|
85 |
+
| 1.0732 | 19.0 | 9177 | 0.9945 | 0.8381 |
|
86 |
+
| 1.0508 | 20.0 | 9660 | 0.9930 | 0.8393 |
|
87 |
+
|
88 |
+
|
89 |
+
### Framework versions
|
90 |
+
|
91 |
+
- Transformers 4.37.2
|
92 |
+
- Pytorch 2.3.0
|
93 |
+
- Datasets 2.15.0
|
94 |
+
- Tokenizers 0.15.1
|
config.json
ADDED
@@ -0,0 +1,285 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/resnet-152",
|
3 |
+
"architectures": [
|
4 |
+
"ResNetForImageClassification"
|
5 |
+
],
|
6 |
+
"depths": [
|
7 |
+
3,
|
8 |
+
8,
|
9 |
+
36,
|
10 |
+
3
|
11 |
+
],
|
12 |
+
"downsample_in_bottleneck": false,
|
13 |
+
"downsample_in_first_stage": false,
|
14 |
+
"embedding_size": 64,
|
15 |
+
"hidden_act": "relu",
|
16 |
+
"hidden_sizes": [
|
17 |
+
256,
|
18 |
+
512,
|
19 |
+
1024,
|
20 |
+
2048
|
21 |
+
],
|
22 |
+
"id2label": {
|
23 |
+
"0": "Afghan_hound",
|
24 |
+
"1": "African_hunting_dog",
|
25 |
+
"10": "Border_terrier",
|
26 |
+
"100": "kuvasz",
|
27 |
+
"101": "malamute",
|
28 |
+
"102": "malinois",
|
29 |
+
"103": "miniature_pinscher",
|
30 |
+
"104": "miniature_poodle",
|
31 |
+
"105": "miniature_schnauzer",
|
32 |
+
"106": "otterhound",
|
33 |
+
"107": "papillon",
|
34 |
+
"108": "pug",
|
35 |
+
"109": "redbone",
|
36 |
+
"11": "Boston_bull",
|
37 |
+
"110": "schipperke",
|
38 |
+
"111": "silky_terrier",
|
39 |
+
"112": "soft",
|
40 |
+
"113": "standard_poodle",
|
41 |
+
"114": "standard_schnauzer",
|
42 |
+
"115": "toy_poodle",
|
43 |
+
"116": "toy_terrier",
|
44 |
+
"117": "vizsla",
|
45 |
+
"118": "whippet",
|
46 |
+
"119": "wire",
|
47 |
+
"12": "Bouvier_des_Flandres",
|
48 |
+
"13": "Brabancon_griffon",
|
49 |
+
"14": "Brittany_spaniel",
|
50 |
+
"15": "Cardigan",
|
51 |
+
"16": "Chesapeake_Bay_retriever",
|
52 |
+
"17": "Chihuahua",
|
53 |
+
"18": "Dandie_Dinmont",
|
54 |
+
"19": "Doberman",
|
55 |
+
"2": "Airedale",
|
56 |
+
"20": "English_foxhound",
|
57 |
+
"21": "English_setter",
|
58 |
+
"22": "English_springer",
|
59 |
+
"23": "EntleBucher",
|
60 |
+
"24": "Eskimo_dog",
|
61 |
+
"25": "French_bulldog",
|
62 |
+
"26": "German_shepherd",
|
63 |
+
"27": "German_short",
|
64 |
+
"28": "Gordon_setter",
|
65 |
+
"29": "Great_Dane",
|
66 |
+
"3": "American_Staffordshire_terrier",
|
67 |
+
"30": "Great_Pyrenees",
|
68 |
+
"31": "Greater_Swiss_Mountain_dog",
|
69 |
+
"32": "Ibizan_hound",
|
70 |
+
"33": "Irish_setter",
|
71 |
+
"34": "Irish_terrier",
|
72 |
+
"35": "Irish_water_spaniel",
|
73 |
+
"36": "Irish_wolfhound",
|
74 |
+
"37": "Italian_greyhound",
|
75 |
+
"38": "Japanese_spaniel",
|
76 |
+
"39": "Kerry_blue_terrier",
|
77 |
+
"4": "Appenzeller",
|
78 |
+
"40": "Labrador_retriever",
|
79 |
+
"41": "Lakeland_terrier",
|
80 |
+
"42": "Leonberg",
|
81 |
+
"43": "Lhasa",
|
82 |
+
"44": "Maltese_dog",
|
83 |
+
"45": "Mexican_hairless",
|
84 |
+
"46": "Newfoundland",
|
85 |
+
"47": "Norfolk_terrier",
|
86 |
+
"48": "Norwegian_elkhound",
|
87 |
+
"49": "Norwich_terrier",
|
88 |
+
"5": "Australian_terrier",
|
89 |
+
"50": "Old_English_sheepdog",
|
90 |
+
"51": "Pekinese",
|
91 |
+
"52": "Pembroke",
|
92 |
+
"53": "Pomeranian",
|
93 |
+
"54": "Rhodesian_ridgeback",
|
94 |
+
"55": "Rottweiler",
|
95 |
+
"56": "Saint_Bernard",
|
96 |
+
"57": "Saluki",
|
97 |
+
"58": "Samoyed",
|
98 |
+
"59": "Scotch_terrier",
|
99 |
+
"6": "Bedlington_terrier",
|
100 |
+
"60": "Scottish_deerhound",
|
101 |
+
"61": "Sealyham_terrier",
|
102 |
+
"62": "Shetland_sheepdog",
|
103 |
+
"63": "Shih",
|
104 |
+
"64": "Siberian_husky",
|
105 |
+
"65": "Staffordshire_bullterrier",
|
106 |
+
"66": "Sussex_spaniel",
|
107 |
+
"67": "Tibetan_mastiff",
|
108 |
+
"68": "Tibetan_terrier",
|
109 |
+
"69": "Walker_hound",
|
110 |
+
"7": "Bernese_mountain_dog",
|
111 |
+
"70": "Weimaraner",
|
112 |
+
"71": "Welsh_springer_spaniel",
|
113 |
+
"72": "West_Highland_white_terrier",
|
114 |
+
"73": "Yorkshire_terrier",
|
115 |
+
"74": "affenpinscher",
|
116 |
+
"75": "basenji",
|
117 |
+
"76": "basset",
|
118 |
+
"77": "beagle",
|
119 |
+
"78": "black",
|
120 |
+
"79": "bloodhound",
|
121 |
+
"8": "Blenheim_spaniel",
|
122 |
+
"80": "bluetick",
|
123 |
+
"81": "borzoi",
|
124 |
+
"82": "boxer",
|
125 |
+
"83": "briard",
|
126 |
+
"84": "bull_mastiff",
|
127 |
+
"85": "cairn",
|
128 |
+
"86": "chow",
|
129 |
+
"87": "clumber",
|
130 |
+
"88": "cocker_spaniel",
|
131 |
+
"89": "collie",
|
132 |
+
"9": "Border_collie",
|
133 |
+
"90": "curly",
|
134 |
+
"91": "dhole",
|
135 |
+
"92": "dingo",
|
136 |
+
"93": "flat",
|
137 |
+
"94": "giant_schnauzer",
|
138 |
+
"95": "golden_retriever",
|
139 |
+
"96": "groenendael",
|
140 |
+
"97": "keeshond",
|
141 |
+
"98": "kelpie",
|
142 |
+
"99": "komondor"
|
143 |
+
},
|
144 |
+
"label2id": {
|
145 |
+
"Afghan_hound": "0",
|
146 |
+
"African_hunting_dog": "1",
|
147 |
+
"Airedale": "2",
|
148 |
+
"American_Staffordshire_terrier": "3",
|
149 |
+
"Appenzeller": "4",
|
150 |
+
"Australian_terrier": "5",
|
151 |
+
"Bedlington_terrier": "6",
|
152 |
+
"Bernese_mountain_dog": "7",
|
153 |
+
"Blenheim_spaniel": "8",
|
154 |
+
"Border_collie": "9",
|
155 |
+
"Border_terrier": "10",
|
156 |
+
"Boston_bull": "11",
|
157 |
+
"Bouvier_des_Flandres": "12",
|
158 |
+
"Brabancon_griffon": "13",
|
159 |
+
"Brittany_spaniel": "14",
|
160 |
+
"Cardigan": "15",
|
161 |
+
"Chesapeake_Bay_retriever": "16",
|
162 |
+
"Chihuahua": "17",
|
163 |
+
"Dandie_Dinmont": "18",
|
164 |
+
"Doberman": "19",
|
165 |
+
"English_foxhound": "20",
|
166 |
+
"English_setter": "21",
|
167 |
+
"English_springer": "22",
|
168 |
+
"EntleBucher": "23",
|
169 |
+
"Eskimo_dog": "24",
|
170 |
+
"French_bulldog": "25",
|
171 |
+
"German_shepherd": "26",
|
172 |
+
"German_short": "27",
|
173 |
+
"Gordon_setter": "28",
|
174 |
+
"Great_Dane": "29",
|
175 |
+
"Great_Pyrenees": "30",
|
176 |
+
"Greater_Swiss_Mountain_dog": "31",
|
177 |
+
"Ibizan_hound": "32",
|
178 |
+
"Irish_setter": "33",
|
179 |
+
"Irish_terrier": "34",
|
180 |
+
"Irish_water_spaniel": "35",
|
181 |
+
"Irish_wolfhound": "36",
|
182 |
+
"Italian_greyhound": "37",
|
183 |
+
"Japanese_spaniel": "38",
|
184 |
+
"Kerry_blue_terrier": "39",
|
185 |
+
"Labrador_retriever": "40",
|
186 |
+
"Lakeland_terrier": "41",
|
187 |
+
"Leonberg": "42",
|
188 |
+
"Lhasa": "43",
|
189 |
+
"Maltese_dog": "44",
|
190 |
+
"Mexican_hairless": "45",
|
191 |
+
"Newfoundland": "46",
|
192 |
+
"Norfolk_terrier": "47",
|
193 |
+
"Norwegian_elkhound": "48",
|
194 |
+
"Norwich_terrier": "49",
|
195 |
+
"Old_English_sheepdog": "50",
|
196 |
+
"Pekinese": "51",
|
197 |
+
"Pembroke": "52",
|
198 |
+
"Pomeranian": "53",
|
199 |
+
"Rhodesian_ridgeback": "54",
|
200 |
+
"Rottweiler": "55",
|
201 |
+
"Saint_Bernard": "56",
|
202 |
+
"Saluki": "57",
|
203 |
+
"Samoyed": "58",
|
204 |
+
"Scotch_terrier": "59",
|
205 |
+
"Scottish_deerhound": "60",
|
206 |
+
"Sealyham_terrier": "61",
|
207 |
+
"Shetland_sheepdog": "62",
|
208 |
+
"Shih": "63",
|
209 |
+
"Siberian_husky": "64",
|
210 |
+
"Staffordshire_bullterrier": "65",
|
211 |
+
"Sussex_spaniel": "66",
|
212 |
+
"Tibetan_mastiff": "67",
|
213 |
+
"Tibetan_terrier": "68",
|
214 |
+
"Walker_hound": "69",
|
215 |
+
"Weimaraner": "70",
|
216 |
+
"Welsh_springer_spaniel": "71",
|
217 |
+
"West_Highland_white_terrier": "72",
|
218 |
+
"Yorkshire_terrier": "73",
|
219 |
+
"affenpinscher": "74",
|
220 |
+
"basenji": "75",
|
221 |
+
"basset": "76",
|
222 |
+
"beagle": "77",
|
223 |
+
"black": "78",
|
224 |
+
"bloodhound": "79",
|
225 |
+
"bluetick": "80",
|
226 |
+
"borzoi": "81",
|
227 |
+
"boxer": "82",
|
228 |
+
"briard": "83",
|
229 |
+
"bull_mastiff": "84",
|
230 |
+
"cairn": "85",
|
231 |
+
"chow": "86",
|
232 |
+
"clumber": "87",
|
233 |
+
"cocker_spaniel": "88",
|
234 |
+
"collie": "89",
|
235 |
+
"curly": "90",
|
236 |
+
"dhole": "91",
|
237 |
+
"dingo": "92",
|
238 |
+
"flat": "93",
|
239 |
+
"giant_schnauzer": "94",
|
240 |
+
"golden_retriever": "95",
|
241 |
+
"groenendael": "96",
|
242 |
+
"keeshond": "97",
|
243 |
+
"kelpie": "98",
|
244 |
+
"komondor": "99",
|
245 |
+
"kuvasz": "100",
|
246 |
+
"malamute": "101",
|
247 |
+
"malinois": "102",
|
248 |
+
"miniature_pinscher": "103",
|
249 |
+
"miniature_poodle": "104",
|
250 |
+
"miniature_schnauzer": "105",
|
251 |
+
"otterhound": "106",
|
252 |
+
"papillon": "107",
|
253 |
+
"pug": "108",
|
254 |
+
"redbone": "109",
|
255 |
+
"schipperke": "110",
|
256 |
+
"silky_terrier": "111",
|
257 |
+
"soft": "112",
|
258 |
+
"standard_poodle": "113",
|
259 |
+
"standard_schnauzer": "114",
|
260 |
+
"toy_poodle": "115",
|
261 |
+
"toy_terrier": "116",
|
262 |
+
"vizsla": "117",
|
263 |
+
"whippet": "118",
|
264 |
+
"wire": "119"
|
265 |
+
},
|
266 |
+
"layer_type": "bottleneck",
|
267 |
+
"model_type": "resnet",
|
268 |
+
"num_channels": 3,
|
269 |
+
"out_features": [
|
270 |
+
"stage4"
|
271 |
+
],
|
272 |
+
"out_indices": [
|
273 |
+
4
|
274 |
+
],
|
275 |
+
"problem_type": "single_label_classification",
|
276 |
+
"stage_names": [
|
277 |
+
"stem",
|
278 |
+
"stage1",
|
279 |
+
"stage2",
|
280 |
+
"stage3",
|
281 |
+
"stage4"
|
282 |
+
],
|
283 |
+
"torch_dtype": "float32",
|
284 |
+
"transformers_version": "4.37.2"
|
285 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d5bdbed7f9b92410340fd95bf723d0ac3d3661f665f535918e475ec76ad9c70b
|
3 |
+
size 234289096
|
preprocessor_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_pct": 0.875,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"image_mean": [
|
7 |
+
0.485,
|
8 |
+
0.456,
|
9 |
+
0.406
|
10 |
+
],
|
11 |
+
"image_processor_type": "ConvNextImageProcessor",
|
12 |
+
"image_std": [
|
13 |
+
0.229,
|
14 |
+
0.224,
|
15 |
+
0.225
|
16 |
+
],
|
17 |
+
"resample": 3,
|
18 |
+
"rescale_factor": 0.00392156862745098,
|
19 |
+
"size": {
|
20 |
+
"shortest_edge": 224
|
21 |
+
}
|
22 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b6172a8c46a760cd578912ba454e8b7395d6b0d5a52a685ac5d5feee7fd3b83e
|
3 |
+
size 4728
|