TalonMeyer
commited on
Commit
•
f2aaab6
1
Parent(s):
fe68b6a
TalonMeyer/dvm-cars-vit-first-5k
Browse files
README.md
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: google/vit-base-patch16-224
|
5 |
+
tags:
|
6 |
+
- image-classification
|
7 |
+
- generated_from_trainer
|
8 |
+
datasets:
|
9 |
+
- imagefolder
|
10 |
+
metrics:
|
11 |
+
- accuracy
|
12 |
+
model-index:
|
13 |
+
- name: dvm-cars-vit-first-5k
|
14 |
+
results:
|
15 |
+
- task:
|
16 |
+
name: Image Classification
|
17 |
+
type: image-classification
|
18 |
+
dataset:
|
19 |
+
name: TalonMeyer/dvm-cars-dataset-first-5k
|
20 |
+
type: imagefolder
|
21 |
+
config: default
|
22 |
+
split: validation
|
23 |
+
args: default
|
24 |
+
metrics:
|
25 |
+
- name: Accuracy
|
26 |
+
type: accuracy
|
27 |
+
value: 0.4431137724550898
|
28 |
+
---
|
29 |
+
|
30 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
31 |
+
should probably proofread and complete it, then remove this comment. -->
|
32 |
+
|
33 |
+
# dvm-cars-vit-first-5k
|
34 |
+
|
35 |
+
This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the TalonMeyer/dvm-cars-dataset-first-5k dataset.
|
36 |
+
It achieves the following results on the evaluation set:
|
37 |
+
- Loss: 2.3711
|
38 |
+
- Accuracy: 0.4431
|
39 |
+
|
40 |
+
## Model description
|
41 |
+
|
42 |
+
More information needed
|
43 |
+
|
44 |
+
## Intended uses & limitations
|
45 |
+
|
46 |
+
More information needed
|
47 |
+
|
48 |
+
## Training and evaluation data
|
49 |
+
|
50 |
+
More information needed
|
51 |
+
|
52 |
+
## Training procedure
|
53 |
+
|
54 |
+
### Training hyperparameters
|
55 |
+
|
56 |
+
The following hyperparameters were used during training:
|
57 |
+
- learning_rate: 0.0003
|
58 |
+
- train_batch_size: 16
|
59 |
+
- eval_batch_size: 8
|
60 |
+
- seed: 42
|
61 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
62 |
+
- lr_scheduler_type: linear
|
63 |
+
- num_epochs: 5
|
64 |
+
|
65 |
+
### Training results
|
66 |
+
|
67 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
68 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
69 |
+
| 3.1701 | 1.0 | 251 | 2.9441 | 0.2994 |
|
70 |
+
| 2.5577 | 2.0 | 502 | 2.6693 | 0.3333 |
|
71 |
+
| 2.3469 | 3.0 | 753 | 2.5099 | 0.3593 |
|
72 |
+
| 2.1792 | 4.0 | 1004 | 2.4285 | 0.4032 |
|
73 |
+
| 2.0967 | 5.0 | 1255 | 2.4063 | 0.4152 |
|
74 |
+
|
75 |
+
|
76 |
+
### Framework versions
|
77 |
+
|
78 |
+
- Transformers 4.44.2
|
79 |
+
- Pytorch 2.4.0+cu121
|
80 |
+
- Datasets 2.21.0
|
81 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,228 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224",
|
3 |
+
"architectures": [
|
4 |
+
"ViTForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"encoder_stride": 16,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.0,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "Kia Rio 2006 Black",
|
13 |
+
"1": "Kia Rio 2006 Blue",
|
14 |
+
"2": "Kia Rio 2006 Red",
|
15 |
+
"3": "Kia Rio 2006 Silver",
|
16 |
+
"4": "Kia Rio 2011 Black",
|
17 |
+
"5": "Kia Rio 2011 Blue",
|
18 |
+
"6": "Kia Rio 2011 Red",
|
19 |
+
"7": "Kia Rio 2011 Silver",
|
20 |
+
"8": "Kia Rio 2011 Unlisted",
|
21 |
+
"9": "Kia Rio 2011 White",
|
22 |
+
"10": "Kia Rio 2012 Grey",
|
23 |
+
"11": "Kia Rio 2015 Black",
|
24 |
+
"12": "Kia Rio 2015 Blue",
|
25 |
+
"13": "Kia Rio 2015 Grey",
|
26 |
+
"14": "Kia Rio 2015 Red",
|
27 |
+
"15": "Kia Rio 2015 Silver",
|
28 |
+
"16": "Kia Rio 2015 Unlisted",
|
29 |
+
"17": "Kia Rio 2015 White",
|
30 |
+
"18": "Kia Rio 2015 Yellow",
|
31 |
+
"19": "Kia Rio 2016 Black",
|
32 |
+
"20": "Kia Rio 2016 Blue",
|
33 |
+
"21": "Kia Rio 2016 Grey",
|
34 |
+
"22": "Kia Rio 2016 Red",
|
35 |
+
"23": "Kia Rio 2016 Silver",
|
36 |
+
"24": "Kia Rio 2016 Unlisted",
|
37 |
+
"25": "Kia Rio 2016 White",
|
38 |
+
"26": "Kia Rio 2016 Yellow",
|
39 |
+
"27": "Kia Rio 2019 Black",
|
40 |
+
"28": "Kia Rio 2019 Blue",
|
41 |
+
"29": "Kia Rio 2019 Brown",
|
42 |
+
"30": "Kia Rio 2019 Grey",
|
43 |
+
"31": "Kia Rio 2019 Red",
|
44 |
+
"32": "Kia Rio 2019 Silver",
|
45 |
+
"33": "Kia Rio 2019 White",
|
46 |
+
"34": "Kia Rio 2019 Yellow",
|
47 |
+
"35": "Kia Soul 2009 Beige",
|
48 |
+
"36": "Kia Soul 2009 Black",
|
49 |
+
"37": "Kia Soul 2009 Blue",
|
50 |
+
"38": "Kia Soul 2009 Orange",
|
51 |
+
"39": "Kia Soul 2009 Red",
|
52 |
+
"40": "Kia Soul 2009 Silver",
|
53 |
+
"41": "Kia Soul 2009 Unlisted",
|
54 |
+
"42": "Kia Soul 2009 White",
|
55 |
+
"43": "Kia Soul 2010 Black",
|
56 |
+
"44": "Kia Soul 2010 Blue",
|
57 |
+
"45": "Kia Soul 2010 Brown",
|
58 |
+
"46": "Kia Soul 2010 Grey",
|
59 |
+
"47": "Kia Soul 2010 Red",
|
60 |
+
"48": "Kia Soul 2010 Silver",
|
61 |
+
"49": "Kia Soul 2010 Unlisted",
|
62 |
+
"50": "Kia Soul 2010 White",
|
63 |
+
"51": "Kia Soul 2011 Black",
|
64 |
+
"52": "Kia Soul 2011 Blue",
|
65 |
+
"53": "Kia Soul 2011 Bronze",
|
66 |
+
"54": "Kia Soul 2011 Brown",
|
67 |
+
"55": "Kia Soul 2011 Green",
|
68 |
+
"56": "Kia Soul 2011 Grey",
|
69 |
+
"57": "Kia Soul 2011 Red",
|
70 |
+
"58": "Kia Soul 2011 Silver",
|
71 |
+
"59": "Kia Soul 2011 Unlisted",
|
72 |
+
"60": "Kia Soul 2011 White",
|
73 |
+
"61": "Kia Soul 2012 Black",
|
74 |
+
"62": "Kia Soul 2012 Blue",
|
75 |
+
"63": "Kia Soul 2012 Green",
|
76 |
+
"64": "Kia Soul 2012 Red",
|
77 |
+
"65": "Kia Soul 2012 Silver",
|
78 |
+
"66": "Kia Soul 2012 White",
|
79 |
+
"67": "Kia Soul 2013 Black",
|
80 |
+
"68": "Kia Soul 2013 Blue",
|
81 |
+
"69": "Kia Soul 2013 Bronze",
|
82 |
+
"70": "Kia Soul 2013 Red",
|
83 |
+
"71": "Kia Soul 2013 Silver",
|
84 |
+
"72": "Kia Soul 2013 Unlisted",
|
85 |
+
"73": "Kia Soul 2013 White",
|
86 |
+
"74": "Kia Soul 2014 Black",
|
87 |
+
"75": "Kia Soul 2014 Blue",
|
88 |
+
"76": "Kia Soul 2014 Brown",
|
89 |
+
"77": "Kia Soul 2014 Green",
|
90 |
+
"78": "Kia Soul 2014 Multicolour",
|
91 |
+
"79": "Kia Soul 2014 Red",
|
92 |
+
"80": "Kia Soul 2014 Silver",
|
93 |
+
"81": "Kia Soul 2014 Unlisted",
|
94 |
+
"82": "Kia Soul 2014 White",
|
95 |
+
"83": "Kia Soul 2014 Yellow",
|
96 |
+
"84": "Kia Soul 2015 Black",
|
97 |
+
"85": "Kia Soul 2015 Blue",
|
98 |
+
"86": "Kia Soul 2015 Green",
|
99 |
+
"87": "Kia Soul 2015 Grey",
|
100 |
+
"88": "Kia Soul 2015 Red",
|
101 |
+
"89": "Kia Soul 2015 Silver",
|
102 |
+
"90": "Kia Soul 2015 Unlisted",
|
103 |
+
"91": "Kia Soul 2015 White",
|
104 |
+
"92": "Kia Soul 2015 Yellow",
|
105 |
+
"93": "Kia Soul 2016 Black",
|
106 |
+
"94": "Kia Soul 2016 Blue",
|
107 |
+
"95": "Kia Soul 2016 Grey",
|
108 |
+
"96": "Kia Soul 2016 Red",
|
109 |
+
"97": "Kia Soul 2016 Silver",
|
110 |
+
"98": "Kia Soul 2016 White",
|
111 |
+
"99": "Kia Soul 2016 Yellow"
|
112 |
+
},
|
113 |
+
"image_size": 224,
|
114 |
+
"initializer_range": 0.02,
|
115 |
+
"intermediate_size": 3072,
|
116 |
+
"label2id": {
|
117 |
+
"Kia Rio 2006 Black": 0,
|
118 |
+
"Kia Rio 2006 Blue": 1,
|
119 |
+
"Kia Rio 2006 Red": 2,
|
120 |
+
"Kia Rio 2006 Silver": 3,
|
121 |
+
"Kia Rio 2011 Black": 4,
|
122 |
+
"Kia Rio 2011 Blue": 5,
|
123 |
+
"Kia Rio 2011 Red": 6,
|
124 |
+
"Kia Rio 2011 Silver": 7,
|
125 |
+
"Kia Rio 2011 Unlisted": 8,
|
126 |
+
"Kia Rio 2011 White": 9,
|
127 |
+
"Kia Rio 2012 Grey": 10,
|
128 |
+
"Kia Rio 2015 Black": 11,
|
129 |
+
"Kia Rio 2015 Blue": 12,
|
130 |
+
"Kia Rio 2015 Grey": 13,
|
131 |
+
"Kia Rio 2015 Red": 14,
|
132 |
+
"Kia Rio 2015 Silver": 15,
|
133 |
+
"Kia Rio 2015 Unlisted": 16,
|
134 |
+
"Kia Rio 2015 White": 17,
|
135 |
+
"Kia Rio 2015 Yellow": 18,
|
136 |
+
"Kia Rio 2016 Black": 19,
|
137 |
+
"Kia Rio 2016 Blue": 20,
|
138 |
+
"Kia Rio 2016 Grey": 21,
|
139 |
+
"Kia Rio 2016 Red": 22,
|
140 |
+
"Kia Rio 2016 Silver": 23,
|
141 |
+
"Kia Rio 2016 Unlisted": 24,
|
142 |
+
"Kia Rio 2016 White": 25,
|
143 |
+
"Kia Rio 2016 Yellow": 26,
|
144 |
+
"Kia Rio 2019 Black": 27,
|
145 |
+
"Kia Rio 2019 Blue": 28,
|
146 |
+
"Kia Rio 2019 Brown": 29,
|
147 |
+
"Kia Rio 2019 Grey": 30,
|
148 |
+
"Kia Rio 2019 Red": 31,
|
149 |
+
"Kia Rio 2019 Silver": 32,
|
150 |
+
"Kia Rio 2019 White": 33,
|
151 |
+
"Kia Rio 2019 Yellow": 34,
|
152 |
+
"Kia Soul 2009 Beige": 35,
|
153 |
+
"Kia Soul 2009 Black": 36,
|
154 |
+
"Kia Soul 2009 Blue": 37,
|
155 |
+
"Kia Soul 2009 Orange": 38,
|
156 |
+
"Kia Soul 2009 Red": 39,
|
157 |
+
"Kia Soul 2009 Silver": 40,
|
158 |
+
"Kia Soul 2009 Unlisted": 41,
|
159 |
+
"Kia Soul 2009 White": 42,
|
160 |
+
"Kia Soul 2010 Black": 43,
|
161 |
+
"Kia Soul 2010 Blue": 44,
|
162 |
+
"Kia Soul 2010 Brown": 45,
|
163 |
+
"Kia Soul 2010 Grey": 46,
|
164 |
+
"Kia Soul 2010 Red": 47,
|
165 |
+
"Kia Soul 2010 Silver": 48,
|
166 |
+
"Kia Soul 2010 Unlisted": 49,
|
167 |
+
"Kia Soul 2010 White": 50,
|
168 |
+
"Kia Soul 2011 Black": 51,
|
169 |
+
"Kia Soul 2011 Blue": 52,
|
170 |
+
"Kia Soul 2011 Bronze": 53,
|
171 |
+
"Kia Soul 2011 Brown": 54,
|
172 |
+
"Kia Soul 2011 Green": 55,
|
173 |
+
"Kia Soul 2011 Grey": 56,
|
174 |
+
"Kia Soul 2011 Red": 57,
|
175 |
+
"Kia Soul 2011 Silver": 58,
|
176 |
+
"Kia Soul 2011 Unlisted": 59,
|
177 |
+
"Kia Soul 2011 White": 60,
|
178 |
+
"Kia Soul 2012 Black": 61,
|
179 |
+
"Kia Soul 2012 Blue": 62,
|
180 |
+
"Kia Soul 2012 Green": 63,
|
181 |
+
"Kia Soul 2012 Red": 64,
|
182 |
+
"Kia Soul 2012 Silver": 65,
|
183 |
+
"Kia Soul 2012 White": 66,
|
184 |
+
"Kia Soul 2013 Black": 67,
|
185 |
+
"Kia Soul 2013 Blue": 68,
|
186 |
+
"Kia Soul 2013 Bronze": 69,
|
187 |
+
"Kia Soul 2013 Red": 70,
|
188 |
+
"Kia Soul 2013 Silver": 71,
|
189 |
+
"Kia Soul 2013 Unlisted": 72,
|
190 |
+
"Kia Soul 2013 White": 73,
|
191 |
+
"Kia Soul 2014 Black": 74,
|
192 |
+
"Kia Soul 2014 Blue": 75,
|
193 |
+
"Kia Soul 2014 Brown": 76,
|
194 |
+
"Kia Soul 2014 Green": 77,
|
195 |
+
"Kia Soul 2014 Multicolour": 78,
|
196 |
+
"Kia Soul 2014 Red": 79,
|
197 |
+
"Kia Soul 2014 Silver": 80,
|
198 |
+
"Kia Soul 2014 Unlisted": 81,
|
199 |
+
"Kia Soul 2014 White": 82,
|
200 |
+
"Kia Soul 2014 Yellow": 83,
|
201 |
+
"Kia Soul 2015 Black": 84,
|
202 |
+
"Kia Soul 2015 Blue": 85,
|
203 |
+
"Kia Soul 2015 Green": 86,
|
204 |
+
"Kia Soul 2015 Grey": 87,
|
205 |
+
"Kia Soul 2015 Red": 88,
|
206 |
+
"Kia Soul 2015 Silver": 89,
|
207 |
+
"Kia Soul 2015 Unlisted": 90,
|
208 |
+
"Kia Soul 2015 White": 91,
|
209 |
+
"Kia Soul 2015 Yellow": 92,
|
210 |
+
"Kia Soul 2016 Black": 93,
|
211 |
+
"Kia Soul 2016 Blue": 94,
|
212 |
+
"Kia Soul 2016 Grey": 95,
|
213 |
+
"Kia Soul 2016 Red": 96,
|
214 |
+
"Kia Soul 2016 Silver": 97,
|
215 |
+
"Kia Soul 2016 White": 98,
|
216 |
+
"Kia Soul 2016 Yellow": 99
|
217 |
+
},
|
218 |
+
"layer_norm_eps": 1e-12,
|
219 |
+
"model_type": "vit",
|
220 |
+
"num_attention_heads": 12,
|
221 |
+
"num_channels": 3,
|
222 |
+
"num_hidden_layers": 12,
|
223 |
+
"patch_size": 16,
|
224 |
+
"problem_type": "single_label_classification",
|
225 |
+
"qkv_bias": true,
|
226 |
+
"torch_dtype": "float32",
|
227 |
+
"transformers_version": "4.44.2"
|
228 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d6a0a070dd0625eaacbb6f5ec56aa4d02dde25e5e4f383208e044009636f8ef9
|
3 |
+
size 343525432
|
preprocessor_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_rescale": true,
|
4 |
+
"do_resize": true,
|
5 |
+
"image_mean": [
|
6 |
+
0.5,
|
7 |
+
0.5,
|
8 |
+
0.5
|
9 |
+
],
|
10 |
+
"image_processor_type": "ViTImageProcessor",
|
11 |
+
"image_std": [
|
12 |
+
0.5,
|
13 |
+
0.5,
|
14 |
+
0.5
|
15 |
+
],
|
16 |
+
"resample": 2,
|
17 |
+
"rescale_factor": 0.00392156862745098,
|
18 |
+
"size": {
|
19 |
+
"height": 224,
|
20 |
+
"width": 224
|
21 |
+
}
|
22 |
+
}
|
runs/Sep05_00-16-42_5981fced46a1/events.out.tfevents.1725495408.5981fced46a1.897.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3ef83f15d9f2daa0a35a8306ab00c72a9136bacceac7d90b51d0982b4cac83cc
|
3 |
+
size 37950
|
runs/Sep05_00-16-42_5981fced46a1/events.out.tfevents.1725495815.5981fced46a1.897.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f429aeace4e0282549676f50f3cc30ea403ba2f3cb3d2c8de7cbcba46c5bdb1c
|
3 |
+
size 411
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1a9f2c32022b14fdb5327ac39e4c804a816624eb543806fa335d7ff5cd84ffaf
|
3 |
+
size 5176
|