griffio commited on
Commit
ccaa1f3
1 Parent(s): 0b28f14

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-v10
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.875
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-v10
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: 0.9495
38
+ - Accuracy: 0.875
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: 25
64
+ - mixed_precision_training: Native AMP
65
+
66
+ ### Training results
67
+
68
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
+ |:-------------:|:-------:|:----:|:---------------:|:--------:|
70
+ | 0.3924 | 8.3333 | 100 | 1.0648 | 0.75 |
71
+ | 0.2925 | 16.6667 | 200 | 0.9745 | 0.875 |
72
+ | 0.2696 | 25.0 | 300 | 0.9495 | 0.875 |
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": 25.0,
3
+ "eval_accuracy": 0.875,
4
+ "eval_loss": 0.949462890625,
5
+ "eval_runtime": 0.1295,
6
+ "eval_samples_per_second": 61.775,
7
+ "eval_steps_per_second": 7.722,
8
+ "total_flos": 9.10571681972736e+16,
9
+ "train_loss": 0.3887536287307739,
10
+ "train_runtime": 50.4832,
11
+ "train_samples_per_second": 23.275,
12
+ "train_steps_per_second": 5.943
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": 25.0,
3
+ "eval_accuracy": 0.875,
4
+ "eval_loss": 0.949462890625,
5
+ "eval_runtime": 0.1295,
6
+ "eval_samples_per_second": 61.775,
7
+ "eval_steps_per_second": 7.722
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83fafab7f4e060bcfc378657c677f74b4fc4e050f70271d46f906e25fe6250b2
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-16-33_be037f56c5ae/events.out.tfevents.1730578599.be037f56c5ae.1722.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35b6324e1f1f4f9a747605b46c209f55631e6a24907bf7e9b9d527eee38f6861
3
+ size 12846
runs/Nov02_20-16-33_be037f56c5ae/events.out.tfevents.1730578651.be037f56c5ae.1722.3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:506da935265e20a570e2b8a0cf1dd9af344bafa3843700ff46084d2f7950fcb5
3
+ size 411
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 25.0,
3
+ "total_flos": 9.10571681972736e+16,
4
+ "train_loss": 0.3887536287307739,
5
+ "train_runtime": 50.4832,
6
+ "train_samples_per_second": 23.275,
7
+ "train_steps_per_second": 5.943
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,279 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.949462890625,
3
+ "best_model_checkpoint": "vit-base-patch16-224-in21k-rotated-dungeons-v10/checkpoint-300",
4
+ "epoch": 25.0,
5
+ "eval_steps": 100,
6
+ "global_step": 300,
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": 2.3087613582611084,
14
+ "learning_rate": 9.666666666666667e-06,
15
+ "loss": 0.6636,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 1.6666666666666665,
20
+ "grad_norm": 2.7166261672973633,
21
+ "learning_rate": 9.333333333333334e-06,
22
+ "loss": 0.6662,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 2.5,
27
+ "grad_norm": 3.353682279586792,
28
+ "learning_rate": 9e-06,
29
+ "loss": 0.5914,
30
+ "step": 30
31
+ },
32
+ {
33
+ "epoch": 3.3333333333333335,
34
+ "grad_norm": 2.8412413597106934,
35
+ "learning_rate": 8.666666666666668e-06,
36
+ "loss": 0.5596,
37
+ "step": 40
38
+ },
39
+ {
40
+ "epoch": 4.166666666666667,
41
+ "grad_norm": 1.754184603691101,
42
+ "learning_rate": 8.333333333333334e-06,
43
+ "loss": 0.5065,
44
+ "step": 50
45
+ },
46
+ {
47
+ "epoch": 5.0,
48
+ "grad_norm": 2.479107141494751,
49
+ "learning_rate": 8.000000000000001e-06,
50
+ "loss": 0.4977,
51
+ "step": 60
52
+ },
53
+ {
54
+ "epoch": 5.833333333333333,
55
+ "grad_norm": 2.0364372730255127,
56
+ "learning_rate": 7.666666666666667e-06,
57
+ "loss": 0.4746,
58
+ "step": 70
59
+ },
60
+ {
61
+ "epoch": 6.666666666666667,
62
+ "grad_norm": 2.4275097846984863,
63
+ "learning_rate": 7.333333333333333e-06,
64
+ "loss": 0.4526,
65
+ "step": 80
66
+ },
67
+ {
68
+ "epoch": 7.5,
69
+ "grad_norm": 2.7387607097625732,
70
+ "learning_rate": 7e-06,
71
+ "loss": 0.4602,
72
+ "step": 90
73
+ },
74
+ {
75
+ "epoch": 8.333333333333334,
76
+ "grad_norm": 1.6016734838485718,
77
+ "learning_rate": 6.666666666666667e-06,
78
+ "loss": 0.3924,
79
+ "step": 100
80
+ },
81
+ {
82
+ "epoch": 8.333333333333334,
83
+ "eval_accuracy": 0.75,
84
+ "eval_loss": 1.0648193359375,
85
+ "eval_runtime": 0.1023,
86
+ "eval_samples_per_second": 78.165,
87
+ "eval_steps_per_second": 9.771,
88
+ "step": 100
89
+ },
90
+ {
91
+ "epoch": 9.166666666666666,
92
+ "grad_norm": 1.6682934761047363,
93
+ "learning_rate": 6.333333333333333e-06,
94
+ "loss": 0.4078,
95
+ "step": 110
96
+ },
97
+ {
98
+ "epoch": 10.0,
99
+ "grad_norm": 1.6906030178070068,
100
+ "learning_rate": 6e-06,
101
+ "loss": 0.3954,
102
+ "step": 120
103
+ },
104
+ {
105
+ "epoch": 10.833333333333334,
106
+ "grad_norm": 2.5330770015716553,
107
+ "learning_rate": 5.666666666666667e-06,
108
+ "loss": 0.3856,
109
+ "step": 130
110
+ },
111
+ {
112
+ "epoch": 11.666666666666666,
113
+ "grad_norm": 1.7529984712600708,
114
+ "learning_rate": 5.333333333333334e-06,
115
+ "loss": 0.3603,
116
+ "step": 140
117
+ },
118
+ {
119
+ "epoch": 12.5,
120
+ "grad_norm": 1.7168235778808594,
121
+ "learning_rate": 5e-06,
122
+ "loss": 0.3493,
123
+ "step": 150
124
+ },
125
+ {
126
+ "epoch": 13.333333333333334,
127
+ "grad_norm": 1.144932508468628,
128
+ "learning_rate": 4.666666666666667e-06,
129
+ "loss": 0.3555,
130
+ "step": 160
131
+ },
132
+ {
133
+ "epoch": 14.166666666666666,
134
+ "grad_norm": 1.3627619743347168,
135
+ "learning_rate": 4.333333333333334e-06,
136
+ "loss": 0.3087,
137
+ "step": 170
138
+ },
139
+ {
140
+ "epoch": 15.0,
141
+ "grad_norm": 1.25572669506073,
142
+ "learning_rate": 4.000000000000001e-06,
143
+ "loss": 0.3354,
144
+ "step": 180
145
+ },
146
+ {
147
+ "epoch": 15.833333333333334,
148
+ "grad_norm": 1.3966418504714966,
149
+ "learning_rate": 3.6666666666666666e-06,
150
+ "loss": 0.3254,
151
+ "step": 190
152
+ },
153
+ {
154
+ "epoch": 16.666666666666668,
155
+ "grad_norm": 1.105637550354004,
156
+ "learning_rate": 3.3333333333333333e-06,
157
+ "loss": 0.2925,
158
+ "step": 200
159
+ },
160
+ {
161
+ "epoch": 16.666666666666668,
162
+ "eval_accuracy": 0.875,
163
+ "eval_loss": 0.97454833984375,
164
+ "eval_runtime": 0.078,
165
+ "eval_samples_per_second": 102.592,
166
+ "eval_steps_per_second": 12.824,
167
+ "step": 200
168
+ },
169
+ {
170
+ "epoch": 17.5,
171
+ "grad_norm": 1.1144015789031982,
172
+ "learning_rate": 3e-06,
173
+ "loss": 0.323,
174
+ "step": 210
175
+ },
176
+ {
177
+ "epoch": 18.333333333333332,
178
+ "grad_norm": 1.1320604085922241,
179
+ "learning_rate": 2.666666666666667e-06,
180
+ "loss": 0.2966,
181
+ "step": 220
182
+ },
183
+ {
184
+ "epoch": 19.166666666666668,
185
+ "grad_norm": 0.9238783717155457,
186
+ "learning_rate": 2.3333333333333336e-06,
187
+ "loss": 0.2717,
188
+ "step": 230
189
+ },
190
+ {
191
+ "epoch": 20.0,
192
+ "grad_norm": 1.6188000440597534,
193
+ "learning_rate": 2.0000000000000003e-06,
194
+ "loss": 0.3051,
195
+ "step": 240
196
+ },
197
+ {
198
+ "epoch": 20.833333333333332,
199
+ "grad_norm": 1.2386761903762817,
200
+ "learning_rate": 1.6666666666666667e-06,
201
+ "loss": 0.2758,
202
+ "step": 250
203
+ },
204
+ {
205
+ "epoch": 21.666666666666668,
206
+ "grad_norm": 1.056011438369751,
207
+ "learning_rate": 1.3333333333333334e-06,
208
+ "loss": 0.3078,
209
+ "step": 260
210
+ },
211
+ {
212
+ "epoch": 22.5,
213
+ "grad_norm": 0.9684665203094482,
214
+ "learning_rate": 1.0000000000000002e-06,
215
+ "loss": 0.2861,
216
+ "step": 270
217
+ },
218
+ {
219
+ "epoch": 23.333333333333332,
220
+ "grad_norm": 0.9503129720687866,
221
+ "learning_rate": 6.666666666666667e-07,
222
+ "loss": 0.2708,
223
+ "step": 280
224
+ },
225
+ {
226
+ "epoch": 24.166666666666668,
227
+ "grad_norm": 0.9533663392066956,
228
+ "learning_rate": 3.3333333333333335e-07,
229
+ "loss": 0.2753,
230
+ "step": 290
231
+ },
232
+ {
233
+ "epoch": 25.0,
234
+ "grad_norm": 1.1195876598358154,
235
+ "learning_rate": 0.0,
236
+ "loss": 0.2696,
237
+ "step": 300
238
+ },
239
+ {
240
+ "epoch": 25.0,
241
+ "eval_accuracy": 0.875,
242
+ "eval_loss": 0.949462890625,
243
+ "eval_runtime": 0.0772,
244
+ "eval_samples_per_second": 103.628,
245
+ "eval_steps_per_second": 12.953,
246
+ "step": 300
247
+ },
248
+ {
249
+ "epoch": 25.0,
250
+ "step": 300,
251
+ "total_flos": 9.10571681972736e+16,
252
+ "train_loss": 0.3887536287307739,
253
+ "train_runtime": 50.4832,
254
+ "train_samples_per_second": 23.275,
255
+ "train_steps_per_second": 5.943
256
+ }
257
+ ],
258
+ "logging_steps": 10,
259
+ "max_steps": 300,
260
+ "num_input_tokens_seen": 0,
261
+ "num_train_epochs": 25,
262
+ "save_steps": 100,
263
+ "stateful_callbacks": {
264
+ "TrainerControl": {
265
+ "args": {
266
+ "should_epoch_stop": false,
267
+ "should_evaluate": false,
268
+ "should_log": false,
269
+ "should_save": true,
270
+ "should_training_stop": true
271
+ },
272
+ "attributes": {}
273
+ }
274
+ },
275
+ "total_flos": 9.10571681972736e+16,
276
+ "train_batch_size": 4,
277
+ "trial_name": null,
278
+ "trial_params": null
279
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4963f901fc34067afa2a7e3064f7e15d34d4867b4437145155f6b4821a07d872
3
+ size 5240