rotated_maps
Browse files- README.md +78 -0
- all_results.json +13 -0
- config.json +42 -0
- eval_results.json +8 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- runs/Oct29_20-27-24_3e04bab4dd1f/events.out.tfevents.1730233649.3e04bab4dd1f.943.2 +3 -0
- runs/Oct29_20-27-24_3e04bab4dd1f/events.out.tfevents.1730233675.3e04bab4dd1f.943.3 +3 -0
- train_results.json +8 -0
- trainer_state.json +135 -0
- training_args.bin +3 -0
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-v4
|
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-v4
|
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.5276
|
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: 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.028 | 12.5 | 100 | 0.5276 | 0.875 |
|
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": 0.875,
|
4 |
+
"eval_loss": 0.5275640487670898,
|
5 |
+
"eval_runtime": 0.0981,
|
6 |
+
"eval_samples_per_second": 81.548,
|
7 |
+
"eval_steps_per_second": 10.194,
|
8 |
+
"total_flos": 4.64972773773312e+16,
|
9 |
+
"train_loss": 0.05409030864636103,
|
10 |
+
"train_runtime": 24.6133,
|
11 |
+
"train_samples_per_second": 24.377,
|
12 |
+
"train_steps_per_second": 4.875
|
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": 0.875,
|
4 |
+
"eval_loss": 0.5275640487670898,
|
5 |
+
"eval_runtime": 0.0981,
|
6 |
+
"eval_samples_per_second": 81.548,
|
7 |
+
"eval_steps_per_second": 10.194
|
8 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fb0cf0f495927d34227664f8d251a66c6bdc09c1fc0811c8ebb6bcdedf35a59b
|
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/Oct29_20-27-24_3e04bab4dd1f/events.out.tfevents.1730233649.3e04bab4dd1f.943.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9b6ae88845330efe40182f660a351f6278e53c5494af6281ab5b276521564255
|
3 |
+
size 8394
|
runs/Oct29_20-27-24_3e04bab4dd1f/events.out.tfevents.1730233675.3e04bab4dd1f.943.3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8583364743c4384c1950bdcaa55fbfa703456a744504f2d5b9ef49f5896a79b6
|
3 |
+
size 405
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 15.0,
|
3 |
+
"total_flos": 4.64972773773312e+16,
|
4 |
+
"train_loss": 0.05409030864636103,
|
5 |
+
"train_runtime": 24.6133,
|
6 |
+
"train_samples_per_second": 24.377,
|
7 |
+
"train_steps_per_second": 4.875
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.5275640487670898,
|
3 |
+
"best_model_checkpoint": "vit-base-patch16-224-in21k-rotated-dungeons-v4/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.5645539164543152,
|
14 |
+
"learning_rate": 0.00018333333333333334,
|
15 |
+
"loss": 0.1955,
|
16 |
+
"step": 10
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 2.5,
|
20 |
+
"grad_norm": 0.22394521534442902,
|
21 |
+
"learning_rate": 0.0001666666666666667,
|
22 |
+
"loss": 0.0944,
|
23 |
+
"step": 20
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 3.75,
|
27 |
+
"grad_norm": 0.37107622623443604,
|
28 |
+
"learning_rate": 0.00015000000000000001,
|
29 |
+
"loss": 0.0686,
|
30 |
+
"step": 30
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 5.0,
|
34 |
+
"grad_norm": 0.1673012524843216,
|
35 |
+
"learning_rate": 0.00013333333333333334,
|
36 |
+
"loss": 0.0459,
|
37 |
+
"step": 40
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 6.25,
|
41 |
+
"grad_norm": 0.12259427458047867,
|
42 |
+
"learning_rate": 0.00011666666666666668,
|
43 |
+
"loss": 0.042,
|
44 |
+
"step": 50
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 7.5,
|
48 |
+
"grad_norm": 0.1604679673910141,
|
49 |
+
"learning_rate": 0.0001,
|
50 |
+
"loss": 0.0327,
|
51 |
+
"step": 60
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 8.75,
|
55 |
+
"grad_norm": 0.121036596596241,
|
56 |
+
"learning_rate": 8.333333333333334e-05,
|
57 |
+
"loss": 0.0336,
|
58 |
+
"step": 70
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 10.0,
|
62 |
+
"grad_norm": 0.12557414174079895,
|
63 |
+
"learning_rate": 6.666666666666667e-05,
|
64 |
+
"loss": 0.0295,
|
65 |
+
"step": 80
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 11.25,
|
69 |
+
"grad_norm": 0.10457774996757507,
|
70 |
+
"learning_rate": 5e-05,
|
71 |
+
"loss": 0.0266,
|
72 |
+
"step": 90
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"epoch": 12.5,
|
76 |
+
"grad_norm": 0.10654424130916595,
|
77 |
+
"learning_rate": 3.3333333333333335e-05,
|
78 |
+
"loss": 0.028,
|
79 |
+
"step": 100
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 12.5,
|
83 |
+
"eval_accuracy": 0.875,
|
84 |
+
"eval_loss": 0.5275640487670898,
|
85 |
+
"eval_runtime": 0.0716,
|
86 |
+
"eval_samples_per_second": 111.698,
|
87 |
+
"eval_steps_per_second": 13.962,
|
88 |
+
"step": 100
|
89 |
+
},
|
90 |
+
{
|
91 |
+
"epoch": 13.75,
|
92 |
+
"grad_norm": 0.17629727721214294,
|
93 |
+
"learning_rate": 1.6666666666666667e-05,
|
94 |
+
"loss": 0.028,
|
95 |
+
"step": 110
|
96 |
+
},
|
97 |
+
{
|
98 |
+
"epoch": 15.0,
|
99 |
+
"grad_norm": 0.14613842964172363,
|
100 |
+
"learning_rate": 0.0,
|
101 |
+
"loss": 0.0244,
|
102 |
+
"step": 120
|
103 |
+
},
|
104 |
+
{
|
105 |
+
"epoch": 15.0,
|
106 |
+
"step": 120,
|
107 |
+
"total_flos": 4.64972773773312e+16,
|
108 |
+
"train_loss": 0.05409030864636103,
|
109 |
+
"train_runtime": 24.6133,
|
110 |
+
"train_samples_per_second": 24.377,
|
111 |
+
"train_steps_per_second": 4.875
|
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.64972773773312e+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:8837f7d15b1a74cb7e26c6402883f6bfb19863add42fb26f90acd5371813d8ff
|
3 |
+
size 5240
|