rii92 commited on
Commit
cce2e0c
·
verified ·
1 Parent(s): b41f793

End of training

Browse files
Files changed (5) hide show
  1. README.md +78 -78
  2. config.json +44 -44
  3. model.safetensors +1 -1
  4. preprocessor_config.json +22 -22
  5. training_args.bin +1 -1
README.md CHANGED
@@ -1,78 +1,78 @@
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: results
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.53125
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
- # results
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.1854
37
- - Accuracy: 0.5312
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: 5e-05
57
- - train_batch_size: 16
58
- - eval_batch_size: 8
59
- - seed: 42
60
- - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
61
- - lr_scheduler_type: linear
62
- - num_epochs: 3
63
-
64
- ### Training results
65
-
66
- | Training Loss | Epoch | Step | Validation Loss | Accuracy |
67
- |:-------------:|:-----:|:----:|:---------------:|:--------:|
68
- | No log | 1.0 | 40 | 1.2773 | 0.4938 |
69
- | No log | 2.0 | 80 | 1.2222 | 0.5312 |
70
- | No log | 3.0 | 120 | 1.1854 | 0.5312 |
71
-
72
-
73
- ### Framework versions
74
-
75
- - Transformers 4.44.2
76
- - Pytorch 2.4.0+cu121
77
- - Datasets 2.21.0
78
- - Tokenizers 0.19.1
 
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: results
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.4625
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
+ # results
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.4254
37
+ - Accuracy: 0.4625
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: 5e-05
57
+ - train_batch_size: 16
58
+ - eval_batch_size: 8
59
+ - seed: 42
60
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
61
+ - lr_scheduler_type: linear
62
+ - num_epochs: 3
63
+
64
+ ### Training results
65
+
66
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
67
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
68
+ | No log | 1.0 | 40 | 1.7634 | 0.3312 |
69
+ | No log | 2.0 | 80 | 1.4880 | 0.4625 |
70
+ | No log | 3.0 | 120 | 1.4254 | 0.4625 |
71
+
72
+
73
+ ### Framework versions
74
+
75
+ - Transformers 4.44.1
76
+ - Pytorch 2.4.0+cpu
77
+ - Datasets 2.21.0
78
+ - Tokenizers 0.19.1
config.json CHANGED
@@ -1,44 +1,44 @@
1
- {
2
- "_name_or_path": "google/vit-base-patch16-224",
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.44.2"
44
- }
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224",
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.44.1"
44
+ }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ab52a9d17c16a71be36389edbb3a1029df6fc82968b89a0e6fbba7e3ee67c9c6
3
  size 343242432
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4fdd8323fa415a130074e5e3eb06a25a1c1f3af129f67a1b786bf8eabf97f31
3
  size 343242432
preprocessor_config.json CHANGED
@@ -1,22 +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
- }
 
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
+ }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4a8fcf609e086552003706e5315e0634ed315b22720a1f0fab0995670fa99723
3
  size 5112
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7bf918b3a2ea723ec9102f6369e9b29bfed3536b43059991088211d58c61878
3
  size 5112