Sohaibsoussi
commited on
Commit
β’
7ae74c4
1
Parent(s):
8c59bb5
Cheers π
Browse files- README.md +4 -3
- all_results.json +13 -0
- eval_results.json +8 -0
- runs/Dec01_00-02-21_WorkstationLPRI/events.out.tfevents.1733008662.WorkstationLPRI.1682692.1 +3 -0
- test_results.json +8 -0
- train_results.json +8 -0
- trainer_state.json +242 -0
README.md
CHANGED
@@ -3,6 +3,7 @@ library_name: transformers
|
|
3 |
license: apache-2.0
|
4 |
base_model: google/vit-base-patch16-224-in21k
|
5 |
tags:
|
|
|
6 |
- generated_from_trainer
|
7 |
metrics:
|
8 |
- accuracy
|
@@ -16,10 +17,10 @@ should probably proofread and complete it, then remove this comment. -->
|
|
16 |
|
17 |
# vit-beans_leaves_disease
|
18 |
|
19 |
-
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on
|
20 |
It achieves the following results on the evaluation set:
|
21 |
-
- Loss: 0.
|
22 |
-
- Accuracy: 0.
|
23 |
|
24 |
## Model description
|
25 |
|
|
|
3 |
license: apache-2.0
|
4 |
base_model: google/vit-base-patch16-224-in21k
|
5 |
tags:
|
6 |
+
- image-classification
|
7 |
- generated_from_trainer
|
8 |
metrics:
|
9 |
- accuracy
|
|
|
17 |
|
18 |
# vit-beans_leaves_disease
|
19 |
|
20 |
+
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 beans dataset.
|
21 |
It achieves the following results on the evaluation set:
|
22 |
+
- Loss: 0.1107
|
23 |
+
- Accuracy: 0.9766
|
24 |
|
25 |
## Model description
|
26 |
|
all_results.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 4.0,
|
3 |
+
"eval_accuracy": 0.9765625,
|
4 |
+
"eval_loss": 0.11071187257766724,
|
5 |
+
"eval_runtime": 1.747,
|
6 |
+
"eval_samples_per_second": 73.269,
|
7 |
+
"eval_steps_per_second": 9.159,
|
8 |
+
"total_flos": 3.205097416476426e+17,
|
9 |
+
"train_loss": 0.12644467391073705,
|
10 |
+
"train_runtime": 75.7545,
|
11 |
+
"train_samples_per_second": 54.597,
|
12 |
+
"train_steps_per_second": 3.432
|
13 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 4.0,
|
3 |
+
"eval_accuracy": 0.9924812030075187,
|
4 |
+
"eval_loss": 0.04637409746646881,
|
5 |
+
"eval_runtime": 2.4176,
|
6 |
+
"eval_samples_per_second": 55.013,
|
7 |
+
"eval_steps_per_second": 7.032
|
8 |
+
}
|
runs/Dec01_00-02-21_WorkstationLPRI/events.out.tfevents.1733008662.WorkstationLPRI.1682692.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:246bbde1708ff966662c8b17b0fb194551b90acc27c4a6bcb6ef2f67bbf4a124
|
3 |
+
size 1057
|
test_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 4.0,
|
3 |
+
"eval_accuracy": 0.9765625,
|
4 |
+
"eval_loss": 0.11071187257766724,
|
5 |
+
"eval_runtime": 1.747,
|
6 |
+
"eval_samples_per_second": 73.269,
|
7 |
+
"eval_steps_per_second": 9.159
|
8 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 4.0,
|
3 |
+
"total_flos": 3.205097416476426e+17,
|
4 |
+
"train_loss": 0.12644467391073705,
|
5 |
+
"train_runtime": 75.7545,
|
6 |
+
"train_samples_per_second": 54.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
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.04637409746646881,
|
3 |
+
"best_model_checkpoint": "./vit-beans_leaves_disease/checkpoint-200",
|
4 |
+
"epoch": 4.0,
|
5 |
+
"eval_steps": 100,
|
6 |
+
"global_step": 260,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 0.15384615384615385,
|
13 |
+
"grad_norm": 2.1672122478485107,
|
14 |
+
"learning_rate": 0.00019230769230769233,
|
15 |
+
"loss": 0.8581,
|
16 |
+
"step": 10
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.3076923076923077,
|
20 |
+
"grad_norm": 1.494405746459961,
|
21 |
+
"learning_rate": 0.00018461538461538463,
|
22 |
+
"loss": 0.3656,
|
23 |
+
"step": 20
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.46153846153846156,
|
27 |
+
"grad_norm": 2.3154523372650146,
|
28 |
+
"learning_rate": 0.00017692307692307693,
|
29 |
+
"loss": 0.2064,
|
30 |
+
"step": 30
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.6153846153846154,
|
34 |
+
"grad_norm": 6.511839866638184,
|
35 |
+
"learning_rate": 0.00016923076923076923,
|
36 |
+
"loss": 0.2592,
|
37 |
+
"step": 40
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.7692307692307693,
|
41 |
+
"grad_norm": 0.5855913162231445,
|
42 |
+
"learning_rate": 0.00016153846153846155,
|
43 |
+
"loss": 0.1352,
|
44 |
+
"step": 50
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.9230769230769231,
|
48 |
+
"grad_norm": 7.207978248596191,
|
49 |
+
"learning_rate": 0.00015384615384615385,
|
50 |
+
"loss": 0.2,
|
51 |
+
"step": 60
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 1.0769230769230769,
|
55 |
+
"grad_norm": 0.31788188219070435,
|
56 |
+
"learning_rate": 0.00014615384615384615,
|
57 |
+
"loss": 0.1526,
|
58 |
+
"step": 70
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 1.2307692307692308,
|
62 |
+
"grad_norm": 0.18049748241901398,
|
63 |
+
"learning_rate": 0.00013846153846153847,
|
64 |
+
"loss": 0.1355,
|
65 |
+
"step": 80
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 1.3846153846153846,
|
69 |
+
"grad_norm": 0.1663343608379364,
|
70 |
+
"learning_rate": 0.00013076923076923077,
|
71 |
+
"loss": 0.0904,
|
72 |
+
"step": 90
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"epoch": 1.5384615384615383,
|
76 |
+
"grad_norm": 4.684115409851074,
|
77 |
+
"learning_rate": 0.0001230769230769231,
|
78 |
+
"loss": 0.1672,
|
79 |
+
"step": 100
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 1.5384615384615383,
|
83 |
+
"eval_accuracy": 0.9473684210526315,
|
84 |
+
"eval_loss": 0.18420261144638062,
|
85 |
+
"eval_runtime": 2.0629,
|
86 |
+
"eval_samples_per_second": 64.473,
|
87 |
+
"eval_steps_per_second": 8.241,
|
88 |
+
"step": 100
|
89 |
+
},
|
90 |
+
{
|
91 |
+
"epoch": 1.6923076923076923,
|
92 |
+
"grad_norm": 2.094054698944092,
|
93 |
+
"learning_rate": 0.00011538461538461538,
|
94 |
+
"loss": 0.1905,
|
95 |
+
"step": 110
|
96 |
+
},
|
97 |
+
{
|
98 |
+
"epoch": 1.8461538461538463,
|
99 |
+
"grad_norm": 4.573807716369629,
|
100 |
+
"learning_rate": 0.0001076923076923077,
|
101 |
+
"loss": 0.1537,
|
102 |
+
"step": 120
|
103 |
+
},
|
104 |
+
{
|
105 |
+
"epoch": 2.0,
|
106 |
+
"grad_norm": 0.21059000492095947,
|
107 |
+
"learning_rate": 0.0001,
|
108 |
+
"loss": 0.0483,
|
109 |
+
"step": 130
|
110 |
+
},
|
111 |
+
{
|
112 |
+
"epoch": 2.1538461538461537,
|
113 |
+
"grad_norm": 0.11981552094221115,
|
114 |
+
"learning_rate": 9.230769230769232e-05,
|
115 |
+
"loss": 0.0287,
|
116 |
+
"step": 140
|
117 |
+
},
|
118 |
+
{
|
119 |
+
"epoch": 2.3076923076923075,
|
120 |
+
"grad_norm": 0.6703248620033264,
|
121 |
+
"learning_rate": 8.461538461538461e-05,
|
122 |
+
"loss": 0.0344,
|
123 |
+
"step": 150
|
124 |
+
},
|
125 |
+
{
|
126 |
+
"epoch": 2.4615384615384617,
|
127 |
+
"grad_norm": 0.09458092600107193,
|
128 |
+
"learning_rate": 7.692307692307693e-05,
|
129 |
+
"loss": 0.0433,
|
130 |
+
"step": 160
|
131 |
+
},
|
132 |
+
{
|
133 |
+
"epoch": 2.6153846153846154,
|
134 |
+
"grad_norm": 0.08353827148675919,
|
135 |
+
"learning_rate": 6.923076923076924e-05,
|
136 |
+
"loss": 0.0209,
|
137 |
+
"step": 170
|
138 |
+
},
|
139 |
+
{
|
140 |
+
"epoch": 2.769230769230769,
|
141 |
+
"grad_norm": 0.09006886929273605,
|
142 |
+
"learning_rate": 6.153846153846155e-05,
|
143 |
+
"loss": 0.0401,
|
144 |
+
"step": 180
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"epoch": 2.9230769230769234,
|
148 |
+
"grad_norm": 0.07661747187376022,
|
149 |
+
"learning_rate": 5.384615384615385e-05,
|
150 |
+
"loss": 0.036,
|
151 |
+
"step": 190
|
152 |
+
},
|
153 |
+
{
|
154 |
+
"epoch": 3.076923076923077,
|
155 |
+
"grad_norm": 0.06653212010860443,
|
156 |
+
"learning_rate": 4.615384615384616e-05,
|
157 |
+
"loss": 0.03,
|
158 |
+
"step": 200
|
159 |
+
},
|
160 |
+
{
|
161 |
+
"epoch": 3.076923076923077,
|
162 |
+
"eval_accuracy": 0.9924812030075187,
|
163 |
+
"eval_loss": 0.04637409746646881,
|
164 |
+
"eval_runtime": 1.3925,
|
165 |
+
"eval_samples_per_second": 95.511,
|
166 |
+
"eval_steps_per_second": 12.208,
|
167 |
+
"step": 200
|
168 |
+
},
|
169 |
+
{
|
170 |
+
"epoch": 3.230769230769231,
|
171 |
+
"grad_norm": 0.12397517263889313,
|
172 |
+
"learning_rate": 3.846153846153846e-05,
|
173 |
+
"loss": 0.0131,
|
174 |
+
"step": 210
|
175 |
+
},
|
176 |
+
{
|
177 |
+
"epoch": 3.3846153846153846,
|
178 |
+
"grad_norm": 0.06832624971866608,
|
179 |
+
"learning_rate": 3.0769230769230774e-05,
|
180 |
+
"loss": 0.0143,
|
181 |
+
"step": 220
|
182 |
+
},
|
183 |
+
{
|
184 |
+
"epoch": 3.5384615384615383,
|
185 |
+
"grad_norm": 0.06463640928268433,
|
186 |
+
"learning_rate": 2.307692307692308e-05,
|
187 |
+
"loss": 0.0124,
|
188 |
+
"step": 230
|
189 |
+
},
|
190 |
+
{
|
191 |
+
"epoch": 3.6923076923076925,
|
192 |
+
"grad_norm": 0.06494957208633423,
|
193 |
+
"learning_rate": 1.5384615384615387e-05,
|
194 |
+
"loss": 0.0123,
|
195 |
+
"step": 240
|
196 |
+
},
|
197 |
+
{
|
198 |
+
"epoch": 3.8461538461538463,
|
199 |
+
"grad_norm": 9.875919342041016,
|
200 |
+
"learning_rate": 7.692307692307694e-06,
|
201 |
+
"loss": 0.0269,
|
202 |
+
"step": 250
|
203 |
+
},
|
204 |
+
{
|
205 |
+
"epoch": 4.0,
|
206 |
+
"grad_norm": 0.06551710516214371,
|
207 |
+
"learning_rate": 0.0,
|
208 |
+
"loss": 0.0123,
|
209 |
+
"step": 260
|
210 |
+
},
|
211 |
+
{
|
212 |
+
"epoch": 4.0,
|
213 |
+
"step": 260,
|
214 |
+
"total_flos": 3.205097416476426e+17,
|
215 |
+
"train_loss": 0.12644467391073705,
|
216 |
+
"train_runtime": 75.7545,
|
217 |
+
"train_samples_per_second": 54.597,
|
218 |
+
"train_steps_per_second": 3.432
|
219 |
+
}
|
220 |
+
],
|
221 |
+
"logging_steps": 10,
|
222 |
+
"max_steps": 260,
|
223 |
+
"num_input_tokens_seen": 0,
|
224 |
+
"num_train_epochs": 4,
|
225 |
+
"save_steps": 100,
|
226 |
+
"stateful_callbacks": {
|
227 |
+
"TrainerControl": {
|
228 |
+
"args": {
|
229 |
+
"should_epoch_stop": false,
|
230 |
+
"should_evaluate": false,
|
231 |
+
"should_log": false,
|
232 |
+
"should_save": true,
|
233 |
+
"should_training_stop": true
|
234 |
+
},
|
235 |
+
"attributes": {}
|
236 |
+
}
|
237 |
+
},
|
238 |
+
"total_flos": 3.205097416476426e+17,
|
239 |
+
"train_batch_size": 16,
|
240 |
+
"trial_name": null,
|
241 |
+
"trial_params": null
|
242 |
+
}
|