march18 commited on
Commit
26c452f
1 Parent(s): ca388af

🍻 cheers

Browse files
README.md ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: google/vit-base-patch16-224-in21k
5
+ tags:
6
+ - image-classification
7
+ - generated_from_trainer
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: vit-base-beans
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # vit-base-beans
19
+
20
+ 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 FacialConfidence dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.2560
23
+ - Accuracy: 0.8970
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - learning_rate: 0.0002
43
+ - train_batch_size: 16
44
+ - eval_batch_size: 8
45
+ - seed: 42
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: linear
48
+ - num_epochs: 4
49
+ - mixed_precision_training: Native AMP
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
54
+ |:-------------:|:------:|:----:|:---------------:|:--------:|
55
+ | 0.6103 | 0.0557 | 100 | 0.5715 | 0.7310 |
56
+ | 0.554 | 0.1114 | 200 | 0.5337 | 0.7194 |
57
+ | 0.4275 | 0.1671 | 300 | 0.5142 | 0.7549 |
58
+ | 0.5831 | 0.2228 | 400 | 0.5570 | 0.7345 |
59
+ | 0.5804 | 0.2786 | 500 | 0.4909 | 0.7660 |
60
+ | 0.5652 | 0.3343 | 600 | 0.4956 | 0.7764 |
61
+ | 0.4513 | 0.3900 | 700 | 0.4294 | 0.7972 |
62
+ | 0.4217 | 0.4457 | 800 | 0.4619 | 0.7924 |
63
+ | 0.435 | 0.5014 | 900 | 0.4563 | 0.7901 |
64
+ | 0.3943 | 0.5571 | 1000 | 0.4324 | 0.7917 |
65
+ | 0.4136 | 0.6128 | 1100 | 0.4131 | 0.8110 |
66
+ | 0.3302 | 0.6685 | 1200 | 0.4516 | 0.8054 |
67
+ | 0.4945 | 0.7242 | 1300 | 0.4135 | 0.8164 |
68
+ | 0.3729 | 0.7799 | 1400 | 0.4010 | 0.8139 |
69
+ | 0.4865 | 0.8357 | 1500 | 0.4145 | 0.8174 |
70
+ | 0.4011 | 0.8914 | 1600 | 0.4098 | 0.8112 |
71
+ | 0.4287 | 0.9471 | 1700 | 0.3914 | 0.8181 |
72
+ | 0.3644 | 1.0028 | 1800 | 0.3948 | 0.8188 |
73
+ | 0.3768 | 1.0585 | 1900 | 0.4044 | 0.8266 |
74
+ | 0.383 | 1.1142 | 2000 | 0.4363 | 0.8064 |
75
+ | 0.4011 | 1.1699 | 2100 | 0.4424 | 0.8025 |
76
+ | 0.4079 | 1.2256 | 2200 | 0.4384 | 0.7853 |
77
+ | 0.2791 | 1.2813 | 2300 | 0.4491 | 0.8089 |
78
+ | 0.3159 | 1.3370 | 2400 | 0.3863 | 0.8274 |
79
+ | 0.4306 | 1.3928 | 2500 | 0.3944 | 0.8158 |
80
+ | 0.3386 | 1.4485 | 2600 | 0.3835 | 0.8305 |
81
+ | 0.395 | 1.5042 | 2700 | 0.3812 | 0.8261 |
82
+ | 0.3041 | 1.5599 | 2800 | 0.3736 | 0.8312 |
83
+ | 0.3365 | 1.6156 | 2900 | 0.4420 | 0.8097 |
84
+ | 0.3697 | 1.6713 | 3000 | 0.3808 | 0.8353 |
85
+ | 0.3661 | 1.7270 | 3100 | 0.4046 | 0.8084 |
86
+ | 0.3208 | 1.7827 | 3200 | 0.4042 | 0.8328 |
87
+ | 0.3511 | 1.8384 | 3300 | 0.4113 | 0.8192 |
88
+ | 0.3246 | 1.8942 | 3400 | 0.3611 | 0.8377 |
89
+ | 0.3616 | 1.9499 | 3500 | 0.4207 | 0.8231 |
90
+ | 0.2726 | 2.0056 | 3600 | 0.3650 | 0.8342 |
91
+ | 0.1879 | 2.0613 | 3700 | 0.4334 | 0.8359 |
92
+ | 0.2981 | 2.1170 | 3800 | 0.3657 | 0.8435 |
93
+ | 0.227 | 2.1727 | 3900 | 0.3948 | 0.8399 |
94
+ | 0.3184 | 2.2284 | 4000 | 0.4229 | 0.8377 |
95
+ | 0.2391 | 2.2841 | 4100 | 0.3824 | 0.8405 |
96
+ | 0.2019 | 2.3398 | 4200 | 0.4628 | 0.8345 |
97
+ | 0.1931 | 2.3955 | 4300 | 0.3848 | 0.8448 |
98
+ | 0.238 | 2.4513 | 4400 | 0.3948 | 0.8398 |
99
+ | 0.2633 | 2.5070 | 4500 | 0.3779 | 0.8440 |
100
+ | 0.1829 | 2.5627 | 4600 | 0.3901 | 0.8455 |
101
+ | 0.2286 | 2.6184 | 4700 | 0.3797 | 0.8481 |
102
+ | 0.2123 | 2.6741 | 4800 | 0.4203 | 0.8502 |
103
+ | 0.266 | 2.7298 | 4900 | 0.4073 | 0.8455 |
104
+ | 0.1768 | 2.7855 | 5000 | 0.3750 | 0.8498 |
105
+ | 0.1659 | 2.8412 | 5100 | 0.3906 | 0.8427 |
106
+ | 0.1644 | 2.8969 | 5200 | 0.3833 | 0.8466 |
107
+ | 0.241 | 2.9526 | 5300 | 0.4071 | 0.8476 |
108
+ | 0.16 | 3.0084 | 5400 | 0.3691 | 0.8530 |
109
+ | 0.0788 | 3.0641 | 5500 | 0.4656 | 0.8514 |
110
+ | 0.1244 | 3.1198 | 5600 | 0.4990 | 0.8484 |
111
+ | 0.1423 | 3.1755 | 5700 | 0.5219 | 0.8475 |
112
+ | 0.1279 | 3.2312 | 5800 | 0.5687 | 0.8515 |
113
+ | 0.0974 | 3.2869 | 5900 | 0.5386 | 0.8458 |
114
+ | 0.065 | 3.3426 | 6000 | 0.5215 | 0.8454 |
115
+ | 0.0497 | 3.3983 | 6100 | 0.5161 | 0.8483 |
116
+ | 0.1871 | 3.4540 | 6200 | 0.5148 | 0.8523 |
117
+ | 0.0891 | 3.5097 | 6300 | 0.4915 | 0.8527 |
118
+ | 0.1375 | 3.5655 | 6400 | 0.5067 | 0.8509 |
119
+ | 0.1333 | 3.6212 | 6500 | 0.5272 | 0.8532 |
120
+ | 0.2635 | 3.6769 | 6600 | 0.5170 | 0.8516 |
121
+ | 0.0375 | 3.7326 | 6700 | 0.5148 | 0.8534 |
122
+ | 0.1286 | 3.7883 | 6800 | 0.4945 | 0.8543 |
123
+ | 0.091 | 3.8440 | 6900 | 0.4948 | 0.8540 |
124
+ | 0.1088 | 3.8997 | 7000 | 0.4985 | 0.8532 |
125
+ | 0.0598 | 3.9554 | 7100 | 0.4969 | 0.8514 |
126
+
127
+
128
+ ### Framework versions
129
+
130
+ - Transformers 4.44.2
131
+ - Pytorch 2.5.0+cu121
132
+ - Datasets 3.0.2
133
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 4.0,
3
+ "eval_accuracy": 0.8969589298777302,
4
+ "eval_loss": 0.2560151517391205,
5
+ "eval_runtime": 138.2305,
6
+ "eval_samples_per_second": 207.675,
7
+ "eval_steps_per_second": 25.964
8
+ }
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "confident",
13
+ "1": "unconfident"
14
+ },
15
+ "image_size": 224,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "confident": "0",
20
+ "unconfident": "1"
21
+ },
22
+ "layer_norm_eps": 1e-12,
23
+ "model_type": "vit",
24
+ "num_attention_heads": 12,
25
+ "num_channels": 3,
26
+ "num_hidden_layers": 12,
27
+ "patch_size": 16,
28
+ "problem_type": "single_label_classification",
29
+ "qkv_bias": true,
30
+ "torch_dtype": "float32",
31
+ "transformers_version": "4.44.2"
32
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 4.0,
3
+ "eval_accuracy": 0.8969589298777302,
4
+ "eval_loss": 0.2560151517391205,
5
+ "eval_runtime": 138.2305,
6
+ "eval_samples_per_second": 207.675,
7
+ "eval_steps_per_second": 25.964
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6e31adff5be81c0659561a4b66832ded7f2db0e070f643bade38d39e3b96dfd
3
+ size 343223968
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/Oct29_19-12-50_8f2f0942f124/events.out.tfevents.1730233923.8f2f0942f124.1836.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3258ced0ae1f8efa83f2975a5c81cf09f56d47d79c8465e74ea3003fabbf71d
3
+ size 411
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01747f4854dca9e658aa952b7036768e051561041046121f0cab9af6303566e6
3
+ size 5176