jhoppanne commited on
Commit
5bc5cad
1 Parent(s): 39ffcc3

End of training

Browse files
Files changed (5) hide show
  1. README.md +174 -0
  2. config.json +44 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +22 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21k
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - imagefolder
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: Emotion-Image-Classification-V3
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.6375
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
+ # Emotion-Image-Classification-V3
32
+
33
+ This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the imagefolder dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 1.5048
36
+ - Accuracy: 0.6375
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-05
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: 100
62
+
63
+ ### Training results
64
+
65
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
66
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
67
+ | No log | 1.0 | 20 | 1.4141 | 0.5437 |
68
+ | No log | 2.0 | 40 | 1.6711 | 0.4375 |
69
+ | No log | 3.0 | 60 | 1.3988 | 0.6 |
70
+ | No log | 4.0 | 80 | 1.5072 | 0.5625 |
71
+ | No log | 5.0 | 100 | 1.3970 | 0.6125 |
72
+ | No log | 6.0 | 120 | 1.3488 | 0.625 |
73
+ | No log | 7.0 | 140 | 1.4599 | 0.5437 |
74
+ | No log | 8.0 | 160 | 1.4678 | 0.5813 |
75
+ | No log | 9.0 | 180 | 1.6072 | 0.5375 |
76
+ | No log | 10.0 | 200 | 1.2243 | 0.6312 |
77
+ | No log | 11.0 | 220 | 1.2860 | 0.5875 |
78
+ | No log | 12.0 | 240 | 1.2472 | 0.5875 |
79
+ | No log | 13.0 | 260 | 1.3423 | 0.5875 |
80
+ | No log | 14.0 | 280 | 1.3879 | 0.5875 |
81
+ | No log | 15.0 | 300 | 1.4201 | 0.575 |
82
+ | No log | 16.0 | 320 | 1.5388 | 0.5312 |
83
+ | No log | 17.0 | 340 | 1.5433 | 0.55 |
84
+ | No log | 18.0 | 360 | 1.3812 | 0.5875 |
85
+ | No log | 19.0 | 380 | 1.4629 | 0.5938 |
86
+ | No log | 20.0 | 400 | 1.5240 | 0.525 |
87
+ | No log | 21.0 | 420 | 1.4818 | 0.5437 |
88
+ | No log | 22.0 | 440 | 1.4461 | 0.5687 |
89
+ | No log | 23.0 | 460 | 1.3944 | 0.5875 |
90
+ | No log | 24.0 | 480 | 1.6598 | 0.55 |
91
+ | 0.1882 | 25.0 | 500 | 1.4268 | 0.6188 |
92
+ | 0.1882 | 26.0 | 520 | 1.6246 | 0.5563 |
93
+ | 0.1882 | 27.0 | 540 | 1.3836 | 0.6125 |
94
+ | 0.1882 | 28.0 | 560 | 1.7652 | 0.4813 |
95
+ | 0.1882 | 29.0 | 580 | 1.4360 | 0.5625 |
96
+ | 0.1882 | 30.0 | 600 | 1.5103 | 0.55 |
97
+ | 0.1882 | 31.0 | 620 | 1.4546 | 0.5563 |
98
+ | 0.1882 | 32.0 | 640 | 1.4085 | 0.575 |
99
+ | 0.1882 | 33.0 | 660 | 1.4729 | 0.6062 |
100
+ | 0.1882 | 34.0 | 680 | 1.7415 | 0.5375 |
101
+ | 0.1882 | 35.0 | 700 | 1.7349 | 0.5375 |
102
+ | 0.1882 | 36.0 | 720 | 1.6331 | 0.5687 |
103
+ | 0.1882 | 37.0 | 740 | 1.5159 | 0.6062 |
104
+ | 0.1882 | 38.0 | 760 | 1.5464 | 0.5875 |
105
+ | 0.1882 | 39.0 | 780 | 1.5402 | 0.5938 |
106
+ | 0.1882 | 40.0 | 800 | 1.5403 | 0.6 |
107
+ | 0.1882 | 41.0 | 820 | 1.4509 | 0.65 |
108
+ | 0.1882 | 42.0 | 840 | 1.7641 | 0.5437 |
109
+ | 0.1882 | 43.0 | 860 | 1.5503 | 0.5813 |
110
+ | 0.1882 | 44.0 | 880 | 1.6178 | 0.5687 |
111
+ | 0.1882 | 45.0 | 900 | 1.5877 | 0.6062 |
112
+ | 0.1882 | 46.0 | 920 | 1.7210 | 0.55 |
113
+ | 0.1882 | 47.0 | 940 | 1.5960 | 0.6188 |
114
+ | 0.1882 | 48.0 | 960 | 1.7922 | 0.55 |
115
+ | 0.1882 | 49.0 | 980 | 2.0035 | 0.525 |
116
+ | 0.1299 | 50.0 | 1000 | 1.8269 | 0.5062 |
117
+ | 0.1299 | 51.0 | 1020 | 1.6933 | 0.5687 |
118
+ | 0.1299 | 52.0 | 1040 | 1.7252 | 0.5312 |
119
+ | 0.1299 | 53.0 | 1060 | 1.6312 | 0.6 |
120
+ | 0.1299 | 54.0 | 1080 | 1.8208 | 0.5375 |
121
+ | 0.1299 | 55.0 | 1100 | 1.7589 | 0.575 |
122
+ | 0.1299 | 56.0 | 1120 | 1.7185 | 0.5875 |
123
+ | 0.1299 | 57.0 | 1140 | 1.7227 | 0.5437 |
124
+ | 0.1299 | 58.0 | 1160 | 1.8849 | 0.5188 |
125
+ | 0.1299 | 59.0 | 1180 | 1.7565 | 0.5687 |
126
+ | 0.1299 | 60.0 | 1200 | 1.6048 | 0.6062 |
127
+ | 0.1299 | 61.0 | 1220 | 1.5088 | 0.6125 |
128
+ | 0.1299 | 62.0 | 1240 | 1.6270 | 0.5687 |
129
+ | 0.1299 | 63.0 | 1260 | 1.5913 | 0.625 |
130
+ | 0.1299 | 64.0 | 1280 | 1.7789 | 0.5625 |
131
+ | 0.1299 | 65.0 | 1300 | 1.7923 | 0.55 |
132
+ | 0.1299 | 66.0 | 1320 | 1.9365 | 0.575 |
133
+ | 0.1299 | 67.0 | 1340 | 1.7365 | 0.5938 |
134
+ | 0.1299 | 68.0 | 1360 | 1.8584 | 0.55 |
135
+ | 0.1299 | 69.0 | 1380 | 1.9811 | 0.5062 |
136
+ | 0.1299 | 70.0 | 1400 | 1.9433 | 0.55 |
137
+ | 0.1299 | 71.0 | 1420 | 1.7644 | 0.575 |
138
+ | 0.1299 | 72.0 | 1440 | 1.7661 | 0.6 |
139
+ | 0.1299 | 73.0 | 1460 | 1.8884 | 0.5687 |
140
+ | 0.1299 | 74.0 | 1480 | 1.7504 | 0.5813 |
141
+ | 0.0774 | 75.0 | 1500 | 1.9648 | 0.5687 |
142
+ | 0.0774 | 76.0 | 1520 | 1.8968 | 0.5437 |
143
+ | 0.0774 | 77.0 | 1540 | 1.7752 | 0.5875 |
144
+ | 0.0774 | 78.0 | 1560 | 1.7504 | 0.625 |
145
+ | 0.0774 | 79.0 | 1580 | 1.7458 | 0.6 |
146
+ | 0.0774 | 80.0 | 1600 | 1.8044 | 0.5938 |
147
+ | 0.0774 | 81.0 | 1620 | 1.6748 | 0.5813 |
148
+ | 0.0774 | 82.0 | 1640 | 1.7661 | 0.575 |
149
+ | 0.0774 | 83.0 | 1660 | 1.8534 | 0.575 |
150
+ | 0.0774 | 84.0 | 1680 | 1.7733 | 0.6125 |
151
+ | 0.0774 | 85.0 | 1700 | 1.7857 | 0.575 |
152
+ | 0.0774 | 86.0 | 1720 | 1.7397 | 0.6 |
153
+ | 0.0774 | 87.0 | 1740 | 1.7496 | 0.5813 |
154
+ | 0.0774 | 88.0 | 1760 | 1.8774 | 0.5813 |
155
+ | 0.0774 | 89.0 | 1780 | 1.6830 | 0.5938 |
156
+ | 0.0774 | 90.0 | 1800 | 1.9231 | 0.5563 |
157
+ | 0.0774 | 91.0 | 1820 | 1.8051 | 0.5875 |
158
+ | 0.0774 | 92.0 | 1840 | 1.8424 | 0.5938 |
159
+ | 0.0774 | 93.0 | 1860 | 1.8644 | 0.575 |
160
+ | 0.0774 | 94.0 | 1880 | 1.8415 | 0.5687 |
161
+ | 0.0774 | 95.0 | 1900 | 1.8917 | 0.55 |
162
+ | 0.0774 | 96.0 | 1920 | 1.8964 | 0.5625 |
163
+ | 0.0774 | 97.0 | 1940 | 1.6416 | 0.5875 |
164
+ | 0.0774 | 98.0 | 1960 | 1.7067 | 0.625 |
165
+ | 0.0774 | 99.0 | 1980 | 1.7533 | 0.5938 |
166
+ | 0.0569 | 100.0 | 2000 | 1.8181 | 0.5563 |
167
+
168
+
169
+ ### Framework versions
170
+
171
+ - Transformers 4.37.2
172
+ - Pytorch 2.3.0
173
+ - Datasets 2.15.0
174
+ - Tokenizers 0.15.1
config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224-in21k",
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": "anger",
13
+ "1": "contempt",
14
+ "2": "disgust",
15
+ "3": "fear",
16
+ "4": "happy",
17
+ "5": "neutral",
18
+ "6": "sad",
19
+ "7": "surprise"
20
+ },
21
+ "image_size": 224,
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 3072,
24
+ "label2id": {
25
+ "anger": "0",
26
+ "contempt": "1",
27
+ "disgust": "2",
28
+ "fear": "3",
29
+ "happy": "4",
30
+ "neutral": "5",
31
+ "sad": "6",
32
+ "surprise": "7"
33
+ },
34
+ "layer_norm_eps": 1e-12,
35
+ "model_type": "vit",
36
+ "num_attention_heads": 12,
37
+ "num_channels": 3,
38
+ "num_hidden_layers": 12,
39
+ "patch_size": 16,
40
+ "problem_type": "single_label_classification",
41
+ "qkv_bias": true,
42
+ "torch_dtype": "float32",
43
+ "transformers_version": "4.37.2"
44
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0690d2470676a42f953025a8e32b3c980710ea47735a0527bcd54570e288636b
3
+ size 343242432
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
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1cf7a1f53533357c8353203153dcd0a640c927623caa95958acb69b37c5a650e
3
+ size 4728