Marxulia commited on
Commit
9eb8eff
·
verified ·
1 Parent(s): b7b4f9e

End of training

Browse files
README.md ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_classification
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.55
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
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.3694
36
+ - Accuracy: 0.55
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: 16
57
+ - eval_batch_size: 16
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 | 40 | 1.9385 | 0.35 |
68
+ | No log | 2.0 | 80 | 1.6433 | 0.3875 |
69
+ | No log | 3.0 | 120 | 1.4689 | 0.5375 |
70
+ | No log | 4.0 | 160 | 1.3533 | 0.55 |
71
+ | No log | 5.0 | 200 | 1.3162 | 0.5813 |
72
+ | No log | 6.0 | 240 | 1.3131 | 0.5437 |
73
+ | No log | 7.0 | 280 | 1.2160 | 0.6 |
74
+ | No log | 8.0 | 320 | 1.2660 | 0.5437 |
75
+ | No log | 9.0 | 360 | 1.2594 | 0.55 |
76
+ | No log | 10.0 | 400 | 1.1873 | 0.5687 |
77
+ | No log | 11.0 | 440 | 1.1169 | 0.5875 |
78
+ | No log | 12.0 | 480 | 1.2015 | 0.5687 |
79
+ | 1.125 | 13.0 | 520 | 1.2653 | 0.5375 |
80
+ | 1.125 | 14.0 | 560 | 1.2801 | 0.5563 |
81
+ | 1.125 | 15.0 | 600 | 1.2304 | 0.5563 |
82
+ | 1.125 | 16.0 | 640 | 1.2341 | 0.5437 |
83
+ | 1.125 | 17.0 | 680 | 1.2981 | 0.5312 |
84
+ | 1.125 | 18.0 | 720 | 1.3277 | 0.5687 |
85
+ | 1.125 | 19.0 | 760 | 1.2174 | 0.5875 |
86
+ | 1.125 | 20.0 | 800 | 1.1810 | 0.6 |
87
+ | 1.125 | 21.0 | 840 | 1.2280 | 0.5687 |
88
+ | 1.125 | 22.0 | 880 | 1.3576 | 0.525 |
89
+ | 1.125 | 23.0 | 920 | 1.3897 | 0.5375 |
90
+ | 1.125 | 24.0 | 960 | 1.3216 | 0.5625 |
91
+ | 0.3612 | 25.0 | 1000 | 1.3033 | 0.6062 |
92
+ | 0.3612 | 26.0 | 1040 | 1.3501 | 0.5625 |
93
+ | 0.3612 | 27.0 | 1080 | 1.2310 | 0.575 |
94
+ | 0.3612 | 28.0 | 1120 | 1.2495 | 0.6062 |
95
+ | 0.3612 | 29.0 | 1160 | 1.2974 | 0.5875 |
96
+ | 0.3612 | 30.0 | 1200 | 1.2985 | 0.5813 |
97
+
98
+
99
+ ### Framework versions
100
+
101
+ - Transformers 4.35.2
102
+ - Pytorch 2.1.0+cu121
103
+ - Datasets 2.17.0
104
+ - 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.35.2"
44
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b97869f41595064200eebfe8396319e4b59e3e54024a2b1b3130e3ed455b224b
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
+ }
runs/Feb13_18-13-35_8819890d763d/events.out.tfevents.1707848334.8819890d763d.1802.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7bcf22cf1699d555592d1d41230a4593fa71724557c1795abf35246d236b9db
3
+ size 14813
runs/Feb13_18-13-35_8819890d763d/events.out.tfevents.1707849364.8819890d763d.1802.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:244403f061f06f31388eaa0999b0b66f3e0e01093f5e0e09c1cf11cbe61bbf4d
3
+ size 411
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eaeb03e12e6764a699f4fa14a77f5f20ee278796fac37333f825944baf2de984
3
+ size 4600