tialdrine commited on
Commit
bdc55b8
·
verified ·
1 Parent(s): 8a68056

End of training

Browse files
Files changed (4) hide show
  1. README.md +79 -0
  2. config.json +45 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: google/vit-base-patch16-224
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - imagefolder
9
+ metrics:
10
+ - accuracy
11
+ model-index:
12
+ - name: vit-emotion-output
13
+ results:
14
+ - task:
15
+ name: Image Classification
16
+ type: image-classification
17
+ dataset:
18
+ name: imagefolder
19
+ type: imagefolder
20
+ config: default
21
+ split: train
22
+ args: default
23
+ metrics:
24
+ - name: Accuracy
25
+ type: accuracy
26
+ value: 0.4
27
+ ---
28
+
29
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
30
+ should probably proofread and complete it, then remove this comment. -->
31
+
32
+ # vit-emotion-output
33
+
34
+ This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the imagefolder dataset.
35
+ It achieves the following results on the evaluation set:
36
+ - Loss: 1.5533
37
+ - Accuracy: 0.4
38
+
39
+ ## Model description
40
+
41
+ More information needed
42
+
43
+ ## Intended uses & limitations
44
+
45
+ More information needed
46
+
47
+ ## Training and evaluation data
48
+
49
+ More information needed
50
+
51
+ ## Training procedure
52
+
53
+ ### Training hyperparameters
54
+
55
+ The following hyperparameters were used during training:
56
+ - learning_rate: 2e-05
57
+ - train_batch_size: 16
58
+ - eval_batch_size: 16
59
+ - seed: 42
60
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
61
+ - lr_scheduler_type: linear
62
+ - num_epochs: 4
63
+
64
+ ### Training results
65
+
66
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
67
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
68
+ | 1.8721 | 1.0 | 40 | 1.8115 | 0.3125 |
69
+ | 1.3538 | 2.0 | 80 | 1.6587 | 0.3312 |
70
+ | 1.1398 | 3.0 | 120 | 1.5723 | 0.3875 |
71
+ | 1.0086 | 4.0 | 160 | 1.5533 | 0.4 |
72
+
73
+
74
+ ### Framework versions
75
+
76
+ - Transformers 4.51.3
77
+ - Pytorch 2.6.0+cu124
78
+ - Datasets 3.6.0
79
+ - Tokenizers 0.21.1
config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ViTForImageClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.0,
6
+ "encoder_stride": 16,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.0,
9
+ "hidden_size": 768,
10
+ "id2label": {
11
+ "0": "anger",
12
+ "1": "contempt",
13
+ "2": "disgust",
14
+ "3": "fear",
15
+ "4": "happy",
16
+ "5": "neutral",
17
+ "6": "sad",
18
+ "7": "surprise"
19
+ },
20
+ "image_size": 224,
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 3072,
23
+ "label2id": {
24
+ "anger": 0,
25
+ "contempt": 1,
26
+ "disgust": 2,
27
+ "fear": 3,
28
+ "happy": 4,
29
+ "neutral": 5,
30
+ "sad": 6,
31
+ "surprise": 7
32
+ },
33
+ "layer_norm_eps": 1e-12,
34
+ "model_type": "vit",
35
+ "num_attention_heads": 12,
36
+ "num_channels": 3,
37
+ "num_hidden_layers": 12,
38
+ "patch_size": 16,
39
+ "pooler_act": "tanh",
40
+ "pooler_output_size": 768,
41
+ "problem_type": "single_label_classification",
42
+ "qkv_bias": true,
43
+ "torch_dtype": "float32",
44
+ "transformers_version": "4.51.3"
45
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63fbbe652c7b62ef00e8f28ee89445a6ccdead81d74a0926d4011f5c107cb0c5
3
+ size 343242432
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a7687af771edd79d5908b847b92c5a7229fda55cac6beda3199b2133ab97bc7
3
+ size 5240