dukenmarga
commited on
Commit
•
abad43f
1
Parent(s):
9d07f53
End of training
Browse files
README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
---
|
|
|
2 |
license: apache-2.0
|
3 |
-
base_model: google/vit-
|
4 |
tags:
|
5 |
- generated_from_trainer
|
6 |
datasets:
|
@@ -22,7 +23,7 @@ model-index:
|
|
22 |
metrics:
|
23 |
- name: Accuracy
|
24 |
type: accuracy
|
25 |
-
value: 0.
|
26 |
---
|
27 |
|
28 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
@@ -30,10 +31,10 @@ should probably proofread and complete it, then remove this comment. -->
|
|
30 |
|
31 |
# image_classification
|
32 |
|
33 |
-
This model is a fine-tuned version of [google/vit-
|
34 |
It achieves the following results on the evaluation set:
|
35 |
-
- Loss: 1.
|
36 |
-
- Accuracy: 0.
|
37 |
|
38 |
## Model description
|
39 |
|
@@ -53,45 +54,50 @@ More information needed
|
|
53 |
|
54 |
The following hyperparameters were used during training:
|
55 |
- learning_rate: 5e-05
|
56 |
-
- train_batch_size:
|
57 |
-
- eval_batch_size:
|
58 |
- seed: 42
|
59 |
- gradient_accumulation_steps: 4
|
60 |
-
- total_train_batch_size:
|
61 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
62 |
- lr_scheduler_type: linear
|
63 |
- lr_scheduler_warmup_ratio: 0.1
|
64 |
-
- num_epochs:
|
65 |
|
66 |
### Training results
|
67 |
|
68 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
69 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
70 |
-
|
|
71 |
-
| 1.
|
72 |
-
| 1.
|
73 |
-
| 1.
|
74 |
-
|
|
75 |
-
| 0.
|
76 |
-
| 0.
|
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 |
|
91 |
|
92 |
### Framework versions
|
93 |
|
94 |
-
- Transformers 4.
|
95 |
- Pytorch 2.4.0+cu121
|
96 |
- Datasets 2.21.0
|
97 |
- Tokenizers 0.19.1
|
|
|
1 |
---
|
2 |
+
library_name: transformers
|
3 |
license: apache-2.0
|
4 |
+
base_model: google/vit-base-patch16-224-in21k
|
5 |
tags:
|
6 |
- generated_from_trainer
|
7 |
datasets:
|
|
|
23 |
metrics:
|
24 |
- name: Accuracy
|
25 |
type: accuracy
|
26 |
+
value: 0.6125
|
27 |
---
|
28 |
|
29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
31 |
|
32 |
# image_classification
|
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: 1.1555
|
37 |
+
- Accuracy: 0.6125
|
38 |
|
39 |
## Model description
|
40 |
|
|
|
54 |
|
55 |
The following hyperparameters were used during training:
|
56 |
- learning_rate: 5e-05
|
57 |
+
- train_batch_size: 16
|
58 |
+
- eval_batch_size: 16
|
59 |
- seed: 42
|
60 |
- gradient_accumulation_steps: 4
|
61 |
+
- total_train_batch_size: 64
|
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: 25
|
66 |
|
67 |
### Training results
|
68 |
|
69 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
70 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
71 |
+
| 1.7108 | 1.0 | 10 | 1.8424 | 0.4188 |
|
72 |
+
| 1.6278 | 2.0 | 20 | 1.7495 | 0.45 |
|
73 |
+
| 1.465 | 3.0 | 30 | 1.6153 | 0.5062 |
|
74 |
+
| 1.2862 | 4.0 | 40 | 1.5099 | 0.55 |
|
75 |
+
| 1.1151 | 5.0 | 50 | 1.4399 | 0.5312 |
|
76 |
+
| 0.9631 | 6.0 | 60 | 1.3803 | 0.5375 |
|
77 |
+
| 0.8242 | 7.0 | 70 | 1.3213 | 0.5875 |
|
78 |
+
| 0.6939 | 8.0 | 80 | 1.2673 | 0.575 |
|
79 |
+
| 0.576 | 9.0 | 90 | 1.2463 | 0.5938 |
|
80 |
+
| 0.4801 | 10.0 | 100 | 1.2108 | 0.6 |
|
81 |
+
| 0.4008 | 11.0 | 110 | 1.2093 | 0.575 |
|
82 |
+
| 0.3426 | 12.0 | 120 | 1.1744 | 0.5687 |
|
83 |
+
| 0.2976 | 13.0 | 130 | 1.1710 | 0.5938 |
|
84 |
+
| 0.2667 | 14.0 | 140 | 1.1545 | 0.5875 |
|
85 |
+
| 0.2434 | 15.0 | 150 | 1.1622 | 0.6 |
|
86 |
+
| 0.2261 | 16.0 | 160 | 1.1522 | 0.5875 |
|
87 |
+
| 0.2119 | 17.0 | 170 | 1.1486 | 0.6062 |
|
88 |
+
| 0.2016 | 18.0 | 180 | 1.1555 | 0.6125 |
|
89 |
+
| 0.1932 | 19.0 | 190 | 1.1487 | 0.6062 |
|
90 |
+
| 0.1857 | 20.0 | 200 | 1.1422 | 0.5938 |
|
91 |
+
| 0.1812 | 21.0 | 210 | 1.1438 | 0.6 |
|
92 |
+
| 0.1772 | 22.0 | 220 | 1.1521 | 0.5687 |
|
93 |
+
| 0.1735 | 23.0 | 230 | 1.1428 | 0.5938 |
|
94 |
+
| 0.1714 | 24.0 | 240 | 1.1487 | 0.6 |
|
95 |
+
| 0.1703 | 25.0 | 250 | 1.1462 | 0.6 |
|
96 |
|
97 |
|
98 |
### Framework versions
|
99 |
|
100 |
+
- Transformers 4.44.2
|
101 |
- Pytorch 2.4.0+cu121
|
102 |
- Datasets 2.21.0
|
103 |
- Tokenizers 0.19.1
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 343242432
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6ad3b1d68275af8c5ef822963ed2219a3607171ac406ea49736d15a1ab3936ba
|
3 |
size 343242432
|
runs/Sep05_00-12-04_8837de964a95/events.out.tfevents.1725495134.8837de964a95.2043.5
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d5eabbb20dd077c085369e03808031411177922f1386f3f3667afdeb91b1c5f8
|
3 |
+
size 18834
|
runs/Sep05_00-12-04_8837de964a95/events.out.tfevents.1725496628.8837de964a95.2043.6
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a15f0fbe68a0f5e07167f1f5a7f831914beeef9afddc684b71893471a68039fa
|
3 |
+
size 411
|