marthakk commited on
Commit
ac216f6
1 Parent(s): ec2845c

End of training

Browse files
README.md CHANGED
@@ -26,16 +26,16 @@ model-index:
26
  metrics:
27
  - name: Accuracy
28
  type: accuracy
29
- value: 0.9619047619047619
30
  - name: Precision
31
  type: precision
32
- value: 0.9583926593893372
33
  - name: Recall
34
  type: recall
35
- value: 0.9619047619047619
36
  - name: F1
37
  type: f1
38
- value: 0.9587351719211175
39
  ---
40
 
41
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
@@ -45,11 +45,11 @@ should probably proofread and complete it, then remove this comment. -->
45
 
46
  This model is a fine-tuned version of [microsoft/swin-tiny-patch4-window7-224](https://huggingface.co/microsoft/swin-tiny-patch4-window7-224) on the imagefolder dataset.
47
  It achieves the following results on the evaluation set:
48
- - Loss: 0.0711
49
- - Accuracy: 0.9619
50
- - Precision: 0.9584
51
- - Recall: 0.9619
52
- - F1: 0.9587
53
 
54
  ## Model description
55
 
 
26
  metrics:
27
  - name: Accuracy
28
  type: accuracy
29
+ value: 0.9714285714285714
30
  - name: Precision
31
  type: precision
32
+ value: 0.9696825396825397
33
  - name: Recall
34
  type: recall
35
+ value: 0.9714285714285714
36
  - name: F1
37
  type: f1
38
+ value: 0.9695078031212484
39
  ---
40
 
41
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
45
 
46
  This model is a fine-tuned version of [microsoft/swin-tiny-patch4-window7-224](https://huggingface.co/microsoft/swin-tiny-patch4-window7-224) on the imagefolder dataset.
47
  It achieves the following results on the evaluation set:
48
+ - Loss: 0.0814
49
+ - Accuracy: 0.9714
50
+ - Precision: 0.9697
51
+ - Recall: 0.9714
52
+ - F1: 0.9695
53
 
54
  ## Model description
55
 
all_results.json CHANGED
@@ -1,16 +1,16 @@
1
  {
2
- "epoch": 4.615384615384615,
3
- "eval_accuracy": 1.0,
4
- "eval_f1": 1.0,
5
- "eval_loss": 0.0053217145614326,
6
- "eval_precision": 1.0,
7
- "eval_recall": 1.0,
8
- "eval_runtime": 1.8276,
9
- "eval_samples_per_second": 24.075,
10
- "eval_steps_per_second": 1.094,
11
- "total_flos": 4.543674786614477e+16,
12
- "train_loss": 0.02700179343422254,
13
- "train_runtime": 121.8192,
14
- "train_samples_per_second": 16.13,
15
- "train_steps_per_second": 0.123
16
  }
 
1
  {
2
+ "epoch": 9.887640449438202,
3
+ "eval_accuracy": 0.9714285714285714,
4
+ "eval_f1": 0.9695078031212484,
5
+ "eval_loss": 0.08143213391304016,
6
+ "eval_precision": 0.9696825396825397,
7
+ "eval_recall": 0.9714285714285714,
8
+ "eval_runtime": 31.2051,
9
+ "eval_samples_per_second": 10.094,
10
+ "eval_steps_per_second": 0.32,
11
+ "total_flos": 6.968127952294871e+17,
12
+ "train_loss": 0.13535271666266702,
13
+ "train_runtime": 2769.4739,
14
+ "train_samples_per_second": 10.233,
15
+ "train_steps_per_second": 0.079
16
  }
eval_results.json CHANGED
@@ -1,11 +1,11 @@
1
  {
2
- "epoch": 4.615384615384615,
3
- "eval_accuracy": 1.0,
4
- "eval_f1": 1.0,
5
- "eval_loss": 0.0053217145614326,
6
- "eval_precision": 1.0,
7
- "eval_recall": 1.0,
8
- "eval_runtime": 1.8276,
9
- "eval_samples_per_second": 24.075,
10
- "eval_steps_per_second": 1.094
11
  }
 
1
  {
2
+ "epoch": 9.887640449438202,
3
+ "eval_accuracy": 0.9714285714285714,
4
+ "eval_f1": 0.9695078031212484,
5
+ "eval_loss": 0.08143213391304016,
6
+ "eval_precision": 0.9696825396825397,
7
+ "eval_recall": 0.9714285714285714,
8
+ "eval_runtime": 31.2051,
9
+ "eval_samples_per_second": 10.094,
10
+ "eval_steps_per_second": 0.32
11
  }
runs/Oct25_10-28-31_254845bf780a/events.out.tfevents.1729855041.254845bf780a.231.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9eda89293f0f203d7b9913a3d33664584862a12db04180b39a15cf8dd86c9a4
3
+ size 560
train_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
- "epoch": 4.615384615384615,
3
- "total_flos": 4.543674786614477e+16,
4
- "train_loss": 0.02700179343422254,
5
- "train_runtime": 121.8192,
6
- "train_samples_per_second": 16.13,
7
- "train_steps_per_second": 0.123
8
  }
 
1
  {
2
+ "epoch": 9.887640449438202,
3
+ "total_flos": 6.968127952294871e+17,
4
+ "train_loss": 0.13535271666266702,
5
+ "train_runtime": 2769.4739,
6
+ "train_samples_per_second": 10.233,
7
+ "train_steps_per_second": 0.079
8
  }
trainer_state.json CHANGED
@@ -1,94 +1,301 @@
1
  {
2
- "best_metric": 1.0,
3
- "best_model_checkpoint": "swin-tiny-patch4-window7-224-finetuned-eurosat/checkpoint-6",
4
- "epoch": 4.615384615384615,
5
  "eval_steps": 500,
6
- "global_step": 15,
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.9230769230769231,
13
- "eval_accuracy": 0.9318181818181818,
14
- "eval_f1": 0.9303133199567835,
15
- "eval_loss": 0.13062183558940887,
16
- "eval_precision": 0.9386363636363636,
17
- "eval_recall": 0.9318181818181818,
18
- "eval_runtime": 2.2426,
19
- "eval_samples_per_second": 19.62,
20
- "eval_steps_per_second": 0.892,
21
- "step": 3
22
- },
23
- {
24
- "epoch": 1.8461538461538463,
25
- "eval_accuracy": 1.0,
26
- "eval_f1": 1.0,
27
- "eval_loss": 0.0053217145614326,
28
- "eval_precision": 1.0,
29
- "eval_recall": 1.0,
30
- "eval_runtime": 1.7899,
31
- "eval_samples_per_second": 24.583,
32
- "eval_steps_per_second": 1.117,
33
- "step": 6
34
- },
35
- {
36
- "epoch": 2.769230769230769,
37
- "eval_accuracy": 1.0,
38
- "eval_f1": 1.0,
39
- "eval_loss": 0.001675223233178258,
40
- "eval_precision": 1.0,
41
- "eval_recall": 1.0,
42
- "eval_runtime": 1.7929,
43
- "eval_samples_per_second": 24.541,
44
- "eval_steps_per_second": 1.115,
45
- "step": 9
46
- },
47
- {
48
- "epoch": 3.076923076923077,
49
- "grad_norm": 7.759745121002197,
50
- "learning_rate": 1.923076923076923e-05,
51
- "loss": 0.0353,
52
  "step": 10
53
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  {
55
  "epoch": 4.0,
56
- "eval_accuracy": 1.0,
57
- "eval_f1": 1.0,
58
- "eval_loss": 0.0020660320296883583,
59
- "eval_precision": 1.0,
60
- "eval_recall": 1.0,
61
- "eval_runtime": 2.6393,
62
- "eval_samples_per_second": 16.671,
63
- "eval_steps_per_second": 0.758,
64
- "step": 13
65
- },
66
- {
67
- "epoch": 4.615384615384615,
68
- "eval_accuracy": 1.0,
69
- "eval_f1": 1.0,
70
- "eval_loss": 0.0022493237629532814,
71
- "eval_precision": 1.0,
72
- "eval_recall": 1.0,
73
- "eval_runtime": 2.0209,
74
- "eval_samples_per_second": 21.772,
75
- "eval_steps_per_second": 0.99,
76
- "step": 15
77
- },
78
- {
79
- "epoch": 4.615384615384615,
80
- "step": 15,
81
- "total_flos": 4.543674786614477e+16,
82
- "train_loss": 0.02700179343422254,
83
- "train_runtime": 121.8192,
84
- "train_samples_per_second": 16.13,
85
- "train_steps_per_second": 0.123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  }
87
  ],
88
  "logging_steps": 10,
89
- "max_steps": 15,
90
  "num_input_tokens_seen": 0,
91
- "num_train_epochs": 5,
92
  "save_steps": 500,
93
  "stateful_callbacks": {
94
  "TrainerControl": {
@@ -102,7 +309,7 @@
102
  "attributes": {}
103
  }
104
  },
105
- "total_flos": 4.543674786614477e+16,
106
  "train_batch_size": 32,
107
  "trial_name": null,
108
  "trial_params": null
 
1
  {
2
+ "best_metric": 0.9695078031212484,
3
+ "best_model_checkpoint": "swin-tiny-patch4-window7-224-finetuned-eurosat/checkpoint-111",
4
+ "epoch": 9.887640449438202,
5
  "eval_steps": 500,
6
+ "global_step": 220,
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.449438202247191,
13
+ "grad_norm": 6.729045391082764,
14
+ "learning_rate": 2.272727272727273e-05,
15
+ "loss": 0.6016,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  "step": 10
17
  },
18
+ {
19
+ "epoch": 0.898876404494382,
20
+ "grad_norm": 5.153387546539307,
21
+ "learning_rate": 4.545454545454546e-05,
22
+ "loss": 0.2262,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 0.9887640449438202,
27
+ "eval_accuracy": 0.9365079365079365,
28
+ "eval_f1": 0.9058027582617746,
29
+ "eval_loss": 0.20612730085849762,
30
+ "eval_precision": 0.8770471151423532,
31
+ "eval_recall": 0.9365079365079365,
32
+ "eval_runtime": 29.0895,
33
+ "eval_samples_per_second": 10.829,
34
+ "eval_steps_per_second": 0.344,
35
+ "step": 22
36
+ },
37
+ {
38
+ "epoch": 1.348314606741573,
39
+ "grad_norm": 2.6891238689422607,
40
+ "learning_rate": 4.797979797979798e-05,
41
+ "loss": 0.1932,
42
+ "step": 30
43
+ },
44
+ {
45
+ "epoch": 1.797752808988764,
46
+ "grad_norm": 10.437292098999023,
47
+ "learning_rate": 4.545454545454546e-05,
48
+ "loss": 0.1666,
49
+ "step": 40
50
+ },
51
+ {
52
+ "epoch": 1.9775280898876404,
53
+ "eval_accuracy": 0.9333333333333333,
54
+ "eval_f1": 0.9042145593869733,
55
+ "eval_loss": 0.12735532224178314,
56
+ "eval_precision": 0.8768577494692145,
57
+ "eval_recall": 0.9333333333333333,
58
+ "eval_runtime": 28.9476,
59
+ "eval_samples_per_second": 10.882,
60
+ "eval_steps_per_second": 0.345,
61
+ "step": 44
62
+ },
63
+ {
64
+ "epoch": 2.247191011235955,
65
+ "grad_norm": 13.23202896118164,
66
+ "learning_rate": 4.292929292929293e-05,
67
+ "loss": 0.1408,
68
+ "step": 50
69
+ },
70
+ {
71
+ "epoch": 2.696629213483146,
72
+ "grad_norm": 13.037389755249023,
73
+ "learning_rate": 4.0404040404040405e-05,
74
+ "loss": 0.1168,
75
+ "step": 60
76
+ },
77
+ {
78
+ "epoch": 2.966292134831461,
79
+ "eval_accuracy": 0.9523809523809523,
80
+ "eval_f1": 0.9437855353283663,
81
+ "eval_loss": 0.10540811717510223,
82
+ "eval_precision": 0.9461043676729951,
83
+ "eval_recall": 0.9523809523809523,
84
+ "eval_runtime": 28.9757,
85
+ "eval_samples_per_second": 10.871,
86
+ "eval_steps_per_second": 0.345,
87
+ "step": 66
88
+ },
89
+ {
90
+ "epoch": 3.146067415730337,
91
+ "grad_norm": 13.592888832092285,
92
+ "learning_rate": 3.787878787878788e-05,
93
+ "loss": 0.132,
94
+ "step": 70
95
+ },
96
+ {
97
+ "epoch": 3.595505617977528,
98
+ "grad_norm": 4.916988849639893,
99
+ "learning_rate": 3.535353535353535e-05,
100
+ "loss": 0.0984,
101
+ "step": 80
102
+ },
103
  {
104
  "epoch": 4.0,
105
+ "eval_accuracy": 0.9619047619047619,
106
+ "eval_f1": 0.9599166265832932,
107
+ "eval_loss": 0.08242347091436386,
108
+ "eval_precision": 0.9590699155916548,
109
+ "eval_recall": 0.9619047619047619,
110
+ "eval_runtime": 29.2105,
111
+ "eval_samples_per_second": 10.784,
112
+ "eval_steps_per_second": 0.342,
113
+ "step": 89
114
+ },
115
+ {
116
+ "epoch": 4.044943820224719,
117
+ "grad_norm": 5.384190082550049,
118
+ "learning_rate": 3.282828282828283e-05,
119
+ "loss": 0.0997,
120
+ "step": 90
121
+ },
122
+ {
123
+ "epoch": 4.49438202247191,
124
+ "grad_norm": 6.7096028327941895,
125
+ "learning_rate": 3.0303030303030306e-05,
126
+ "loss": 0.1319,
127
+ "step": 100
128
+ },
129
+ {
130
+ "epoch": 4.943820224719101,
131
+ "grad_norm": 3.9921090602874756,
132
+ "learning_rate": 2.777777777777778e-05,
133
+ "loss": 0.1028,
134
+ "step": 110
135
+ },
136
+ {
137
+ "epoch": 4.98876404494382,
138
+ "eval_accuracy": 0.9714285714285714,
139
+ "eval_f1": 0.9695078031212484,
140
+ "eval_loss": 0.08143213391304016,
141
+ "eval_precision": 0.9696825396825397,
142
+ "eval_recall": 0.9714285714285714,
143
+ "eval_runtime": 29.3091,
144
+ "eval_samples_per_second": 10.748,
145
+ "eval_steps_per_second": 0.341,
146
+ "step": 111
147
+ },
148
+ {
149
+ "epoch": 5.393258426966292,
150
+ "grad_norm": 7.567589282989502,
151
+ "learning_rate": 2.5252525252525256e-05,
152
+ "loss": 0.0806,
153
+ "step": 120
154
+ },
155
+ {
156
+ "epoch": 5.842696629213483,
157
+ "grad_norm": 3.001021385192871,
158
+ "learning_rate": 2.272727272727273e-05,
159
+ "loss": 0.1082,
160
+ "step": 130
161
+ },
162
+ {
163
+ "epoch": 5.97752808988764,
164
+ "eval_accuracy": 0.9492063492063492,
165
+ "eval_f1": 0.9329456755199329,
166
+ "eval_loss": 0.08350013196468353,
167
+ "eval_precision": 0.9518195273822283,
168
+ "eval_recall": 0.9492063492063492,
169
+ "eval_runtime": 28.3828,
170
+ "eval_samples_per_second": 11.098,
171
+ "eval_steps_per_second": 0.352,
172
+ "step": 133
173
+ },
174
+ {
175
+ "epoch": 6.292134831460674,
176
+ "grad_norm": 3.2272369861602783,
177
+ "learning_rate": 2.0202020202020203e-05,
178
+ "loss": 0.0914,
179
+ "step": 140
180
+ },
181
+ {
182
+ "epoch": 6.741573033707866,
183
+ "grad_norm": 11.393094062805176,
184
+ "learning_rate": 1.7676767676767676e-05,
185
+ "loss": 0.0962,
186
+ "step": 150
187
+ },
188
+ {
189
+ "epoch": 6.966292134831461,
190
+ "eval_accuracy": 0.9587301587301588,
191
+ "eval_f1": 0.9582359734643997,
192
+ "eval_loss": 0.08720001578330994,
193
+ "eval_precision": 0.9578027275395696,
194
+ "eval_recall": 0.9587301587301588,
195
+ "eval_runtime": 28.5518,
196
+ "eval_samples_per_second": 11.033,
197
+ "eval_steps_per_second": 0.35,
198
+ "step": 155
199
+ },
200
+ {
201
+ "epoch": 7.191011235955056,
202
+ "grad_norm": 3.3998546600341797,
203
+ "learning_rate": 1.5151515151515153e-05,
204
+ "loss": 0.1013,
205
+ "step": 160
206
+ },
207
+ {
208
+ "epoch": 7.640449438202247,
209
+ "grad_norm": 2.875291109085083,
210
+ "learning_rate": 1.2626262626262628e-05,
211
+ "loss": 0.0799,
212
+ "step": 170
213
+ },
214
+ {
215
+ "epoch": 8.0,
216
+ "eval_accuracy": 0.9587301587301588,
217
+ "eval_f1": 0.9545950048462611,
218
+ "eval_loss": 0.08030053973197937,
219
+ "eval_precision": 0.9543377887748749,
220
+ "eval_recall": 0.9587301587301588,
221
+ "eval_runtime": 28.171,
222
+ "eval_samples_per_second": 11.182,
223
+ "eval_steps_per_second": 0.355,
224
+ "step": 178
225
+ },
226
+ {
227
+ "epoch": 8.089887640449438,
228
+ "grad_norm": 3.642427682876587,
229
+ "learning_rate": 1.0101010101010101e-05,
230
+ "loss": 0.0703,
231
+ "step": 180
232
+ },
233
+ {
234
+ "epoch": 8.539325842696629,
235
+ "grad_norm": 11.242568016052246,
236
+ "learning_rate": 7.5757575757575764e-06,
237
+ "loss": 0.0869,
238
+ "step": 190
239
+ },
240
+ {
241
+ "epoch": 8.98876404494382,
242
+ "grad_norm": 11.542448997497559,
243
+ "learning_rate": 5.050505050505051e-06,
244
+ "loss": 0.0954,
245
+ "step": 200
246
+ },
247
+ {
248
+ "epoch": 8.98876404494382,
249
+ "eval_accuracy": 0.9619047619047619,
250
+ "eval_f1": 0.9587351719211175,
251
+ "eval_loss": 0.06851905584335327,
252
+ "eval_precision": 0.9583926593893372,
253
+ "eval_recall": 0.9619047619047619,
254
+ "eval_runtime": 28.2782,
255
+ "eval_samples_per_second": 11.139,
256
+ "eval_steps_per_second": 0.354,
257
+ "step": 200
258
+ },
259
+ {
260
+ "epoch": 9.438202247191011,
261
+ "grad_norm": 4.964309215545654,
262
+ "learning_rate": 2.5252525252525253e-06,
263
+ "loss": 0.0806,
264
+ "step": 210
265
+ },
266
+ {
267
+ "epoch": 9.887640449438202,
268
+ "grad_norm": 3.8892452716827393,
269
+ "learning_rate": 0.0,
270
+ "loss": 0.0771,
271
+ "step": 220
272
+ },
273
+ {
274
+ "epoch": 9.887640449438202,
275
+ "eval_accuracy": 0.9619047619047619,
276
+ "eval_f1": 0.9587351719211175,
277
+ "eval_loss": 0.07111740857362747,
278
+ "eval_precision": 0.9583926593893372,
279
+ "eval_recall": 0.9619047619047619,
280
+ "eval_runtime": 28.6883,
281
+ "eval_samples_per_second": 10.98,
282
+ "eval_steps_per_second": 0.349,
283
+ "step": 220
284
+ },
285
+ {
286
+ "epoch": 9.887640449438202,
287
+ "step": 220,
288
+ "total_flos": 6.968127952294871e+17,
289
+ "train_loss": 0.13535271666266702,
290
+ "train_runtime": 2769.4739,
291
+ "train_samples_per_second": 10.233,
292
+ "train_steps_per_second": 0.079
293
  }
294
  ],
295
  "logging_steps": 10,
296
+ "max_steps": 220,
297
  "num_input_tokens_seen": 0,
298
+ "num_train_epochs": 10,
299
  "save_steps": 500,
300
  "stateful_callbacks": {
301
  "TrainerControl": {
 
309
  "attributes": {}
310
  }
311
  },
312
+ "total_flos": 6.968127952294871e+17,
313
  "train_batch_size": 32,
314
  "trial_name": null,
315
  "trial_params": null