griffio commited on
Commit
8982246
1 Parent(s): 63d8afd

rotated_maps

Browse files
README.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: google/vit-base-patch16-224-in21k
5
+ tags:
6
+ - image-classification
7
+ - generated_from_trainer
8
+ datasets:
9
+ - imagefolder
10
+ metrics:
11
+ - accuracy
12
+ model-index:
13
+ - name: vit-base-patch16-224-in21k-rotated-dungeons-v12
14
+ results:
15
+ - task:
16
+ name: Image Classification
17
+ type: image-classification
18
+ dataset:
19
+ name: rotated_maps
20
+ type: imagefolder
21
+ config: default
22
+ split: validation
23
+ args: default
24
+ metrics:
25
+ - name: Accuracy
26
+ type: accuracy
27
+ value: 0.6666666666666666
28
+ ---
29
+
30
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
31
+ should probably proofread and complete it, then remove this comment. -->
32
+
33
+ # vit-base-patch16-224-in21k-rotated-dungeons-v12
34
+
35
+ 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 rotated_maps dataset.
36
+ It achieves the following results on the evaluation set:
37
+ - Loss: 1.4316
38
+ - Accuracy: 0.6667
39
+
40
+ ## Model description
41
+
42
+ More information needed
43
+
44
+ ## Intended uses & limitations
45
+
46
+ More information needed
47
+
48
+ ## Training and evaluation data
49
+
50
+ More information needed
51
+
52
+ ## Training procedure
53
+
54
+ ### Training hyperparameters
55
+
56
+ The following hyperparameters were used during training:
57
+ - learning_rate: 1e-05
58
+ - train_batch_size: 4
59
+ - eval_batch_size: 8
60
+ - seed: 1024
61
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
62
+ - lr_scheduler_type: linear
63
+ - num_epochs: 27
64
+ - mixed_precision_training: Native AMP
65
+
66
+ ### Training results
67
+
68
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
+ |:-------------:|:-------:|:----:|:---------------:|:--------:|
70
+ | 1.0811 | 8.3333 | 100 | 1.6611 | 0.4167 |
71
+ | 0.6509 | 16.6667 | 200 | 1.4987 | 0.5 |
72
+ | 0.5656 | 25.0 | 300 | 1.4316 | 0.6667 |
73
+
74
+
75
+ ### Framework versions
76
+
77
+ - Transformers 4.44.2
78
+ - Pytorch 2.5.0+cu121
79
+ - Datasets 3.1.0
80
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 27.0,
3
+ "eval_accuracy": 0.6666666666666666,
4
+ "eval_loss": 1.4315592050552368,
5
+ "eval_runtime": 0.1454,
6
+ "eval_samples_per_second": 82.532,
7
+ "eval_steps_per_second": 13.755,
8
+ "total_flos": 9.624936417107558e+16,
9
+ "train_loss": 0.9185323832947531,
10
+ "train_runtime": 97.1154,
11
+ "train_samples_per_second": 12.789,
12
+ "train_steps_per_second": 3.336
13
+ }
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224-in21k",
3
+ "architectures": [
4
+ "ViTForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "encoder_stride": 16,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.0,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "five",
13
+ "1": "four",
14
+ "2": "one",
15
+ "3": "three",
16
+ "4": "twelve",
17
+ "5": "two",
18
+ "6": "zero"
19
+ },
20
+ "image_size": 224,
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 3072,
23
+ "label2id": {
24
+ "five": "0",
25
+ "four": "1",
26
+ "one": "2",
27
+ "three": "3",
28
+ "twelve": "4",
29
+ "two": "5",
30
+ "zero": "6"
31
+ },
32
+ "layer_norm_eps": 1e-12,
33
+ "model_type": "vit",
34
+ "num_attention_heads": 12,
35
+ "num_channels": 3,
36
+ "num_hidden_layers": 12,
37
+ "patch_size": 16,
38
+ "problem_type": "single_label_classification",
39
+ "qkv_bias": true,
40
+ "torch_dtype": "float32",
41
+ "transformers_version": "4.44.2"
42
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 27.0,
3
+ "eval_accuracy": 0.6666666666666666,
4
+ "eval_loss": 1.4315592050552368,
5
+ "eval_runtime": 0.1454,
6
+ "eval_samples_per_second": 82.532,
7
+ "eval_steps_per_second": 13.755
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1893e4e1fd3068d520917356318f4cbb59b17f3dc378be67fad611a2bc2308c7
3
+ size 343239356
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_processor_type": "ViTImageProcessor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "resample": 2,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 224,
20
+ "width": 224
21
+ }
22
+ }
runs/Nov02_20-31-19_be037f56c5ae/events.out.tfevents.1730579482.be037f56c5ae.1722.7 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:275107fb8a22e59f3fa3a8b9da121ea3bfff1c5daae51520dde5865b25a65f8d
3
+ size 13174
runs/Nov02_20-31-19_be037f56c5ae/events.out.tfevents.1730579581.be037f56c5ae.1722.8 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:641d9a34997851f22471b26377acfb68b6ea542c8bed4e9a4b023276794e8914
3
+ size 411
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 27.0,
3
+ "total_flos": 9.624936417107558e+16,
4
+ "train_loss": 0.9185323832947531,
5
+ "train_runtime": 97.1154,
6
+ "train_samples_per_second": 12.789,
7
+ "train_steps_per_second": 3.336
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,293 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 1.4315592050552368,
3
+ "best_model_checkpoint": "vit-base-patch16-224-in21k-rotated-dungeons-v12/checkpoint-300",
4
+ "epoch": 27.0,
5
+ "eval_steps": 100,
6
+ "global_step": 324,
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.8333333333333334,
13
+ "grad_norm": 3.6018190383911133,
14
+ "learning_rate": 9.691358024691358e-06,
15
+ "loss": 1.8918,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 1.6666666666666665,
20
+ "grad_norm": 3.4979114532470703,
21
+ "learning_rate": 9.382716049382717e-06,
22
+ "loss": 1.7508,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 2.5,
27
+ "grad_norm": 4.02228307723999,
28
+ "learning_rate": 9.074074074074075e-06,
29
+ "loss": 1.5583,
30
+ "step": 30
31
+ },
32
+ {
33
+ "epoch": 3.3333333333333335,
34
+ "grad_norm": 3.0986037254333496,
35
+ "learning_rate": 8.765432098765432e-06,
36
+ "loss": 1.4717,
37
+ "step": 40
38
+ },
39
+ {
40
+ "epoch": 4.166666666666667,
41
+ "grad_norm": 3.573038339614868,
42
+ "learning_rate": 8.456790123456791e-06,
43
+ "loss": 1.4678,
44
+ "step": 50
45
+ },
46
+ {
47
+ "epoch": 5.0,
48
+ "grad_norm": 4.513486385345459,
49
+ "learning_rate": 8.148148148148148e-06,
50
+ "loss": 1.3504,
51
+ "step": 60
52
+ },
53
+ {
54
+ "epoch": 5.833333333333333,
55
+ "grad_norm": 2.933511257171631,
56
+ "learning_rate": 7.839506172839507e-06,
57
+ "loss": 1.28,
58
+ "step": 70
59
+ },
60
+ {
61
+ "epoch": 6.666666666666667,
62
+ "grad_norm": 4.242460250854492,
63
+ "learning_rate": 7.530864197530865e-06,
64
+ "loss": 1.2036,
65
+ "step": 80
66
+ },
67
+ {
68
+ "epoch": 7.5,
69
+ "grad_norm": 4.462291240692139,
70
+ "learning_rate": 7.222222222222223e-06,
71
+ "loss": 1.1049,
72
+ "step": 90
73
+ },
74
+ {
75
+ "epoch": 8.333333333333334,
76
+ "grad_norm": 3.108102560043335,
77
+ "learning_rate": 6.913580246913581e-06,
78
+ "loss": 1.0811,
79
+ "step": 100
80
+ },
81
+ {
82
+ "epoch": 8.333333333333334,
83
+ "eval_accuracy": 0.4166666666666667,
84
+ "eval_loss": 1.6610513925552368,
85
+ "eval_runtime": 0.3767,
86
+ "eval_samples_per_second": 31.86,
87
+ "eval_steps_per_second": 5.31,
88
+ "step": 100
89
+ },
90
+ {
91
+ "epoch": 9.166666666666666,
92
+ "grad_norm": 2.9008240699768066,
93
+ "learning_rate": 6.60493827160494e-06,
94
+ "loss": 1.0747,
95
+ "step": 110
96
+ },
97
+ {
98
+ "epoch": 10.0,
99
+ "grad_norm": 3.7455575466156006,
100
+ "learning_rate": 6.296296296296297e-06,
101
+ "loss": 0.941,
102
+ "step": 120
103
+ },
104
+ {
105
+ "epoch": 10.833333333333334,
106
+ "grad_norm": 2.9407384395599365,
107
+ "learning_rate": 5.9876543209876546e-06,
108
+ "loss": 0.8968,
109
+ "step": 130
110
+ },
111
+ {
112
+ "epoch": 11.666666666666666,
113
+ "grad_norm": 2.319361448287964,
114
+ "learning_rate": 5.6790123456790125e-06,
115
+ "loss": 0.8519,
116
+ "step": 140
117
+ },
118
+ {
119
+ "epoch": 12.5,
120
+ "grad_norm": 4.124772071838379,
121
+ "learning_rate": 5.370370370370371e-06,
122
+ "loss": 0.9155,
123
+ "step": 150
124
+ },
125
+ {
126
+ "epoch": 13.333333333333334,
127
+ "grad_norm": 2.6311306953430176,
128
+ "learning_rate": 5.061728395061729e-06,
129
+ "loss": 0.7229,
130
+ "step": 160
131
+ },
132
+ {
133
+ "epoch": 14.166666666666666,
134
+ "grad_norm": 2.6873831748962402,
135
+ "learning_rate": 4.753086419753087e-06,
136
+ "loss": 0.7839,
137
+ "step": 170
138
+ },
139
+ {
140
+ "epoch": 15.0,
141
+ "grad_norm": 4.260179042816162,
142
+ "learning_rate": 4.444444444444444e-06,
143
+ "loss": 0.7357,
144
+ "step": 180
145
+ },
146
+ {
147
+ "epoch": 15.833333333333334,
148
+ "grad_norm": 2.457617998123169,
149
+ "learning_rate": 4.135802469135803e-06,
150
+ "loss": 0.7007,
151
+ "step": 190
152
+ },
153
+ {
154
+ "epoch": 16.666666666666668,
155
+ "grad_norm": 2.1463468074798584,
156
+ "learning_rate": 3.827160493827161e-06,
157
+ "loss": 0.6509,
158
+ "step": 200
159
+ },
160
+ {
161
+ "epoch": 16.666666666666668,
162
+ "eval_accuracy": 0.5,
163
+ "eval_loss": 1.4986978769302368,
164
+ "eval_runtime": 0.117,
165
+ "eval_samples_per_second": 102.54,
166
+ "eval_steps_per_second": 17.09,
167
+ "step": 200
168
+ },
169
+ {
170
+ "epoch": 17.5,
171
+ "grad_norm": 2.4582600593566895,
172
+ "learning_rate": 3.5185185185185187e-06,
173
+ "loss": 0.6903,
174
+ "step": 210
175
+ },
176
+ {
177
+ "epoch": 18.333333333333332,
178
+ "grad_norm": 1.9703677892684937,
179
+ "learning_rate": 3.2098765432098767e-06,
180
+ "loss": 0.656,
181
+ "step": 220
182
+ },
183
+ {
184
+ "epoch": 19.166666666666668,
185
+ "grad_norm": 2.4972715377807617,
186
+ "learning_rate": 2.901234567901235e-06,
187
+ "loss": 0.6353,
188
+ "step": 230
189
+ },
190
+ {
191
+ "epoch": 20.0,
192
+ "grad_norm": 2.1885712146759033,
193
+ "learning_rate": 2.5925925925925925e-06,
194
+ "loss": 0.6088,
195
+ "step": 240
196
+ },
197
+ {
198
+ "epoch": 20.833333333333332,
199
+ "grad_norm": 2.897416591644287,
200
+ "learning_rate": 2.283950617283951e-06,
201
+ "loss": 0.6143,
202
+ "step": 250
203
+ },
204
+ {
205
+ "epoch": 21.666666666666668,
206
+ "grad_norm": 1.803607702255249,
207
+ "learning_rate": 1.9753086419753087e-06,
208
+ "loss": 0.551,
209
+ "step": 260
210
+ },
211
+ {
212
+ "epoch": 22.5,
213
+ "grad_norm": 2.254380464553833,
214
+ "learning_rate": 1.6666666666666667e-06,
215
+ "loss": 0.5492,
216
+ "step": 270
217
+ },
218
+ {
219
+ "epoch": 23.333333333333332,
220
+ "grad_norm": 1.718522548675537,
221
+ "learning_rate": 1.3580246913580248e-06,
222
+ "loss": 0.5485,
223
+ "step": 280
224
+ },
225
+ {
226
+ "epoch": 24.166666666666668,
227
+ "grad_norm": 2.0524728298187256,
228
+ "learning_rate": 1.0493827160493827e-06,
229
+ "loss": 0.5897,
230
+ "step": 290
231
+ },
232
+ {
233
+ "epoch": 25.0,
234
+ "grad_norm": 3.3403310775756836,
235
+ "learning_rate": 7.407407407407407e-07,
236
+ "loss": 0.5656,
237
+ "step": 300
238
+ },
239
+ {
240
+ "epoch": 25.0,
241
+ "eval_accuracy": 0.6666666666666666,
242
+ "eval_loss": 1.4315592050552368,
243
+ "eval_runtime": 0.138,
244
+ "eval_samples_per_second": 86.966,
245
+ "eval_steps_per_second": 14.494,
246
+ "step": 300
247
+ },
248
+ {
249
+ "epoch": 25.833333333333332,
250
+ "grad_norm": 2.1986382007598877,
251
+ "learning_rate": 4.320987654320988e-07,
252
+ "loss": 0.5497,
253
+ "step": 310
254
+ },
255
+ {
256
+ "epoch": 26.666666666666668,
257
+ "grad_norm": 1.6566905975341797,
258
+ "learning_rate": 1.234567901234568e-07,
259
+ "loss": 0.5395,
260
+ "step": 320
261
+ },
262
+ {
263
+ "epoch": 27.0,
264
+ "step": 324,
265
+ "total_flos": 9.624936417107558e+16,
266
+ "train_loss": 0.9185323832947531,
267
+ "train_runtime": 97.1154,
268
+ "train_samples_per_second": 12.789,
269
+ "train_steps_per_second": 3.336
270
+ }
271
+ ],
272
+ "logging_steps": 10,
273
+ "max_steps": 324,
274
+ "num_input_tokens_seen": 0,
275
+ "num_train_epochs": 27,
276
+ "save_steps": 100,
277
+ "stateful_callbacks": {
278
+ "TrainerControl": {
279
+ "args": {
280
+ "should_epoch_stop": false,
281
+ "should_evaluate": false,
282
+ "should_log": false,
283
+ "should_save": true,
284
+ "should_training_stop": true
285
+ },
286
+ "attributes": {}
287
+ }
288
+ },
289
+ "total_flos": 9.624936417107558e+16,
290
+ "train_batch_size": 4,
291
+ "trial_name": null,
292
+ "trial_params": null
293
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:281636cbda2469109803566c0d502f19c1cb5cc7c427a8da9387ee4acc6645a2
3
+ size 5240