dennisjooo
commited on
Commit
•
2409a1c
1
Parent(s):
fd26a5f
End of training
Browse files- README.md +64 -71
- pytorch_model.bin +1 -1
README.md
CHANGED
@@ -4,127 +4,120 @@ base_model: google/vit-base-patch16-224-in21k
|
|
4 |
tags:
|
5 |
- generated_from_trainer
|
6 |
datasets:
|
7 |
-
-
|
8 |
metrics:
|
9 |
- accuracy
|
10 |
- precision
|
11 |
- f1
|
12 |
model-index:
|
13 |
-
- name:
|
14 |
results:
|
15 |
- task:
|
16 |
name: Image Classification
|
17 |
type: image-classification
|
18 |
dataset:
|
19 |
-
name:
|
20 |
-
type:
|
21 |
config: default
|
22 |
split: train
|
23 |
args: default
|
24 |
metrics:
|
25 |
- name: Accuracy
|
26 |
type: accuracy
|
27 |
-
value: 0.
|
28 |
- name: Precision
|
29 |
type: precision
|
30 |
-
value: 0.
|
31 |
- name: F1
|
32 |
type: f1
|
33 |
-
value: 0.
|
34 |
---
|
35 |
|
36 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
37 |
should probably proofread and complete it, then remove this comment. -->
|
38 |
|
39 |
-
#
|
40 |
|
41 |
-
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k)
|
42 |
-
on the [FastJobs/Visual_Emotional_Analysis](https://huggingface.co/datasets/FastJobs/Visual_Emotional_Analysis) dataset.
|
43 |
It achieves the following results on the evaluation set:
|
44 |
-
- Loss: 1.
|
45 |
-
- Accuracy: 0.
|
46 |
-
- Precision: 0.
|
47 |
-
- F1: 0.
|
48 |
|
|
|
49 |
|
50 |
-
|
51 |
-
|
52 |
-
### Data Split
|
53 |
|
54 |
-
|
55 |
|
56 |
-
|
57 |
|
58 |
-
|
59 |
-
- Resizing to (224, 224, 3)
|
60 |
-
- Normalizing images using a mean and standard deviation of [0.5, 0.5, 0.5]
|
61 |
|
62 |
-
|
63 |
-
- Random horizontal & vertical flip
|
64 |
-
- Color jitter
|
65 |
-
- Random resized crop
|
66 |
|
67 |
## Training procedure
|
68 |
|
69 |
### Training hyperparameters
|
70 |
|
71 |
The following hyperparameters were used during training:
|
72 |
-
- learning_rate: 0.
|
73 |
- train_batch_size: 64
|
74 |
- eval_batch_size: 64
|
75 |
- seed: 42
|
76 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
77 |
- lr_scheduler_type: cosine_with_restarts
|
78 |
-
- lr_scheduler_warmup_steps:
|
79 |
- num_epochs: 100
|
80 |
|
81 |
### Training results
|
82 |
|
83 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | F1 |
|
84 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|
|
85 |
-
| 2.
|
86 |
-
|
|
87 |
-
| 1.
|
88 |
-
| 1.
|
89 |
-
| 1.
|
90 |
-
| 1.
|
91 |
-
| 1.
|
92 |
-
| 1.
|
93 |
-
| 1.
|
94 |
-
| 0.
|
95 |
-
| 0.
|
96 |
-
| 0.
|
97 |
-
| 0.
|
98 |
-
| 0.
|
99 |
-
| 0.
|
100 |
-
| 0.
|
101 |
-
| 0.
|
102 |
-
| 0.
|
103 |
-
| 0.
|
104 |
-
| 0.
|
105 |
-
| 0.
|
106 |
-
| 0.
|
107 |
-
| 0.
|
108 |
-
| 0.
|
109 |
-
| 0.
|
110 |
-
| 0.
|
111 |
-
| 0.
|
112 |
-
| 0.
|
113 |
-
| 0.
|
114 |
-
| 0.
|
115 |
-
| 0.
|
116 |
-
| 0.
|
117 |
-
| 0.
|
118 |
-
| 0.
|
119 |
-
| 0.
|
120 |
-
| 0.
|
121 |
-
| 0.
|
122 |
-
| 0.
|
123 |
-
| 0.
|
124 |
-
| 0.
|
125 |
-
| 0.
|
126 |
-
| 0.
|
127 |
-
| 0.
|
128 |
|
129 |
|
130 |
### Framework versions
|
|
|
4 |
tags:
|
5 |
- generated_from_trainer
|
6 |
datasets:
|
7 |
+
- imagefolder
|
8 |
metrics:
|
9 |
- accuracy
|
10 |
- precision
|
11 |
- f1
|
12 |
model-index:
|
13 |
+
- name: emotion_classification
|
14 |
results:
|
15 |
- task:
|
16 |
name: Image Classification
|
17 |
type: image-classification
|
18 |
dataset:
|
19 |
+
name: imagefolder
|
20 |
+
type: imagefolder
|
21 |
config: default
|
22 |
split: train
|
23 |
args: default
|
24 |
metrics:
|
25 |
- name: Accuracy
|
26 |
type: accuracy
|
27 |
+
value: 0.63125
|
28 |
- name: Precision
|
29 |
type: precision
|
30 |
+
value: 0.6430986797647803
|
31 |
- name: F1
|
32 |
type: f1
|
33 |
+
value: 0.6224944698106615
|
34 |
---
|
35 |
|
36 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
37 |
should probably proofread and complete it, then remove this comment. -->
|
38 |
|
39 |
+
# emotion_classification
|
40 |
|
41 |
+
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.
|
|
|
42 |
It achieves the following results on the evaluation set:
|
43 |
+
- Loss: 1.1031
|
44 |
+
- Accuracy: 0.6312
|
45 |
+
- Precision: 0.6431
|
46 |
+
- F1: 0.6225
|
47 |
|
48 |
+
## Model description
|
49 |
|
50 |
+
More information needed
|
|
|
|
|
51 |
|
52 |
+
## Intended uses & limitations
|
53 |
|
54 |
+
More information needed
|
55 |
|
56 |
+
## Training and evaluation data
|
|
|
|
|
57 |
|
58 |
+
More information needed
|
|
|
|
|
|
|
59 |
|
60 |
## Training procedure
|
61 |
|
62 |
### Training hyperparameters
|
63 |
|
64 |
The following hyperparameters were used during training:
|
65 |
+
- learning_rate: 0.0002
|
66 |
- train_batch_size: 64
|
67 |
- eval_batch_size: 64
|
68 |
- seed: 42
|
69 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
70 |
- lr_scheduler_type: cosine_with_restarts
|
71 |
+
- lr_scheduler_warmup_steps: 20
|
72 |
- num_epochs: 100
|
73 |
|
74 |
### Training results
|
75 |
|
76 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | F1 |
|
77 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|
|
78 |
+
| 2.0742 | 1.0 | 10 | 2.0533 | 0.1938 | 0.1942 | 0.1858 |
|
79 |
+
| 2.0081 | 2.0 | 20 | 1.8908 | 0.3438 | 0.3701 | 0.3368 |
|
80 |
+
| 1.7211 | 3.0 | 30 | 1.5199 | 0.5312 | 0.4821 | 0.4844 |
|
81 |
+
| 1.5641 | 4.0 | 40 | 1.4248 | 0.4875 | 0.5314 | 0.4532 |
|
82 |
+
| 1.3979 | 5.0 | 50 | 1.2973 | 0.5375 | 0.5162 | 0.5023 |
|
83 |
+
| 1.2997 | 6.0 | 60 | 1.2016 | 0.525 | 0.4828 | 0.4826 |
|
84 |
+
| 1.2348 | 7.0 | 70 | 1.1670 | 0.5875 | 0.6375 | 0.5941 |
|
85 |
+
| 1.1481 | 8.0 | 80 | 1.1292 | 0.6 | 0.6111 | 0.5961 |
|
86 |
+
| 1.079 | 9.0 | 90 | 1.1782 | 0.5188 | 0.5265 | 0.5005 |
|
87 |
+
| 0.9909 | 10.0 | 100 | 1.1115 | 0.5813 | 0.5892 | 0.5668 |
|
88 |
+
| 0.9662 | 11.0 | 110 | 1.1047 | 0.5938 | 0.6336 | 0.5723 |
|
89 |
+
| 0.8149 | 12.0 | 120 | 1.0944 | 0.5563 | 0.5648 | 0.5499 |
|
90 |
+
| 0.7661 | 13.0 | 130 | 1.0932 | 0.5625 | 0.5738 | 0.5499 |
|
91 |
+
| 0.7067 | 14.0 | 140 | 1.0787 | 0.6062 | 0.6318 | 0.6045 |
|
92 |
+
| 0.6708 | 15.0 | 150 | 1.1140 | 0.6188 | 0.6463 | 0.6134 |
|
93 |
+
| 0.6268 | 16.0 | 160 | 1.0875 | 0.5813 | 0.6016 | 0.5815 |
|
94 |
+
| 0.5473 | 17.0 | 170 | 1.1483 | 0.5938 | 0.6027 | 0.5844 |
|
95 |
+
| 0.5228 | 18.0 | 180 | 1.1031 | 0.6312 | 0.6431 | 0.6225 |
|
96 |
+
| 0.4805 | 19.0 | 190 | 1.1747 | 0.5813 | 0.6057 | 0.5848 |
|
97 |
+
| 0.4995 | 20.0 | 200 | 1.1865 | 0.6062 | 0.6062 | 0.5980 |
|
98 |
+
| 0.456 | 21.0 | 210 | 1.2619 | 0.6 | 0.6020 | 0.5843 |
|
99 |
+
| 0.4697 | 22.0 | 220 | 1.2476 | 0.5625 | 0.5804 | 0.5647 |
|
100 |
+
| 0.3656 | 23.0 | 230 | 1.3106 | 0.6125 | 0.6645 | 0.6130 |
|
101 |
+
| 0.394 | 24.0 | 240 | 1.3398 | 0.5437 | 0.5627 | 0.5460 |
|
102 |
+
| 0.35 | 25.0 | 250 | 1.3391 | 0.5938 | 0.5940 | 0.5860 |
|
103 |
+
| 0.3508 | 26.0 | 260 | 1.2846 | 0.575 | 0.6070 | 0.5821 |
|
104 |
+
| 0.3106 | 27.0 | 270 | 1.3495 | 0.575 | 0.6258 | 0.5663 |
|
105 |
+
| 0.3265 | 28.0 | 280 | 1.4450 | 0.5375 | 0.6512 | 0.5248 |
|
106 |
+
| 0.2806 | 29.0 | 290 | 1.5145 | 0.5188 | 0.5840 | 0.5151 |
|
107 |
+
| 0.3276 | 30.0 | 300 | 1.5207 | 0.5188 | 0.5741 | 0.5164 |
|
108 |
+
| 0.2932 | 31.0 | 310 | 1.3179 | 0.6312 | 0.6421 | 0.6298 |
|
109 |
+
| 0.3542 | 32.0 | 320 | 1.3720 | 0.5875 | 0.6157 | 0.5780 |
|
110 |
+
| 0.3321 | 33.0 | 330 | 1.4787 | 0.5625 | 0.6088 | 0.5714 |
|
111 |
+
| 0.2641 | 34.0 | 340 | 1.5468 | 0.5375 | 0.5817 | 0.5385 |
|
112 |
+
| 0.2432 | 35.0 | 350 | 1.4893 | 0.5687 | 0.6012 | 0.5538 |
|
113 |
+
| 0.275 | 36.0 | 360 | 1.4775 | 0.575 | 0.5827 | 0.5710 |
|
114 |
+
| 0.239 | 37.0 | 370 | 1.4812 | 0.575 | 0.6100 | 0.5739 |
|
115 |
+
| 0.2658 | 38.0 | 380 | 1.7335 | 0.5563 | 0.6547 | 0.5436 |
|
116 |
+
| 0.3026 | 39.0 | 390 | 1.5692 | 0.5875 | 0.6401 | 0.5854 |
|
117 |
+
| 0.1867 | 40.0 | 400 | 1.4908 | 0.5687 | 0.5921 | 0.5741 |
|
118 |
+
| 0.1931 | 41.0 | 410 | 1.6608 | 0.5375 | 0.5834 | 0.5396 |
|
119 |
+
| 0.2416 | 42.0 | 420 | 1.5172 | 0.5938 | 0.6259 | 0.5935 |
|
120 |
+
| 0.1943 | 43.0 | 430 | 1.5260 | 0.5437 | 0.5775 | 0.5498 |
|
121 |
|
122 |
|
123 |
### Framework versions
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 343287149
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:748f0dd2bd7134254a547fcf47842053881f8de66aa2463ddb1a3233e0d0afb4
|
3 |
size 343287149
|