Commit
•
dcb6fee
1
Parent(s):
fd34fa5
Model save
Browse files
README.md
ADDED
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: microsoft/beit-base-patch16-224
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- imagefolder
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: beit-base-patch16-224-85-fold4
|
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: train
|
21 |
+
args: default
|
22 |
+
metrics:
|
23 |
+
- name: Accuracy
|
24 |
+
type: accuracy
|
25 |
+
value: 0.8863636363636364
|
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 |
+
# beit-base-patch16-224-85-fold4
|
32 |
+
|
33 |
+
This model is a fine-tuned version of [microsoft/beit-base-patch16-224](https://huggingface.co/microsoft/beit-base-patch16-224) on the imagefolder dataset.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 0.3467
|
36 |
+
- Accuracy: 0.8864
|
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.1
|
64 |
+
- num_epochs: 100
|
65 |
+
|
66 |
+
### Training results
|
67 |
+
|
68 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
69 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
70 |
+
| No log | 1.0 | 2 | 0.6874 | 0.6818 |
|
71 |
+
| No log | 2.0 | 4 | 0.7083 | 0.7045 |
|
72 |
+
| No log | 3.0 | 6 | 0.8871 | 0.7045 |
|
73 |
+
| No log | 4.0 | 8 | 0.7305 | 0.7045 |
|
74 |
+
| 0.6246 | 5.0 | 10 | 0.5791 | 0.7045 |
|
75 |
+
| 0.6246 | 6.0 | 12 | 0.5888 | 0.7045 |
|
76 |
+
| 0.6246 | 7.0 | 14 | 0.6050 | 0.7045 |
|
77 |
+
| 0.6246 | 8.0 | 16 | 0.5468 | 0.7045 |
|
78 |
+
| 0.6246 | 9.0 | 18 | 0.5351 | 0.7045 |
|
79 |
+
| 0.4453 | 10.0 | 20 | 0.4155 | 0.8409 |
|
80 |
+
| 0.4453 | 11.0 | 22 | 0.8266 | 0.7045 |
|
81 |
+
| 0.4453 | 12.0 | 24 | 0.3905 | 0.8409 |
|
82 |
+
| 0.4453 | 13.0 | 26 | 0.3942 | 0.8409 |
|
83 |
+
| 0.4453 | 14.0 | 28 | 0.4015 | 0.8409 |
|
84 |
+
| 0.3613 | 15.0 | 30 | 0.3474 | 0.8182 |
|
85 |
+
| 0.3613 | 16.0 | 32 | 0.4763 | 0.8182 |
|
86 |
+
| 0.3613 | 17.0 | 34 | 0.3894 | 0.7955 |
|
87 |
+
| 0.3613 | 18.0 | 36 | 0.4290 | 0.7955 |
|
88 |
+
| 0.3613 | 19.0 | 38 | 0.3525 | 0.8636 |
|
89 |
+
| 0.2928 | 20.0 | 40 | 0.3426 | 0.8864 |
|
90 |
+
| 0.2928 | 21.0 | 42 | 0.4060 | 0.8182 |
|
91 |
+
| 0.2928 | 22.0 | 44 | 0.6962 | 0.75 |
|
92 |
+
| 0.2928 | 23.0 | 46 | 0.3514 | 0.8636 |
|
93 |
+
| 0.2928 | 24.0 | 48 | 0.5302 | 0.8409 |
|
94 |
+
| 0.2256 | 25.0 | 50 | 0.3094 | 0.8636 |
|
95 |
+
| 0.2256 | 26.0 | 52 | 0.2977 | 0.8636 |
|
96 |
+
| 0.2256 | 27.0 | 54 | 0.4883 | 0.8182 |
|
97 |
+
| 0.2256 | 28.0 | 56 | 0.3008 | 0.8409 |
|
98 |
+
| 0.2256 | 29.0 | 58 | 0.3226 | 0.8409 |
|
99 |
+
| 0.2231 | 30.0 | 60 | 0.4101 | 0.8409 |
|
100 |
+
| 0.2231 | 31.0 | 62 | 0.3197 | 0.8409 |
|
101 |
+
| 0.2231 | 32.0 | 64 | 0.4133 | 0.7727 |
|
102 |
+
| 0.2231 | 33.0 | 66 | 0.2923 | 0.8636 |
|
103 |
+
| 0.2231 | 34.0 | 68 | 0.4391 | 0.8636 |
|
104 |
+
| 0.1756 | 35.0 | 70 | 0.3016 | 0.8636 |
|
105 |
+
| 0.1756 | 36.0 | 72 | 0.2749 | 0.9091 |
|
106 |
+
| 0.1756 | 37.0 | 74 | 0.3146 | 0.8864 |
|
107 |
+
| 0.1756 | 38.0 | 76 | 0.3095 | 0.8409 |
|
108 |
+
| 0.1756 | 39.0 | 78 | 0.3017 | 0.8864 |
|
109 |
+
| 0.1592 | 40.0 | 80 | 0.2762 | 0.8864 |
|
110 |
+
| 0.1592 | 41.0 | 82 | 0.4054 | 0.8409 |
|
111 |
+
| 0.1592 | 42.0 | 84 | 0.2787 | 0.8864 |
|
112 |
+
| 0.1592 | 43.0 | 86 | 0.3193 | 0.8636 |
|
113 |
+
| 0.1592 | 44.0 | 88 | 0.2783 | 0.9091 |
|
114 |
+
| 0.1857 | 45.0 | 90 | 0.2934 | 0.9091 |
|
115 |
+
| 0.1857 | 46.0 | 92 | 0.3579 | 0.8636 |
|
116 |
+
| 0.1857 | 47.0 | 94 | 0.3501 | 0.8864 |
|
117 |
+
| 0.1857 | 48.0 | 96 | 0.3358 | 0.8864 |
|
118 |
+
| 0.1857 | 49.0 | 98 | 0.2981 | 0.9091 |
|
119 |
+
| 0.1179 | 50.0 | 100 | 0.3364 | 0.8636 |
|
120 |
+
| 0.1179 | 51.0 | 102 | 0.3324 | 0.8636 |
|
121 |
+
| 0.1179 | 52.0 | 104 | 0.1725 | 0.9545 |
|
122 |
+
| 0.1179 | 53.0 | 106 | 0.1222 | 0.9545 |
|
123 |
+
| 0.1179 | 54.0 | 108 | 0.1500 | 0.9091 |
|
124 |
+
| 0.1448 | 55.0 | 110 | 0.2358 | 0.9091 |
|
125 |
+
| 0.1448 | 56.0 | 112 | 0.2224 | 0.9091 |
|
126 |
+
| 0.1448 | 57.0 | 114 | 0.1457 | 0.9318 |
|
127 |
+
| 0.1448 | 58.0 | 116 | 0.1745 | 0.9318 |
|
128 |
+
| 0.1448 | 59.0 | 118 | 0.1990 | 0.9091 |
|
129 |
+
| 0.1343 | 60.0 | 120 | 0.2905 | 0.8864 |
|
130 |
+
| 0.1343 | 61.0 | 122 | 0.3842 | 0.8864 |
|
131 |
+
| 0.1343 | 62.0 | 124 | 0.3031 | 0.8864 |
|
132 |
+
| 0.1343 | 63.0 | 126 | 0.2642 | 0.8864 |
|
133 |
+
| 0.1343 | 64.0 | 128 | 0.2412 | 0.9091 |
|
134 |
+
| 0.1109 | 65.0 | 130 | 0.3347 | 0.8864 |
|
135 |
+
| 0.1109 | 66.0 | 132 | 0.4005 | 0.8864 |
|
136 |
+
| 0.1109 | 67.0 | 134 | 0.2905 | 0.8864 |
|
137 |
+
| 0.1109 | 68.0 | 136 | 0.3168 | 0.9318 |
|
138 |
+
| 0.1109 | 69.0 | 138 | 0.3845 | 0.8864 |
|
139 |
+
| 0.1221 | 70.0 | 140 | 0.3178 | 0.9318 |
|
140 |
+
| 0.1221 | 71.0 | 142 | 0.2690 | 0.9318 |
|
141 |
+
| 0.1221 | 72.0 | 144 | 0.2516 | 0.8864 |
|
142 |
+
| 0.1221 | 73.0 | 146 | 0.2347 | 0.9091 |
|
143 |
+
| 0.1221 | 74.0 | 148 | 0.2376 | 0.9318 |
|
144 |
+
| 0.1191 | 75.0 | 150 | 0.2480 | 0.9318 |
|
145 |
+
| 0.1191 | 76.0 | 152 | 0.2597 | 0.9091 |
|
146 |
+
| 0.1191 | 77.0 | 154 | 0.3071 | 0.9091 |
|
147 |
+
| 0.1191 | 78.0 | 156 | 0.3354 | 0.9091 |
|
148 |
+
| 0.1191 | 79.0 | 158 | 0.2988 | 0.8864 |
|
149 |
+
| 0.1133 | 80.0 | 160 | 0.2760 | 0.9091 |
|
150 |
+
| 0.1133 | 81.0 | 162 | 0.2832 | 0.9318 |
|
151 |
+
| 0.1133 | 82.0 | 164 | 0.2793 | 0.9318 |
|
152 |
+
| 0.1133 | 83.0 | 166 | 0.2779 | 0.9091 |
|
153 |
+
| 0.1133 | 84.0 | 168 | 0.3004 | 0.8864 |
|
154 |
+
| 0.098 | 85.0 | 170 | 0.3275 | 0.8864 |
|
155 |
+
| 0.098 | 86.0 | 172 | 0.3394 | 0.8864 |
|
156 |
+
| 0.098 | 87.0 | 174 | 0.3257 | 0.8864 |
|
157 |
+
| 0.098 | 88.0 | 176 | 0.3172 | 0.8864 |
|
158 |
+
| 0.098 | 89.0 | 178 | 0.3122 | 0.9318 |
|
159 |
+
| 0.0917 | 90.0 | 180 | 0.3208 | 0.9318 |
|
160 |
+
| 0.0917 | 91.0 | 182 | 0.3236 | 0.9318 |
|
161 |
+
| 0.0917 | 92.0 | 184 | 0.3274 | 0.9318 |
|
162 |
+
| 0.0917 | 93.0 | 186 | 0.3331 | 0.8864 |
|
163 |
+
| 0.0917 | 94.0 | 188 | 0.3379 | 0.8864 |
|
164 |
+
| 0.0989 | 95.0 | 190 | 0.3404 | 0.8864 |
|
165 |
+
| 0.0989 | 96.0 | 192 | 0.3452 | 0.8864 |
|
166 |
+
| 0.0989 | 97.0 | 194 | 0.3491 | 0.8864 |
|
167 |
+
| 0.0989 | 98.0 | 196 | 0.3489 | 0.8864 |
|
168 |
+
| 0.0989 | 99.0 | 198 | 0.3482 | 0.8864 |
|
169 |
+
| 0.0916 | 100.0 | 200 | 0.3467 | 0.8864 |
|
170 |
+
|
171 |
+
|
172 |
+
### Framework versions
|
173 |
+
|
174 |
+
- Transformers 4.40.2
|
175 |
+
- Pytorch 2.2.1+cu121
|
176 |
+
- Datasets 2.19.1
|
177 |
+
- 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 343080328
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6ffeceb4254fa2ff958d6ad4bc93e3000a4df31d46ca6bab0357ae8117aad910
|
3 |
size 343080328
|
runs/May20_20-49-03_b94dbfcd7693/events.out.tfevents.1716238144.b94dbfcd7693.1289.35
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:2f77bccb1f0e39598a6bbc56cc6c53dcbb6ae45a09e052f0233356efb2dc6852
|
3 |
+
size 41990
|