padilfm commited on
Commit
32251a7
·
verified ·
1 Parent(s): bd87fbf

End of training

Browse files
Files changed (4) hide show
  1. README.md +84 -84
  2. config.json +44 -44
  3. model.safetensors +1 -1
  4. training_args.bin +2 -2
README.md CHANGED
@@ -1,84 +1,84 @@
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: results
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.525
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
- # results
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.2769
36
- - Accuracy: 0.525
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: 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: 10
62
-
63
- ### Training results
64
-
65
- | Training Loss | Epoch | Step | Validation Loss | Accuracy |
66
- |:-------------:|:-----:|:----:|:---------------:|:--------:|
67
- | 1.917 | 1.0 | 40 | 1.8324 | 0.4062 |
68
- | 1.5423 | 2.0 | 80 | 1.5708 | 0.4688 |
69
- | 1.2996 | 3.0 | 120 | 1.4506 | 0.4562 |
70
- | 0.984 | 4.0 | 160 | 1.3624 | 0.5 |
71
- | 0.7638 | 5.0 | 200 | 1.3383 | 0.4938 |
72
- | 0.5599 | 6.0 | 240 | 1.2893 | 0.4938 |
73
- | 0.4135 | 7.0 | 280 | 1.2797 | 0.5125 |
74
- | 0.3149 | 8.0 | 320 | 1.2654 | 0.5375 |
75
- | 0.2547 | 9.0 | 360 | 1.2771 | 0.5062 |
76
- | 0.2386 | 10.0 | 400 | 1.2769 | 0.525 |
77
-
78
-
79
- ### Framework versions
80
-
81
- - Transformers 4.40.1
82
- - Pytorch 2.3.1+cpu
83
- - Datasets 2.18.0
84
- - Tokenizers 0.19.1
 
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: results
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.49375
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
+ # results
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.6499
36
+ - Accuracy: 0.4938
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: 2e-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: 10
62
+
63
+ ### Training results
64
+
65
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
66
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
67
+ | 2.0569 | 1.0 | 20 | 2.0360 | 0.1938 |
68
+ | 1.9499 | 2.0 | 40 | 1.9751 | 0.325 |
69
+ | 1.8401 | 3.0 | 60 | 1.8969 | 0.4125 |
70
+ | 1.7302 | 4.0 | 80 | 1.8159 | 0.4625 |
71
+ | 1.6452 | 5.0 | 100 | 1.7533 | 0.4437 |
72
+ | 1.5509 | 6.0 | 120 | 1.7124 | 0.4938 |
73
+ | 1.4928 | 7.0 | 140 | 1.6806 | 0.5125 |
74
+ | 1.4412 | 8.0 | 160 | 1.6631 | 0.4938 |
75
+ | 1.407 | 9.0 | 180 | 1.6530 | 0.5 |
76
+ | 1.4025 | 10.0 | 200 | 1.6499 | 0.4938 |
77
+
78
+
79
+ ### Framework versions
80
+
81
+ - Transformers 4.42.3
82
+ - Pytorch 2.3.0+cu121
83
+ - Datasets 2.20.0
84
+ - Tokenizers 0.19.1
config.json CHANGED
@@ -1,44 +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.40.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.42.3"
44
+ }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c096d2b22d6386a8746676076ede9977ee6d765b9406b90104d464042d4605c0
3
  size 343242432
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58549a12b34d90aa9d4ea958f572da82ee0428e4ac4c1504cd722dcbfe9759a7
3
  size 343242432
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e28d57db29bc6ffa7ca93840bd19027dd45d1c6387057b1bda78cde4017b0caa
3
- size 4920
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d50bc9ceb3b2a17be6ed0d21c6036eee73f098845bcbfb276498eb00efe0b06b
3
+ size 5048