lpodina commited on
Commit
86f2b58
1 Parent(s): 2e73f1b

End of training

Browse files
README.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: microsoft/swin-tiny-patch4-window7-224
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - imagefolder
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: swin-tiny-patch4-window7-224-finetuned-eurosat
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.9781481481481481
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
+ # swin-tiny-patch4-window7-224-finetuned-eurosat
32
+
33
+ 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.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.0628
36
+ - Accuracy: 0.9781
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: 3
65
+
66
+ ### Training results
67
+
68
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
70
+ | 0.2876 | 1.0 | 190 | 0.1039 | 0.9659 |
71
+ | 0.2083 | 2.0 | 380 | 0.0740 | 0.9722 |
72
+ | 0.1625 | 3.0 | 570 | 0.0628 | 0.9781 |
73
+
74
+
75
+ ### Framework versions
76
+
77
+ - Transformers 4.35.0
78
+ - Pytorch 2.1.0+cu118
79
+ - Datasets 2.14.6
80
+ - Tokenizers 0.14.1
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.9781481481481481,
4
+ "eval_loss": 0.06279285252094269,
5
+ "eval_runtime": 17.1656,
6
+ "eval_samples_per_second": 157.292,
7
+ "eval_steps_per_second": 4.952,
8
+ "total_flos": 1.8124066505760768e+18,
9
+ "train_loss": 0.3348683936554089,
10
+ "train_runtime": 1125.7736,
11
+ "train_samples_per_second": 64.755,
12
+ "train_steps_per_second": 0.506
13
+ }
config.json ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/swin-tiny-patch4-window7-224",
3
+ "architectures": [
4
+ "SwinForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "depths": [
8
+ 2,
9
+ 2,
10
+ 6,
11
+ 2
12
+ ],
13
+ "drop_path_rate": 0.1,
14
+ "embed_dim": 96,
15
+ "encoder_stride": 32,
16
+ "hidden_act": "gelu",
17
+ "hidden_dropout_prob": 0.0,
18
+ "hidden_size": 768,
19
+ "id2label": {
20
+ "0": "AnnualCrop",
21
+ "1": "Forest",
22
+ "2": "HerbaceousVegetation",
23
+ "3": "Highway",
24
+ "4": "Industrial",
25
+ "5": "Pasture",
26
+ "6": "PermanentCrop",
27
+ "7": "Residential",
28
+ "8": "River",
29
+ "9": "SeaLake"
30
+ },
31
+ "image_size": 224,
32
+ "initializer_range": 0.02,
33
+ "label2id": {
34
+ "AnnualCrop": 0,
35
+ "Forest": 1,
36
+ "HerbaceousVegetation": 2,
37
+ "Highway": 3,
38
+ "Industrial": 4,
39
+ "Pasture": 5,
40
+ "PermanentCrop": 6,
41
+ "Residential": 7,
42
+ "River": 8,
43
+ "SeaLake": 9
44
+ },
45
+ "layer_norm_eps": 1e-05,
46
+ "mlp_ratio": 4.0,
47
+ "model_type": "swin",
48
+ "num_channels": 3,
49
+ "num_heads": [
50
+ 3,
51
+ 6,
52
+ 12,
53
+ 24
54
+ ],
55
+ "num_layers": 4,
56
+ "out_features": [
57
+ "stage4"
58
+ ],
59
+ "out_indices": [
60
+ 4
61
+ ],
62
+ "patch_size": 4,
63
+ "path_norm": true,
64
+ "problem_type": "single_label_classification",
65
+ "qkv_bias": true,
66
+ "stage_names": [
67
+ "stem",
68
+ "stage1",
69
+ "stage2",
70
+ "stage3",
71
+ "stage4"
72
+ ],
73
+ "torch_dtype": "float32",
74
+ "transformers_version": "4.35.0",
75
+ "use_absolute_embeddings": false,
76
+ "window_size": 7
77
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.9781481481481481,
4
+ "eval_loss": 0.06279285252094269,
5
+ "eval_runtime": 17.1656,
6
+ "eval_samples_per_second": 157.292,
7
+ "eval_steps_per_second": 4.952
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1feab5b80bb49ef677d36789c160edae4918ea2d527fd8d1686c6ad1dbff0396
3
+ size 110367448
runs/Nov03_20-01-45_e93b5b900954/events.out.tfevents.1699041712.e93b5b900954.3040.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13611ab15ba2459a36cfdd2f477e540e64bf76bb16cff3b074a267f6f3ad600b
3
+ size 15273
runs/Nov03_20-01-45_e93b5b900954/events.out.tfevents.1699042856.e93b5b900954.3040.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b53de2681e96b7eb0baf735ebed941283ecaa57cd9513d1692550d4d1ebf4a5
3
+ size 411
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "total_flos": 1.8124066505760768e+18,
4
+ "train_loss": 0.3348683936554089,
5
+ "train_runtime": 1125.7736,
6
+ "train_samples_per_second": 64.755,
7
+ "train_steps_per_second": 0.506
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,397 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.9781481481481481,
3
+ "best_model_checkpoint": "swin-tiny-patch4-window7-224-finetuned-eurosat/checkpoint-570",
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 570,
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.05,
13
+ "learning_rate": 8.771929824561403e-06,
14
+ "loss": 2.3094,
15
+ "step": 10
16
+ },
17
+ {
18
+ "epoch": 0.11,
19
+ "learning_rate": 1.7543859649122806e-05,
20
+ "loss": 2.1012,
21
+ "step": 20
22
+ },
23
+ {
24
+ "epoch": 0.16,
25
+ "learning_rate": 2.6315789473684212e-05,
26
+ "loss": 1.6596,
27
+ "step": 30
28
+ },
29
+ {
30
+ "epoch": 0.21,
31
+ "learning_rate": 3.508771929824561e-05,
32
+ "loss": 1.0129,
33
+ "step": 40
34
+ },
35
+ {
36
+ "epoch": 0.26,
37
+ "learning_rate": 4.3859649122807014e-05,
38
+ "loss": 0.5887,
39
+ "step": 50
40
+ },
41
+ {
42
+ "epoch": 0.32,
43
+ "learning_rate": 4.970760233918128e-05,
44
+ "loss": 0.4976,
45
+ "step": 60
46
+ },
47
+ {
48
+ "epoch": 0.37,
49
+ "learning_rate": 4.8732943469785574e-05,
50
+ "loss": 0.4586,
51
+ "step": 70
52
+ },
53
+ {
54
+ "epoch": 0.42,
55
+ "learning_rate": 4.7758284600389865e-05,
56
+ "loss": 0.3953,
57
+ "step": 80
58
+ },
59
+ {
60
+ "epoch": 0.47,
61
+ "learning_rate": 4.678362573099415e-05,
62
+ "loss": 0.3735,
63
+ "step": 90
64
+ },
65
+ {
66
+ "epoch": 0.53,
67
+ "learning_rate": 4.580896686159844e-05,
68
+ "loss": 0.3729,
69
+ "step": 100
70
+ },
71
+ {
72
+ "epoch": 0.58,
73
+ "learning_rate": 4.483430799220273e-05,
74
+ "loss": 0.3011,
75
+ "step": 110
76
+ },
77
+ {
78
+ "epoch": 0.63,
79
+ "learning_rate": 4.3859649122807014e-05,
80
+ "loss": 0.3308,
81
+ "step": 120
82
+ },
83
+ {
84
+ "epoch": 0.68,
85
+ "learning_rate": 4.2884990253411305e-05,
86
+ "loss": 0.2981,
87
+ "step": 130
88
+ },
89
+ {
90
+ "epoch": 0.74,
91
+ "learning_rate": 4.1910331384015596e-05,
92
+ "loss": 0.295,
93
+ "step": 140
94
+ },
95
+ {
96
+ "epoch": 0.79,
97
+ "learning_rate": 4.093567251461988e-05,
98
+ "loss": 0.2531,
99
+ "step": 150
100
+ },
101
+ {
102
+ "epoch": 0.84,
103
+ "learning_rate": 3.996101364522417e-05,
104
+ "loss": 0.2549,
105
+ "step": 160
106
+ },
107
+ {
108
+ "epoch": 0.89,
109
+ "learning_rate": 3.898635477582846e-05,
110
+ "loss": 0.2486,
111
+ "step": 170
112
+ },
113
+ {
114
+ "epoch": 0.95,
115
+ "learning_rate": 3.8011695906432746e-05,
116
+ "loss": 0.2907,
117
+ "step": 180
118
+ },
119
+ {
120
+ "epoch": 1.0,
121
+ "learning_rate": 3.7037037037037037e-05,
122
+ "loss": 0.2876,
123
+ "step": 190
124
+ },
125
+ {
126
+ "epoch": 1.0,
127
+ "eval_accuracy": 0.965925925925926,
128
+ "eval_loss": 0.10394594818353653,
129
+ "eval_runtime": 17.3596,
130
+ "eval_samples_per_second": 155.533,
131
+ "eval_steps_per_second": 4.896,
132
+ "step": 190
133
+ },
134
+ {
135
+ "epoch": 1.05,
136
+ "learning_rate": 3.606237816764133e-05,
137
+ "loss": 0.2288,
138
+ "step": 200
139
+ },
140
+ {
141
+ "epoch": 1.11,
142
+ "learning_rate": 3.508771929824561e-05,
143
+ "loss": 0.2496,
144
+ "step": 210
145
+ },
146
+ {
147
+ "epoch": 1.16,
148
+ "learning_rate": 3.41130604288499e-05,
149
+ "loss": 0.2061,
150
+ "step": 220
151
+ },
152
+ {
153
+ "epoch": 1.21,
154
+ "learning_rate": 3.313840155945419e-05,
155
+ "loss": 0.249,
156
+ "step": 230
157
+ },
158
+ {
159
+ "epoch": 1.26,
160
+ "learning_rate": 3.216374269005848e-05,
161
+ "loss": 0.2377,
162
+ "step": 240
163
+ },
164
+ {
165
+ "epoch": 1.32,
166
+ "learning_rate": 3.118908382066277e-05,
167
+ "loss": 0.204,
168
+ "step": 250
169
+ },
170
+ {
171
+ "epoch": 1.37,
172
+ "learning_rate": 3.0214424951267055e-05,
173
+ "loss": 0.2296,
174
+ "step": 260
175
+ },
176
+ {
177
+ "epoch": 1.42,
178
+ "learning_rate": 2.9239766081871346e-05,
179
+ "loss": 0.1968,
180
+ "step": 270
181
+ },
182
+ {
183
+ "epoch": 1.47,
184
+ "learning_rate": 2.8265107212475634e-05,
185
+ "loss": 0.2173,
186
+ "step": 280
187
+ },
188
+ {
189
+ "epoch": 1.53,
190
+ "learning_rate": 2.729044834307992e-05,
191
+ "loss": 0.1989,
192
+ "step": 290
193
+ },
194
+ {
195
+ "epoch": 1.58,
196
+ "learning_rate": 2.6315789473684212e-05,
197
+ "loss": 0.17,
198
+ "step": 300
199
+ },
200
+ {
201
+ "epoch": 1.63,
202
+ "learning_rate": 2.53411306042885e-05,
203
+ "loss": 0.2142,
204
+ "step": 310
205
+ },
206
+ {
207
+ "epoch": 1.68,
208
+ "learning_rate": 2.4366471734892787e-05,
209
+ "loss": 0.1615,
210
+ "step": 320
211
+ },
212
+ {
213
+ "epoch": 1.74,
214
+ "learning_rate": 2.3391812865497074e-05,
215
+ "loss": 0.1602,
216
+ "step": 330
217
+ },
218
+ {
219
+ "epoch": 1.79,
220
+ "learning_rate": 2.2417153996101365e-05,
221
+ "loss": 0.1823,
222
+ "step": 340
223
+ },
224
+ {
225
+ "epoch": 1.84,
226
+ "learning_rate": 2.1442495126705653e-05,
227
+ "loss": 0.2038,
228
+ "step": 350
229
+ },
230
+ {
231
+ "epoch": 1.89,
232
+ "learning_rate": 2.046783625730994e-05,
233
+ "loss": 0.1726,
234
+ "step": 360
235
+ },
236
+ {
237
+ "epoch": 1.95,
238
+ "learning_rate": 1.949317738791423e-05,
239
+ "loss": 0.1927,
240
+ "step": 370
241
+ },
242
+ {
243
+ "epoch": 2.0,
244
+ "learning_rate": 1.8518518518518518e-05,
245
+ "loss": 0.2083,
246
+ "step": 380
247
+ },
248
+ {
249
+ "epoch": 2.0,
250
+ "eval_accuracy": 0.9722222222222222,
251
+ "eval_loss": 0.07401775568723679,
252
+ "eval_runtime": 16.6423,
253
+ "eval_samples_per_second": 162.237,
254
+ "eval_steps_per_second": 5.107,
255
+ "step": 380
256
+ },
257
+ {
258
+ "epoch": 2.05,
259
+ "learning_rate": 1.7543859649122806e-05,
260
+ "loss": 0.194,
261
+ "step": 390
262
+ },
263
+ {
264
+ "epoch": 2.11,
265
+ "learning_rate": 1.6569200779727097e-05,
266
+ "loss": 0.1741,
267
+ "step": 400
268
+ },
269
+ {
270
+ "epoch": 2.16,
271
+ "learning_rate": 1.5594541910331384e-05,
272
+ "loss": 0.1485,
273
+ "step": 410
274
+ },
275
+ {
276
+ "epoch": 2.21,
277
+ "learning_rate": 1.4619883040935673e-05,
278
+ "loss": 0.1386,
279
+ "step": 420
280
+ },
281
+ {
282
+ "epoch": 2.26,
283
+ "learning_rate": 1.364522417153996e-05,
284
+ "loss": 0.1547,
285
+ "step": 430
286
+ },
287
+ {
288
+ "epoch": 2.32,
289
+ "learning_rate": 1.267056530214425e-05,
290
+ "loss": 0.163,
291
+ "step": 440
292
+ },
293
+ {
294
+ "epoch": 2.37,
295
+ "learning_rate": 1.1695906432748537e-05,
296
+ "loss": 0.1703,
297
+ "step": 450
298
+ },
299
+ {
300
+ "epoch": 2.42,
301
+ "learning_rate": 1.0721247563352826e-05,
302
+ "loss": 0.1342,
303
+ "step": 460
304
+ },
305
+ {
306
+ "epoch": 2.47,
307
+ "learning_rate": 9.746588693957115e-06,
308
+ "loss": 0.173,
309
+ "step": 470
310
+ },
311
+ {
312
+ "epoch": 2.53,
313
+ "learning_rate": 8.771929824561403e-06,
314
+ "loss": 0.1541,
315
+ "step": 480
316
+ },
317
+ {
318
+ "epoch": 2.58,
319
+ "learning_rate": 7.797270955165692e-06,
320
+ "loss": 0.155,
321
+ "step": 490
322
+ },
323
+ {
324
+ "epoch": 2.63,
325
+ "learning_rate": 6.82261208576998e-06,
326
+ "loss": 0.1276,
327
+ "step": 500
328
+ },
329
+ {
330
+ "epoch": 2.68,
331
+ "learning_rate": 5.8479532163742686e-06,
332
+ "loss": 0.1339,
333
+ "step": 510
334
+ },
335
+ {
336
+ "epoch": 2.74,
337
+ "learning_rate": 4.873294346978558e-06,
338
+ "loss": 0.1468,
339
+ "step": 520
340
+ },
341
+ {
342
+ "epoch": 2.79,
343
+ "learning_rate": 3.898635477582846e-06,
344
+ "loss": 0.1529,
345
+ "step": 530
346
+ },
347
+ {
348
+ "epoch": 2.84,
349
+ "learning_rate": 2.9239766081871343e-06,
350
+ "loss": 0.132,
351
+ "step": 540
352
+ },
353
+ {
354
+ "epoch": 2.89,
355
+ "learning_rate": 1.949317738791423e-06,
356
+ "loss": 0.1375,
357
+ "step": 550
358
+ },
359
+ {
360
+ "epoch": 2.95,
361
+ "learning_rate": 9.746588693957115e-07,
362
+ "loss": 0.1218,
363
+ "step": 560
364
+ },
365
+ {
366
+ "epoch": 3.0,
367
+ "learning_rate": 0.0,
368
+ "loss": 0.1625,
369
+ "step": 570
370
+ },
371
+ {
372
+ "epoch": 3.0,
373
+ "eval_accuracy": 0.9781481481481481,
374
+ "eval_loss": 0.06279285252094269,
375
+ "eval_runtime": 16.7672,
376
+ "eval_samples_per_second": 161.029,
377
+ "eval_steps_per_second": 5.069,
378
+ "step": 570
379
+ },
380
+ {
381
+ "epoch": 3.0,
382
+ "step": 570,
383
+ "total_flos": 1.8124066505760768e+18,
384
+ "train_loss": 0.3348683936554089,
385
+ "train_runtime": 1125.7736,
386
+ "train_samples_per_second": 64.755,
387
+ "train_steps_per_second": 0.506
388
+ }
389
+ ],
390
+ "logging_steps": 10,
391
+ "max_steps": 570,
392
+ "num_train_epochs": 3,
393
+ "save_steps": 500,
394
+ "total_flos": 1.8124066505760768e+18,
395
+ "trial_name": null,
396
+ "trial_params": null
397
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8155db682ae1918f061ff618c07c3e69a30f286f4fd460b71b5fa250dfca6a2f
3
+ size 4664