Augusto777
commited on
Commit
•
00046d2
1
Parent(s):
a9fa1d7
Model save
Browse files
README.md
ADDED
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: google/vit-base-patch16-224
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- imagefolder
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: vit-base-patch16-224-ve-U12-b-24
|
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: validation
|
21 |
+
args: default
|
22 |
+
metrics:
|
23 |
+
- name: Accuracy
|
24 |
+
type: accuracy
|
25 |
+
value: 0.8260869565217391
|
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 |
+
# vit-base-patch16-224-ve-U12-b-24
|
32 |
+
|
33 |
+
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.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 0.5747
|
36 |
+
- Accuracy: 0.8261
|
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: 5.5e-05
|
56 |
+
- train_batch_size: 32
|
57 |
+
- eval_batch_size: 32
|
58 |
+
- seed: 42
|
59 |
+
- gradient_accumulation_steps: 4
|
60 |
+
- total_train_batch_size: 128
|
61 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
62 |
+
- lr_scheduler_type: linear
|
63 |
+
- lr_scheduler_warmup_ratio: 0.05
|
64 |
+
- num_epochs: 24
|
65 |
+
|
66 |
+
### Training results
|
67 |
+
|
68 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
69 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
70 |
+
| No log | 0.92 | 6 | 1.3806 | 0.4130 |
|
71 |
+
| 1.379 | 2.0 | 13 | 1.3103 | 0.5435 |
|
72 |
+
| 1.379 | 2.92 | 19 | 1.2269 | 0.4130 |
|
73 |
+
| 1.2758 | 4.0 | 26 | 1.1412 | 0.4565 |
|
74 |
+
| 1.121 | 4.92 | 32 | 1.0650 | 0.4783 |
|
75 |
+
| 1.121 | 6.0 | 39 | 1.0084 | 0.5217 |
|
76 |
+
| 0.9871 | 6.92 | 45 | 0.9395 | 0.6522 |
|
77 |
+
| 0.8612 | 8.0 | 52 | 0.8798 | 0.7174 |
|
78 |
+
| 0.8612 | 8.92 | 58 | 0.8219 | 0.7391 |
|
79 |
+
| 0.7653 | 10.0 | 65 | 0.7712 | 0.7826 |
|
80 |
+
| 0.6674 | 10.92 | 71 | 0.7328 | 0.7609 |
|
81 |
+
| 0.6674 | 12.0 | 78 | 0.6968 | 0.7391 |
|
82 |
+
| 0.568 | 12.92 | 84 | 0.6456 | 0.8478 |
|
83 |
+
| 0.4723 | 14.0 | 91 | 0.6528 | 0.8043 |
|
84 |
+
| 0.4723 | 14.92 | 97 | 0.7107 | 0.6739 |
|
85 |
+
| 0.4256 | 16.0 | 104 | 0.6335 | 0.7609 |
|
86 |
+
| 0.3524 | 16.92 | 110 | 0.5953 | 0.8261 |
|
87 |
+
| 0.3524 | 18.0 | 117 | 0.5824 | 0.8261 |
|
88 |
+
| 0.3282 | 18.92 | 123 | 0.6329 | 0.7174 |
|
89 |
+
| 0.3074 | 20.0 | 130 | 0.5775 | 0.8043 |
|
90 |
+
| 0.3074 | 20.92 | 136 | 0.5770 | 0.8043 |
|
91 |
+
| 0.3076 | 22.0 | 143 | 0.5749 | 0.8261 |
|
92 |
+
| 0.3076 | 22.15 | 144 | 0.5747 | 0.8261 |
|
93 |
+
|
94 |
+
|
95 |
+
### Framework versions
|
96 |
+
|
97 |
+
- Transformers 4.36.2
|
98 |
+
- Pytorch 2.1.2+cu118
|
99 |
+
- Datasets 2.16.1
|
100 |
+
- Tokenizers 0.15.0
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 343230128
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4d85fa4da417aa9fa829e3b5a200c76d4e84129f5fdd750bca418e6751e5982f
|
3 |
size 343230128
|
runs/Jun11_22-31-44_DESKTOP-SKBE9FB/events.out.tfevents.1718166707.DESKTOP-SKBE9FB.8080.0
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:4de76986c7f7a971429fe2ce20758d784ef451dd3e41919b5a818ca05a3a5a31
|
3 |
+
size 14335
|