Model save
Browse files- README.md +54 -37
- model.safetensors +1 -1
README.md
CHANGED
@@ -23,7 +23,7 @@ model-index:
|
|
23 |
metrics:
|
24 |
- name: Accuracy
|
25 |
type: accuracy
|
26 |
-
value: 0.
|
27 |
---
|
28 |
|
29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
@@ -33,8 +33,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
33 |
|
34 |
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.
|
35 |
It achieves the following results on the evaluation set:
|
36 |
-
- Loss: 0.
|
37 |
-
- Accuracy: 0.
|
38 |
|
39 |
## Model description
|
40 |
|
@@ -54,50 +54,67 @@ More information needed
|
|
54 |
|
55 |
The following hyperparameters were used during training:
|
56 |
- learning_rate: 5e-05
|
57 |
-
- train_batch_size:
|
58 |
-
- eval_batch_size:
|
59 |
- seed: 42
|
60 |
- gradient_accumulation_steps: 4
|
61 |
-
- total_train_batch_size:
|
62 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
63 |
- lr_scheduler_type: linear
|
64 |
- lr_scheduler_warmup_ratio: 0.1
|
65 |
-
- num_epochs:
|
66 |
|
67 |
### Training results
|
68 |
|
69 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
70 |
|:-------------:|:-------:|:----:|:---------------:|:--------:|
|
71 |
-
|
|
72 |
-
| 1.
|
73 |
-
| 1.
|
74 |
-
|
|
75 |
-
|
|
76 |
-
|
|
77 |
-
| 0.
|
78 |
-
| 0.
|
79 |
-
| 0.
|
80 |
-
| 0.
|
81 |
-
| 0.
|
82 |
-
| 0.
|
83 |
-
| 0.
|
84 |
-
| 0.
|
85 |
-
| 0.
|
86 |
-
| 0.
|
87 |
-
| 0.
|
88 |
-
| 0.
|
89 |
-
| 0.
|
90 |
-
| 0.
|
91 |
-
| 0.
|
92 |
-
| 0.
|
93 |
-
| 0.
|
94 |
-
| 0.
|
95 |
-
| 0.
|
96 |
-
| 0.
|
97 |
-
| 0.
|
98 |
-
| 0.
|
99 |
-
| 0.
|
100 |
-
| 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
|
102 |
|
103 |
### Framework versions
|
|
|
23 |
metrics:
|
24 |
- name: Accuracy
|
25 |
type: accuracy
|
26 |
+
value: 0.9338235294117647
|
27 |
---
|
28 |
|
29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
33 |
|
34 |
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.
|
35 |
It achieves the following results on the evaluation set:
|
36 |
+
- Loss: 0.2870
|
37 |
+
- Accuracy: 0.9338
|
38 |
|
39 |
## Model description
|
40 |
|
|
|
54 |
|
55 |
The following hyperparameters were used during training:
|
56 |
- learning_rate: 5e-05
|
57 |
+
- train_batch_size: 32
|
58 |
+
- eval_batch_size: 32
|
59 |
- seed: 42
|
60 |
- gradient_accumulation_steps: 4
|
61 |
+
- total_train_batch_size: 128
|
62 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
63 |
- lr_scheduler_type: linear
|
64 |
- lr_scheduler_warmup_ratio: 0.1
|
65 |
+
- num_epochs: 50
|
66 |
|
67 |
### Training results
|
68 |
|
69 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
70 |
|:-------------:|:-------:|:----:|:---------------:|:--------:|
|
71 |
+
| No log | 0.9231 | 9 | 1.7879 | 0.2059 |
|
72 |
+
| 1.8037 | 1.9487 | 19 | 1.6485 | 0.4044 |
|
73 |
+
| 1.6961 | 2.9744 | 29 | 1.4882 | 0.3971 |
|
74 |
+
| 1.5407 | 4.0 | 39 | 1.3069 | 0.5221 |
|
75 |
+
| 1.3308 | 4.9231 | 48 | 1.1339 | 0.6029 |
|
76 |
+
| 1.1074 | 5.9487 | 58 | 0.9396 | 0.75 |
|
77 |
+
| 0.9162 | 6.9744 | 68 | 0.8551 | 0.7647 |
|
78 |
+
| 0.8174 | 8.0 | 78 | 0.8291 | 0.7574 |
|
79 |
+
| 0.7135 | 8.9231 | 87 | 0.7505 | 0.7941 |
|
80 |
+
| 0.6222 | 9.9487 | 97 | 0.6434 | 0.8456 |
|
81 |
+
| 0.5445 | 10.9744 | 107 | 0.5996 | 0.8529 |
|
82 |
+
| 0.4935 | 12.0 | 117 | 0.5514 | 0.8529 |
|
83 |
+
| 0.4131 | 12.9231 | 126 | 0.5029 | 0.8603 |
|
84 |
+
| 0.4012 | 13.9487 | 136 | 0.5566 | 0.8382 |
|
85 |
+
| 0.3689 | 14.9744 | 146 | 0.5533 | 0.8382 |
|
86 |
+
| 0.3533 | 16.0 | 156 | 0.4232 | 0.8971 |
|
87 |
+
| 0.2954 | 16.9231 | 165 | 0.4589 | 0.8897 |
|
88 |
+
| 0.2907 | 17.9487 | 175 | 0.4223 | 0.8971 |
|
89 |
+
| 0.2804 | 18.9744 | 185 | 0.4056 | 0.8971 |
|
90 |
+
| 0.2469 | 20.0 | 195 | 0.3904 | 0.9118 |
|
91 |
+
| 0.2643 | 20.9231 | 204 | 0.3866 | 0.9044 |
|
92 |
+
| 0.2212 | 21.9487 | 214 | 0.4173 | 0.875 |
|
93 |
+
| 0.2476 | 22.9744 | 224 | 0.6001 | 0.8015 |
|
94 |
+
| 0.2347 | 24.0 | 234 | 0.3900 | 0.9044 |
|
95 |
+
| 0.207 | 24.9231 | 243 | 0.4033 | 0.8897 |
|
96 |
+
| 0.1803 | 25.9487 | 253 | 0.3510 | 0.9265 |
|
97 |
+
| 0.1979 | 26.9744 | 263 | 0.3723 | 0.9191 |
|
98 |
+
| 0.1821 | 28.0 | 273 | 0.4320 | 0.8824 |
|
99 |
+
| 0.1992 | 28.9231 | 282 | 0.3557 | 0.9118 |
|
100 |
+
| 0.2154 | 29.9487 | 292 | 0.3362 | 0.9191 |
|
101 |
+
| 0.1801 | 30.9744 | 302 | 0.4358 | 0.875 |
|
102 |
+
| 0.1794 | 32.0 | 312 | 0.3500 | 0.9191 |
|
103 |
+
| 0.1566 | 32.9231 | 321 | 0.3046 | 0.9265 |
|
104 |
+
| 0.1432 | 33.9487 | 331 | 0.3239 | 0.9265 |
|
105 |
+
| 0.145 | 34.9744 | 341 | 0.3311 | 0.9338 |
|
106 |
+
| 0.1578 | 36.0 | 351 | 0.3029 | 0.9338 |
|
107 |
+
| 0.1511 | 36.9231 | 360 | 0.3010 | 0.9338 |
|
108 |
+
| 0.139 | 37.9487 | 370 | 0.2982 | 0.9265 |
|
109 |
+
| 0.1294 | 38.9744 | 380 | 0.3261 | 0.9191 |
|
110 |
+
| 0.1263 | 40.0 | 390 | 0.2932 | 0.9338 |
|
111 |
+
| 0.1263 | 40.9231 | 399 | 0.2944 | 0.9338 |
|
112 |
+
| 0.1216 | 41.9487 | 409 | 0.2867 | 0.9338 |
|
113 |
+
| 0.1199 | 42.9744 | 419 | 0.2887 | 0.9338 |
|
114 |
+
| 0.128 | 44.0 | 429 | 0.2825 | 0.9338 |
|
115 |
+
| 0.1115 | 44.9231 | 438 | 0.2880 | 0.9338 |
|
116 |
+
| 0.1179 | 45.9487 | 448 | 0.2871 | 0.9338 |
|
117 |
+
| 0.12 | 46.1538 | 450 | 0.2870 | 0.9338 |
|
118 |
|
119 |
|
120 |
### Framework versions
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 343236280
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8d25291798151095ab4d777e075e01885447ccfae7dbb6cf288cea854163acd2
|
3 |
size 343236280
|