Augusto777
commited on
Commit
•
b560d29
1
Parent(s):
4345022
Model save
Browse files
README.md
ADDED
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-U8-40d
|
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.803921568627451
|
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-U8-40d
|
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: 1.1186
|
36 |
+
- Accuracy: 0.8039
|
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: 6e-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: 40
|
65 |
+
|
66 |
+
### Training results
|
67 |
+
|
68 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
69 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
70 |
+
| 1.3419 | 1.0 | 20 | 1.2998 | 0.4706 |
|
71 |
+
| 1.1313 | 2.0 | 40 | 1.0832 | 0.5686 |
|
72 |
+
| 0.7969 | 3.0 | 60 | 0.8094 | 0.6667 |
|
73 |
+
| 0.5063 | 4.0 | 80 | 0.6573 | 0.7843 |
|
74 |
+
| 0.3367 | 5.0 | 100 | 0.6389 | 0.7647 |
|
75 |
+
| 0.242 | 6.0 | 120 | 0.6879 | 0.7451 |
|
76 |
+
| 0.1881 | 7.0 | 140 | 0.7940 | 0.7059 |
|
77 |
+
| 0.1561 | 8.0 | 160 | 0.8030 | 0.7647 |
|
78 |
+
| 0.1557 | 9.0 | 180 | 0.7004 | 0.8235 |
|
79 |
+
| 0.1154 | 10.0 | 200 | 0.6495 | 0.8431 |
|
80 |
+
| 0.1469 | 11.0 | 220 | 1.1388 | 0.7059 |
|
81 |
+
| 0.0898 | 12.0 | 240 | 0.7967 | 0.7647 |
|
82 |
+
| 0.0719 | 13.0 | 260 | 0.8934 | 0.8039 |
|
83 |
+
| 0.0739 | 14.0 | 280 | 0.8476 | 0.7647 |
|
84 |
+
| 0.0823 | 15.0 | 300 | 0.9692 | 0.7647 |
|
85 |
+
| 0.0828 | 16.0 | 320 | 0.9385 | 0.7843 |
|
86 |
+
| 0.0761 | 17.0 | 340 | 1.1684 | 0.7255 |
|
87 |
+
| 0.0597 | 18.0 | 360 | 0.9414 | 0.7647 |
|
88 |
+
| 0.0727 | 19.0 | 380 | 1.0201 | 0.7059 |
|
89 |
+
| 0.0507 | 20.0 | 400 | 0.8563 | 0.8039 |
|
90 |
+
| 0.0587 | 21.0 | 420 | 0.8476 | 0.7843 |
|
91 |
+
| 0.0608 | 22.0 | 440 | 0.9399 | 0.8039 |
|
92 |
+
| 0.055 | 23.0 | 460 | 0.8820 | 0.7451 |
|
93 |
+
| 0.0619 | 24.0 | 480 | 1.0460 | 0.7647 |
|
94 |
+
| 0.0615 | 25.0 | 500 | 0.9392 | 0.8235 |
|
95 |
+
| 0.0455 | 26.0 | 520 | 0.9267 | 0.8235 |
|
96 |
+
| 0.0567 | 27.0 | 540 | 0.9784 | 0.7843 |
|
97 |
+
| 0.032 | 28.0 | 560 | 1.1541 | 0.7647 |
|
98 |
+
| 0.0276 | 29.0 | 580 | 0.8865 | 0.7843 |
|
99 |
+
| 0.0368 | 30.0 | 600 | 1.0848 | 0.8039 |
|
100 |
+
| 0.0342 | 31.0 | 620 | 0.9638 | 0.8039 |
|
101 |
+
| 0.037 | 32.0 | 640 | 0.9616 | 0.8039 |
|
102 |
+
| 0.0371 | 33.0 | 660 | 1.0073 | 0.8039 |
|
103 |
+
| 0.0371 | 34.0 | 680 | 1.0494 | 0.8039 |
|
104 |
+
| 0.0359 | 35.0 | 700 | 1.1287 | 0.7843 |
|
105 |
+
| 0.0255 | 36.0 | 720 | 1.1831 | 0.7647 |
|
106 |
+
| 0.0269 | 37.0 | 740 | 1.1610 | 0.7843 |
|
107 |
+
| 0.0292 | 38.0 | 760 | 1.1842 | 0.7843 |
|
108 |
+
| 0.0161 | 39.0 | 780 | 1.1092 | 0.8039 |
|
109 |
+
| 0.0333 | 40.0 | 800 | 1.1186 | 0.8039 |
|
110 |
+
|
111 |
+
|
112 |
+
### Framework versions
|
113 |
+
|
114 |
+
- Transformers 4.36.2
|
115 |
+
- Pytorch 2.1.2+cu118
|
116 |
+
- Datasets 2.16.1
|
117 |
+
- 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:265f8a82940715dcac30b74f16880e12342e9a7e14d1e96c30c2982dde3b7b68
|
3 |
size 343230128
|
runs/May24_10-49-47_DESKTOP-SKBE9FB/events.out.tfevents.1716569389.DESKTOP-SKBE9FB.4040.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:1d13805a6fb3c22a31df696a10813b2b707554955c97cd98dd5ae1f16e3099c5
|
3 |
+
size 30249
|