Commit
•
4f76b64
1
Parent(s):
80878f5
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-40c
|
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.8235294117647058
|
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-40c
|
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.8968
|
36 |
+
- Accuracy: 0.8235
|
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: 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: 40
|
65 |
+
|
66 |
+
### Training results
|
67 |
+
|
68 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
69 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
70 |
+
| 1.3495 | 1.0 | 20 | 1.3142 | 0.4706 |
|
71 |
+
| 1.1689 | 2.0 | 40 | 1.1153 | 0.5686 |
|
72 |
+
| 0.8673 | 3.0 | 60 | 0.8498 | 0.6667 |
|
73 |
+
| 0.5847 | 4.0 | 80 | 0.7220 | 0.7843 |
|
74 |
+
| 0.4029 | 5.0 | 100 | 0.8654 | 0.6275 |
|
75 |
+
| 0.2562 | 6.0 | 120 | 0.5609 | 0.8235 |
|
76 |
+
| 0.2352 | 7.0 | 140 | 0.7272 | 0.7843 |
|
77 |
+
| 0.2131 | 8.0 | 160 | 0.7581 | 0.7255 |
|
78 |
+
| 0.1616 | 9.0 | 180 | 0.5437 | 0.8235 |
|
79 |
+
| 0.1266 | 10.0 | 200 | 0.6345 | 0.8039 |
|
80 |
+
| 0.1557 | 11.0 | 220 | 0.8280 | 0.7647 |
|
81 |
+
| 0.0871 | 12.0 | 240 | 0.9016 | 0.7059 |
|
82 |
+
| 0.0879 | 13.0 | 260 | 0.8099 | 0.7647 |
|
83 |
+
| 0.0844 | 14.0 | 280 | 0.8791 | 0.7255 |
|
84 |
+
| 0.0865 | 15.0 | 300 | 0.9713 | 0.7843 |
|
85 |
+
| 0.1005 | 16.0 | 320 | 0.9966 | 0.7843 |
|
86 |
+
| 0.0718 | 17.0 | 340 | 1.0468 | 0.7647 |
|
87 |
+
| 0.0591 | 18.0 | 360 | 0.9471 | 0.7843 |
|
88 |
+
| 0.0641 | 19.0 | 380 | 0.9905 | 0.7451 |
|
89 |
+
| 0.0542 | 20.0 | 400 | 1.0300 | 0.7451 |
|
90 |
+
| 0.0813 | 21.0 | 420 | 1.0330 | 0.7647 |
|
91 |
+
| 0.059 | 22.0 | 440 | 0.9995 | 0.7647 |
|
92 |
+
| 0.0679 | 23.0 | 460 | 0.9327 | 0.7451 |
|
93 |
+
| 0.0611 | 24.0 | 480 | 1.0073 | 0.7647 |
|
94 |
+
| 0.0694 | 25.0 | 500 | 0.9348 | 0.7647 |
|
95 |
+
| 0.0454 | 26.0 | 520 | 0.8551 | 0.7843 |
|
96 |
+
| 0.0536 | 27.0 | 540 | 0.9782 | 0.7647 |
|
97 |
+
| 0.0429 | 28.0 | 560 | 0.9203 | 0.7843 |
|
98 |
+
| 0.0386 | 29.0 | 580 | 0.8732 | 0.8039 |
|
99 |
+
| 0.0433 | 30.0 | 600 | 0.9376 | 0.7647 |
|
100 |
+
| 0.0353 | 31.0 | 620 | 0.8532 | 0.7843 |
|
101 |
+
| 0.0332 | 32.0 | 640 | 0.9123 | 0.8039 |
|
102 |
+
| 0.0405 | 33.0 | 660 | 0.9603 | 0.8039 |
|
103 |
+
| 0.0423 | 34.0 | 680 | 0.9424 | 0.8039 |
|
104 |
+
| 0.0383 | 35.0 | 700 | 0.9687 | 0.8235 |
|
105 |
+
| 0.0245 | 36.0 | 720 | 0.9509 | 0.8235 |
|
106 |
+
| 0.0309 | 37.0 | 740 | 0.8950 | 0.8235 |
|
107 |
+
| 0.026 | 38.0 | 760 | 0.9082 | 0.8039 |
|
108 |
+
| 0.0192 | 39.0 | 780 | 0.8859 | 0.8235 |
|
109 |
+
| 0.0322 | 40.0 | 800 | 0.8968 | 0.8235 |
|
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:43f8b38684d88a27f82ee841bb6a40f301ddab45f809dc84ac1fa50c5a790bfa
|
3 |
size 343230128
|
runs/May24_10-16-54_DESKTOP-SKBE9FB/events.out.tfevents.1716567416.DESKTOP-SKBE9FB.4252.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:f693f1cb38ac3e0627e3abcd98ebd9e12c397b90906c91608e74aa2b2b3acc5a
|
3 |
+
size 30249
|