End of training
Browse files- README.md +104 -0
- config.json +44 -0
- preprocessor_config.json +22 -0
- pytorch_model.bin +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: raffel-22/emotion_classification_2
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- imagefolder
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: emotion_classification_2_continue
|
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.725
|
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_classification_2_continue
|
32 |
+
|
33 |
+
This model is a fine-tuned version of [raffel-22/emotion_classification_2](https://huggingface.co/raffel-22/emotion_classification_2) on the imagefolder dataset.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 0.8978
|
36 |
+
- Accuracy: 0.725
|
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: 4e-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: 30
|
62 |
+
|
63 |
+
### Training results
|
64 |
+
|
65 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
66 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
67 |
+
| No log | 1.0 | 20 | 0.9714 | 0.7063 |
|
68 |
+
| No log | 2.0 | 40 | 0.9432 | 0.7188 |
|
69 |
+
| No log | 3.0 | 60 | 0.9633 | 0.7 |
|
70 |
+
| No log | 4.0 | 80 | 0.9322 | 0.7375 |
|
71 |
+
| No log | 5.0 | 100 | 0.8530 | 0.7063 |
|
72 |
+
| No log | 6.0 | 120 | 0.9063 | 0.7063 |
|
73 |
+
| No log | 7.0 | 140 | 0.8451 | 0.7125 |
|
74 |
+
| No log | 8.0 | 160 | 0.9672 | 0.6375 |
|
75 |
+
| No log | 9.0 | 180 | 0.9036 | 0.6937 |
|
76 |
+
| No log | 10.0 | 200 | 0.9261 | 0.6562 |
|
77 |
+
| No log | 11.0 | 220 | 0.8963 | 0.6937 |
|
78 |
+
| No log | 12.0 | 240 | 0.8852 | 0.7188 |
|
79 |
+
| No log | 13.0 | 260 | 0.8728 | 0.7063 |
|
80 |
+
| No log | 14.0 | 280 | 0.9559 | 0.6875 |
|
81 |
+
| No log | 15.0 | 300 | 0.9352 | 0.65 |
|
82 |
+
| No log | 16.0 | 320 | 0.8638 | 0.7 |
|
83 |
+
| No log | 17.0 | 340 | 0.9156 | 0.7 |
|
84 |
+
| No log | 18.0 | 360 | 1.0299 | 0.6687 |
|
85 |
+
| No log | 19.0 | 380 | 0.8983 | 0.675 |
|
86 |
+
| No log | 20.0 | 400 | 0.8858 | 0.7063 |
|
87 |
+
| No log | 21.0 | 420 | 0.9699 | 0.6937 |
|
88 |
+
| No log | 22.0 | 440 | 1.0603 | 0.625 |
|
89 |
+
| No log | 23.0 | 460 | 1.0404 | 0.6312 |
|
90 |
+
| No log | 24.0 | 480 | 0.8838 | 0.6937 |
|
91 |
+
| 0.4269 | 25.0 | 500 | 0.9280 | 0.6937 |
|
92 |
+
| 0.4269 | 26.0 | 520 | 0.9456 | 0.6937 |
|
93 |
+
| 0.4269 | 27.0 | 540 | 0.9640 | 0.6937 |
|
94 |
+
| 0.4269 | 28.0 | 560 | 0.9865 | 0.6937 |
|
95 |
+
| 0.4269 | 29.0 | 580 | 0.8900 | 0.7188 |
|
96 |
+
| 0.4269 | 30.0 | 600 | 0.9408 | 0.7063 |
|
97 |
+
|
98 |
+
|
99 |
+
### Framework versions
|
100 |
+
|
101 |
+
- Transformers 4.33.2
|
102 |
+
- Pytorch 2.0.1+cu118
|
103 |
+
- Datasets 2.14.5
|
104 |
+
- Tokenizers 0.13.3
|
config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "raffel-22/emotion_classification_2",
|
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.33.2"
|
44 |
+
}
|
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 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5b2ac58a56b5e0517ddcb5184a011c4c879ad573f9708a3153933a89f7b94bea
|
3 |
+
size 343287149
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:56cdb2432993392becfac9ccfe1a98a99ce6b52f60e33ab0b1d3555af53bf255
|
3 |
+
size 4091
|