griffio commited on
Commit
7eae467
1 Parent(s): 7a6ce45

rotated_maps

Browse files
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-v3
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: 1.0
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-v3
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.1515
38
+ - Accuracy: 1.0
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: 0.0002
58
+ - train_batch_size: 5
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: 15
64
+ - mixed_precision_training: Native AMP
65
+
66
+ ### Training results
67
+
68
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
70
+ | 0.0386 | 12.5 | 100 | 0.1515 | 1.0 |
71
+
72
+
73
+ ### Framework versions
74
+
75
+ - Transformers 4.44.2
76
+ - Pytorch 2.5.0+cu121
77
+ - Datasets 3.0.2
78
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 15.0,
3
+ "eval_accuracy": 1.0,
4
+ "eval_loss": 0.1515045166015625,
5
+ "eval_runtime": 0.092,
6
+ "eval_samples_per_second": 76.101,
7
+ "eval_steps_per_second": 10.872,
8
+ "total_flos": 4.417241350846464e+16,
9
+ "train_loss": 0.08117741694053014,
10
+ "train_runtime": 27.1137,
11
+ "train_samples_per_second": 21.023,
12
+ "train_steps_per_second": 4.426
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": 15.0,
3
+ "eval_accuracy": 1.0,
4
+ "eval_loss": 0.1515045166015625,
5
+ "eval_runtime": 0.092,
6
+ "eval_samples_per_second": 76.101,
7
+ "eval_steps_per_second": 10.872
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec300bee5b7dde99c4801ee26ecb64e50738f69095e1b8d86fbc34f204f96153
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/Oct28_19-45-14_5604b9ecc1a6/events.out.tfevents.1730144718.5604b9ecc1a6.1607.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e3eed267378d5ccf2aed36a3c85733a57be652ffcfa6d06468b658a796f9e8c
3
+ size 8394
runs/Oct28_19-45-14_5604b9ecc1a6/events.out.tfevents.1730144746.5604b9ecc1a6.1607.3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ab61383cde6ea7b2c066b2425bc9feee57f8d1253120c36c32c3f4423eecd18
3
+ size 405
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 15.0,
3
+ "total_flos": 4.417241350846464e+16,
4
+ "train_loss": 0.08117741694053014,
5
+ "train_runtime": 27.1137,
6
+ "train_samples_per_second": 21.023,
7
+ "train_steps_per_second": 4.426
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.1515045166015625,
3
+ "best_model_checkpoint": "vit-base-patch16-224-in21k-rotated-dungeons-v3/checkpoint-100",
4
+ "epoch": 15.0,
5
+ "eval_steps": 100,
6
+ "global_step": 120,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 1.25,
13
+ "grad_norm": 0.588030219078064,
14
+ "learning_rate": 0.00018333333333333334,
15
+ "loss": 0.2001,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 2.5,
20
+ "grad_norm": 0.40187984704971313,
21
+ "learning_rate": 0.0001666666666666667,
22
+ "loss": 0.2121,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 3.75,
27
+ "grad_norm": 0.26918885111808777,
28
+ "learning_rate": 0.00015000000000000001,
29
+ "loss": 0.1179,
30
+ "step": 30
31
+ },
32
+ {
33
+ "epoch": 5.0,
34
+ "grad_norm": 0.2864986062049866,
35
+ "learning_rate": 0.00013333333333333334,
36
+ "loss": 0.0755,
37
+ "step": 40
38
+ },
39
+ {
40
+ "epoch": 6.25,
41
+ "grad_norm": 0.20267005264759064,
42
+ "learning_rate": 0.00011666666666666668,
43
+ "loss": 0.0641,
44
+ "step": 50
45
+ },
46
+ {
47
+ "epoch": 7.5,
48
+ "grad_norm": 0.24064351618289948,
49
+ "learning_rate": 0.0001,
50
+ "loss": 0.0523,
51
+ "step": 60
52
+ },
53
+ {
54
+ "epoch": 8.75,
55
+ "grad_norm": 0.15450333058834076,
56
+ "learning_rate": 8.333333333333334e-05,
57
+ "loss": 0.0487,
58
+ "step": 70
59
+ },
60
+ {
61
+ "epoch": 10.0,
62
+ "grad_norm": 0.3064187467098236,
63
+ "learning_rate": 6.666666666666667e-05,
64
+ "loss": 0.0447,
65
+ "step": 80
66
+ },
67
+ {
68
+ "epoch": 11.25,
69
+ "grad_norm": 0.23561660945415497,
70
+ "learning_rate": 5e-05,
71
+ "loss": 0.043,
72
+ "step": 90
73
+ },
74
+ {
75
+ "epoch": 12.5,
76
+ "grad_norm": 0.19291207194328308,
77
+ "learning_rate": 3.3333333333333335e-05,
78
+ "loss": 0.0386,
79
+ "step": 100
80
+ },
81
+ {
82
+ "epoch": 12.5,
83
+ "eval_accuracy": 1.0,
84
+ "eval_loss": 0.1515045166015625,
85
+ "eval_runtime": 0.0635,
86
+ "eval_samples_per_second": 110.175,
87
+ "eval_steps_per_second": 15.739,
88
+ "step": 100
89
+ },
90
+ {
91
+ "epoch": 13.75,
92
+ "grad_norm": 0.14135047793388367,
93
+ "learning_rate": 1.6666666666666667e-05,
94
+ "loss": 0.0402,
95
+ "step": 110
96
+ },
97
+ {
98
+ "epoch": 15.0,
99
+ "grad_norm": 0.2867968678474426,
100
+ "learning_rate": 0.0,
101
+ "loss": 0.037,
102
+ "step": 120
103
+ },
104
+ {
105
+ "epoch": 15.0,
106
+ "step": 120,
107
+ "total_flos": 4.417241350846464e+16,
108
+ "train_loss": 0.08117741694053014,
109
+ "train_runtime": 27.1137,
110
+ "train_samples_per_second": 21.023,
111
+ "train_steps_per_second": 4.426
112
+ }
113
+ ],
114
+ "logging_steps": 10,
115
+ "max_steps": 120,
116
+ "num_input_tokens_seen": 0,
117
+ "num_train_epochs": 15,
118
+ "save_steps": 100,
119
+ "stateful_callbacks": {
120
+ "TrainerControl": {
121
+ "args": {
122
+ "should_epoch_stop": false,
123
+ "should_evaluate": false,
124
+ "should_log": false,
125
+ "should_save": true,
126
+ "should_training_stop": true
127
+ },
128
+ "attributes": {}
129
+ }
130
+ },
131
+ "total_flos": 4.417241350846464e+16,
132
+ "train_batch_size": 5,
133
+ "trial_name": null,
134
+ "trial_params": null
135
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c92f29ff6847d0e143af11ce92e7c695b999cab35edef2863bd027c51ded0a06
3
+ size 5240