andrei-teodor
commited on
Commit
•
1a0689c
1
Parent(s):
d8aca32
Brain MRI 🧠 fine tune - 14 epochs.
Browse files- README.md +4 -3
- all_results.json +11 -11
- eval_results.json +6 -6
- runs/Aug25_15-13-07_DESKTOP-4SGMSGR/events.out.tfevents.1724588107.DESKTOP-4SGMSGR.40716.1 +3 -0
- train_results.json +6 -6
- trainer_state.json +71 -14
README.md
CHANGED
@@ -3,6 +3,7 @@ library_name: transformers
|
|
3 |
license: apache-2.0
|
4 |
base_model: google/vit-base-patch16-224
|
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-base-brain-mri
|
18 |
|
19 |
-
This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on
|
20 |
It achieves the following results on the evaluation set:
|
21 |
-
- Loss:
|
22 |
-
- Accuracy: 0.
|
23 |
|
24 |
## Model description
|
25 |
|
|
|
3 |
license: apache-2.0
|
4 |
base_model: google/vit-base-patch16-224
|
5 |
tags:
|
6 |
+
- image-classification
|
7 |
- generated_from_trainer
|
8 |
metrics:
|
9 |
- accuracy
|
|
|
17 |
|
18 |
# vit-base-brain-mri
|
19 |
|
20 |
+
This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the BrainMRI dataset.
|
21 |
It achieves the following results on the evaluation set:
|
22 |
+
- Loss: 1.1297
|
23 |
+
- Accuracy: 0.5685
|
24 |
|
25 |
## Model description
|
26 |
|
all_results.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
{
|
2 |
-
"epoch":
|
3 |
-
"eval_accuracy": 0.
|
4 |
-
"eval_loss": 1.
|
5 |
-
"eval_runtime": 3.
|
6 |
-
"eval_samples_per_second":
|
7 |
-
"eval_steps_per_second":
|
8 |
-
"total_flos":
|
9 |
-
"train_loss": 0.
|
10 |
-
"train_runtime":
|
11 |
-
"train_samples_per_second":
|
12 |
-
"train_steps_per_second":
|
13 |
}
|
|
|
1 |
{
|
2 |
+
"epoch": 14.0,
|
3 |
+
"eval_accuracy": 0.5685279187817259,
|
4 |
+
"eval_loss": 1.129746437072754,
|
5 |
+
"eval_runtime": 3.2309,
|
6 |
+
"eval_samples_per_second": 121.946,
|
7 |
+
"eval_steps_per_second": 15.475,
|
8 |
+
"total_flos": 2.4909471645141565e+18,
|
9 |
+
"train_loss": 0.15913245034596277,
|
10 |
+
"train_runtime": 101.1425,
|
11 |
+
"train_samples_per_second": 317.809,
|
12 |
+
"train_steps_per_second": 9.966
|
13 |
}
|
eval_results.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
{
|
2 |
-
"epoch":
|
3 |
-
"eval_accuracy": 0.
|
4 |
-
"eval_loss": 1.
|
5 |
-
"eval_runtime": 3.
|
6 |
-
"eval_samples_per_second":
|
7 |
-
"eval_steps_per_second":
|
8 |
}
|
|
|
1 |
{
|
2 |
+
"epoch": 14.0,
|
3 |
+
"eval_accuracy": 0.5685279187817259,
|
4 |
+
"eval_loss": 1.129746437072754,
|
5 |
+
"eval_runtime": 3.2309,
|
6 |
+
"eval_samples_per_second": 121.946,
|
7 |
+
"eval_steps_per_second": 15.475
|
8 |
}
|
runs/Aug25_15-13-07_DESKTOP-4SGMSGR/events.out.tfevents.1724588107.DESKTOP-4SGMSGR.40716.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4336bd93a62feb8a9f868135ffff22ffd2bf11a93ac44a60b9681a391fbdaabc
|
3 |
+
size 363
|
train_results.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
{
|
2 |
-
"epoch":
|
3 |
-
"total_flos":
|
4 |
-
"train_loss": 0.
|
5 |
-
"train_runtime":
|
6 |
-
"train_samples_per_second":
|
7 |
-
"train_steps_per_second":
|
8 |
}
|
|
|
1 |
{
|
2 |
+
"epoch": 14.0,
|
3 |
+
"total_flos": 2.4909471645141565e+18,
|
4 |
+
"train_loss": 0.15913245034596277,
|
5 |
+
"train_runtime": 101.1425,
|
6 |
+
"train_samples_per_second": 317.809,
|
7 |
+
"train_steps_per_second": 9.966
|
8 |
}
|
trainer_state.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
{
|
2 |
-
"best_metric": 0.
|
3 |
-
"best_model_checkpoint": "./vit-base-brain-mri\\checkpoint-
|
4 |
-
"epoch":
|
5 |
"eval_steps": 500,
|
6 |
-
"global_step":
|
7 |
"is_hyper_param_search": false,
|
8 |
"is_local_process_zero": true,
|
9 |
"is_world_process_zero": true,
|
@@ -148,19 +148,76 @@
|
|
148 |
"step": 720
|
149 |
},
|
150 |
{
|
151 |
-
"epoch":
|
152 |
-
"
|
153 |
-
"
|
154 |
-
"
|
155 |
-
"
|
156 |
-
"
|
157 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
}
|
159 |
],
|
160 |
"logging_steps": 100,
|
161 |
-
"max_steps":
|
162 |
"num_input_tokens_seen": 0,
|
163 |
-
"num_train_epochs":
|
164 |
"save_steps": 500,
|
165 |
"stateful_callbacks": {
|
166 |
"TrainerControl": {
|
@@ -174,7 +231,7 @@
|
|
174 |
"attributes": {}
|
175 |
}
|
176 |
},
|
177 |
-
"total_flos":
|
178 |
"train_batch_size": 32,
|
179 |
"trial_name": null,
|
180 |
"trial_params": null
|
|
|
1 |
{
|
2 |
+
"best_metric": 0.5857352614402771,
|
3 |
+
"best_model_checkpoint": "./vit-base-brain-mri\\checkpoint-1008",
|
4 |
+
"epoch": 14.0,
|
5 |
"eval_steps": 500,
|
6 |
+
"global_step": 1008,
|
7 |
"is_hyper_param_search": false,
|
8 |
"is_local_process_zero": true,
|
9 |
"is_world_process_zero": true,
|
|
|
148 |
"step": 720
|
149 |
},
|
150 |
{
|
151 |
+
"epoch": 11.0,
|
152 |
+
"eval_accuracy": 0.7839721254355401,
|
153 |
+
"eval_loss": 0.6184366941452026,
|
154 |
+
"eval_runtime": 4.8681,
|
155 |
+
"eval_samples_per_second": 117.91,
|
156 |
+
"eval_steps_per_second": 14.79,
|
157 |
+
"step": 792
|
158 |
+
},
|
159 |
+
{
|
160 |
+
"epoch": 11.11111111111111,
|
161 |
+
"grad_norm": 2.4091649055480957,
|
162 |
+
"learning_rate": 6.190476190476189e-05,
|
163 |
+
"loss": 0.5733,
|
164 |
+
"step": 800
|
165 |
+
},
|
166 |
+
{
|
167 |
+
"epoch": 12.0,
|
168 |
+
"eval_accuracy": 0.794425087108014,
|
169 |
+
"eval_loss": 0.6006320714950562,
|
170 |
+
"eval_runtime": 4.8997,
|
171 |
+
"eval_samples_per_second": 117.151,
|
172 |
+
"eval_steps_per_second": 14.695,
|
173 |
+
"step": 864
|
174 |
+
},
|
175 |
+
{
|
176 |
+
"epoch": 12.5,
|
177 |
+
"grad_norm": 2.6921584606170654,
|
178 |
+
"learning_rate": 3.214285714285714e-05,
|
179 |
+
"loss": 0.5555,
|
180 |
+
"step": 900
|
181 |
+
},
|
182 |
+
{
|
183 |
+
"epoch": 13.0,
|
184 |
+
"eval_accuracy": 0.8013937282229965,
|
185 |
+
"eval_loss": 0.5897805690765381,
|
186 |
+
"eval_runtime": 4.8766,
|
187 |
+
"eval_samples_per_second": 117.705,
|
188 |
+
"eval_steps_per_second": 14.764,
|
189 |
+
"step": 936
|
190 |
+
},
|
191 |
+
{
|
192 |
+
"epoch": 13.88888888888889,
|
193 |
+
"grad_norm": 1.2396776676177979,
|
194 |
+
"learning_rate": 2.3809523809523808e-06,
|
195 |
+
"loss": 0.5481,
|
196 |
+
"step": 1000
|
197 |
+
},
|
198 |
+
{
|
199 |
+
"epoch": 14.0,
|
200 |
+
"eval_accuracy": 0.8222996515679443,
|
201 |
+
"eval_loss": 0.5857352614402771,
|
202 |
+
"eval_runtime": 4.9368,
|
203 |
+
"eval_samples_per_second": 116.27,
|
204 |
+
"eval_steps_per_second": 14.584,
|
205 |
+
"step": 1008
|
206 |
+
},
|
207 |
+
{
|
208 |
+
"epoch": 14.0,
|
209 |
+
"step": 1008,
|
210 |
+
"total_flos": 2.4909471645141565e+18,
|
211 |
+
"train_loss": 0.15913245034596277,
|
212 |
+
"train_runtime": 101.1425,
|
213 |
+
"train_samples_per_second": 317.809,
|
214 |
+
"train_steps_per_second": 9.966
|
215 |
}
|
216 |
],
|
217 |
"logging_steps": 100,
|
218 |
+
"max_steps": 1008,
|
219 |
"num_input_tokens_seen": 0,
|
220 |
+
"num_train_epochs": 14,
|
221 |
"save_steps": 500,
|
222 |
"stateful_callbacks": {
|
223 |
"TrainerControl": {
|
|
|
231 |
"attributes": {}
|
232 |
}
|
233 |
},
|
234 |
+
"total_flos": 2.4909471645141565e+18,
|
235 |
"train_batch_size": 32,
|
236 |
"trial_name": null,
|
237 |
"trial_params": null
|