moock commited on
Commit
b06d7d6
1 Parent(s): 49a77a0

End of training

Browse files
README.md ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: microsoft/swinv2-tiny-patch4-window8-256
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - imagefolder
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: swinv2-tiny-patch4-window8-256-finetuned-gardner-exp-max
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.7953020134228188
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
+ # swinv2-tiny-patch4-window8-256-finetuned-gardner-exp-max
32
+
33
+ This model is a fine-tuned version of [microsoft/swinv2-tiny-patch4-window8-256](https://huggingface.co/microsoft/swinv2-tiny-patch4-window8-256) on the imagefolder dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.5942
36
+ - Accuracy: 0.7953
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: 10
65
+
66
+ ### Training results
67
+
68
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
70
+ | 1.6004 | 0.97 | 14 | 1.4012 | 0.5463 |
71
+ | 1.4099 | 2.0 | 29 | 1.0249 | 0.5463 |
72
+ | 1.1043 | 2.97 | 43 | 0.9695 | 0.6732 |
73
+ | 1.0028 | 4.0 | 58 | 0.8659 | 0.6585 |
74
+ | 0.8915 | 4.97 | 72 | 0.7728 | 0.7317 |
75
+ | 0.8824 | 6.0 | 87 | 0.7238 | 0.7220 |
76
+ | 0.8286 | 6.97 | 101 | 0.7220 | 0.7220 |
77
+ | 0.8274 | 8.0 | 116 | 0.7376 | 0.6976 |
78
+ | 0.7765 | 8.97 | 130 | 0.7117 | 0.7366 |
79
+ | 0.7633 | 9.66 | 140 | 0.7079 | 0.7366 |
80
+
81
+
82
+ ### Framework versions
83
+
84
+ - Transformers 4.36.2
85
+ - Pytorch 2.1.2
86
+ - Datasets 2.16.0
87
+ - Tokenizers 0.15.0
all_results.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 9.66,
3
+ "eval_accuracy": 0.7953020134228188,
4
+ "eval_loss": 0.5942178964614868,
5
+ "eval_runtime": 12.097,
6
+ "eval_samples_per_second": 24.634,
7
+ "eval_steps_per_second": 0.827,
8
+ "train_loss": 0.9881165368216378,
9
+ "train_runtime": 1025.6442,
10
+ "train_samples_per_second": 17.93,
11
+ "train_steps_per_second": 0.136
12
+ }
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/swinv2-tiny-patch4-window8-256",
3
+ "architectures": [
4
+ "Swinv2ForImageClassification"
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": "0",
21
+ "1": "1",
22
+ "2": "2",
23
+ "3": "3",
24
+ "4": "4"
25
+ },
26
+ "image_size": 256,
27
+ "initializer_range": 0.02,
28
+ "label2id": {
29
+ "0": 0,
30
+ "1": 1,
31
+ "2": 2,
32
+ "3": 3,
33
+ "4": 4
34
+ },
35
+ "layer_norm_eps": 1e-05,
36
+ "mlp_ratio": 4.0,
37
+ "model_type": "swinv2",
38
+ "num_channels": 3,
39
+ "num_heads": [
40
+ 3,
41
+ 6,
42
+ 12,
43
+ 24
44
+ ],
45
+ "num_layers": 4,
46
+ "patch_size": 4,
47
+ "path_norm": true,
48
+ "pretrained_window_sizes": [
49
+ 0,
50
+ 0,
51
+ 0,
52
+ 0
53
+ ],
54
+ "problem_type": "single_label_classification",
55
+ "qkv_bias": true,
56
+ "torch_dtype": "float32",
57
+ "transformers_version": "4.36.2",
58
+ "use_absolute_embeddings": false,
59
+ "window_size": 8
60
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 9.66,
3
+ "eval_accuracy": 0.7953020134228188,
4
+ "eval_loss": 0.5942178964614868,
5
+ "eval_runtime": 12.097,
6
+ "eval_samples_per_second": 24.634,
7
+ "eval_steps_per_second": 0.827
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b84f52166f9698bfa19378546856697dc85b2c450c8f3451dc214fc69bf72d4b
3
+ size 110359372
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.485,
7
+ 0.456,
8
+ 0.406
9
+ ],
10
+ "image_processor_type": "ViTImageProcessor",
11
+ "image_std": [
12
+ 0.229,
13
+ 0.224,
14
+ 0.225
15
+ ],
16
+ "resample": 3,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 256,
20
+ "width": 256
21
+ }
22
+ }
runs/Dec26_19-25-49_MacBook-Pro-de-Max-2.local/events.out.tfevents.1703615160.MacBook-Pro-de-Max-2.local.25840.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea35f690e9d8a65739b2ec2f06d9d1898ca906532c44cd3083b720314f301ff6
3
+ size 10529
runs/Dec26_19-25-49_MacBook-Pro-de-Max-2.local/events.out.tfevents.1703616189.MacBook-Pro-de-Max-2.local.25840.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5220613e8db8f4fa85f3dec90d22c7e6c66e3aa4f59f117f0fa797c8ab321a97
3
+ size 734
train_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 9.66,
3
+ "train_loss": 0.9881165368216378,
4
+ "train_runtime": 1025.6442,
5
+ "train_samples_per_second": 17.93,
6
+ "train_steps_per_second": 0.136
7
+ }
trainer_state.json ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.7365853658536585,
3
+ "best_model_checkpoint": "swinv2-tiny-patch4-window8-256-finetuned-gardner-exp-max/checkpoint-130",
4
+ "epoch": 9.655172413793103,
5
+ "eval_steps": 500,
6
+ "global_step": 140,
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.69,
13
+ "learning_rate": 3.571428571428572e-05,
14
+ "loss": 1.6004,
15
+ "step": 10
16
+ },
17
+ {
18
+ "epoch": 0.97,
19
+ "eval_accuracy": 0.5463414634146342,
20
+ "eval_loss": 1.401221752166748,
21
+ "eval_runtime": 10.6657,
22
+ "eval_samples_per_second": 19.22,
23
+ "eval_steps_per_second": 0.656,
24
+ "step": 14
25
+ },
26
+ {
27
+ "epoch": 1.38,
28
+ "learning_rate": 4.761904761904762e-05,
29
+ "loss": 1.4099,
30
+ "step": 20
31
+ },
32
+ {
33
+ "epoch": 2.0,
34
+ "eval_accuracy": 0.5463414634146342,
35
+ "eval_loss": 1.024906039237976,
36
+ "eval_runtime": 3.9358,
37
+ "eval_samples_per_second": 52.086,
38
+ "eval_steps_per_second": 1.779,
39
+ "step": 29
40
+ },
41
+ {
42
+ "epoch": 2.07,
43
+ "learning_rate": 4.3650793650793655e-05,
44
+ "loss": 1.1287,
45
+ "step": 30
46
+ },
47
+ {
48
+ "epoch": 2.76,
49
+ "learning_rate": 3.968253968253968e-05,
50
+ "loss": 1.1043,
51
+ "step": 40
52
+ },
53
+ {
54
+ "epoch": 2.97,
55
+ "eval_accuracy": 0.6731707317073171,
56
+ "eval_loss": 0.9695160388946533,
57
+ "eval_runtime": 4.1803,
58
+ "eval_samples_per_second": 49.039,
59
+ "eval_steps_per_second": 1.675,
60
+ "step": 43
61
+ },
62
+ {
63
+ "epoch": 3.45,
64
+ "learning_rate": 3.571428571428572e-05,
65
+ "loss": 1.0028,
66
+ "step": 50
67
+ },
68
+ {
69
+ "epoch": 4.0,
70
+ "eval_accuracy": 0.6585365853658537,
71
+ "eval_loss": 0.8658934235572815,
72
+ "eval_runtime": 4.0107,
73
+ "eval_samples_per_second": 51.114,
74
+ "eval_steps_per_second": 1.745,
75
+ "step": 58
76
+ },
77
+ {
78
+ "epoch": 4.14,
79
+ "learning_rate": 3.1746031746031745e-05,
80
+ "loss": 0.9609,
81
+ "step": 60
82
+ },
83
+ {
84
+ "epoch": 4.83,
85
+ "learning_rate": 2.777777777777778e-05,
86
+ "loss": 0.8915,
87
+ "step": 70
88
+ },
89
+ {
90
+ "epoch": 4.97,
91
+ "eval_accuracy": 0.7317073170731707,
92
+ "eval_loss": 0.7727790474891663,
93
+ "eval_runtime": 4.0395,
94
+ "eval_samples_per_second": 50.748,
95
+ "eval_steps_per_second": 1.733,
96
+ "step": 72
97
+ },
98
+ {
99
+ "epoch": 5.52,
100
+ "learning_rate": 2.380952380952381e-05,
101
+ "loss": 0.8824,
102
+ "step": 80
103
+ },
104
+ {
105
+ "epoch": 6.0,
106
+ "eval_accuracy": 0.7219512195121951,
107
+ "eval_loss": 0.7237768173217773,
108
+ "eval_runtime": 3.9086,
109
+ "eval_samples_per_second": 52.449,
110
+ "eval_steps_per_second": 1.791,
111
+ "step": 87
112
+ },
113
+ {
114
+ "epoch": 6.21,
115
+ "learning_rate": 1.984126984126984e-05,
116
+ "loss": 0.8629,
117
+ "step": 90
118
+ },
119
+ {
120
+ "epoch": 6.9,
121
+ "learning_rate": 1.5873015873015872e-05,
122
+ "loss": 0.8286,
123
+ "step": 100
124
+ },
125
+ {
126
+ "epoch": 6.97,
127
+ "eval_accuracy": 0.7219512195121951,
128
+ "eval_loss": 0.7219818830490112,
129
+ "eval_runtime": 3.9131,
130
+ "eval_samples_per_second": 52.389,
131
+ "eval_steps_per_second": 1.789,
132
+ "step": 101
133
+ },
134
+ {
135
+ "epoch": 7.59,
136
+ "learning_rate": 1.1904761904761905e-05,
137
+ "loss": 0.8274,
138
+ "step": 110
139
+ },
140
+ {
141
+ "epoch": 8.0,
142
+ "eval_accuracy": 0.697560975609756,
143
+ "eval_loss": 0.7375687956809998,
144
+ "eval_runtime": 3.8911,
145
+ "eval_samples_per_second": 52.685,
146
+ "eval_steps_per_second": 1.799,
147
+ "step": 116
148
+ },
149
+ {
150
+ "epoch": 8.28,
151
+ "learning_rate": 7.936507936507936e-06,
152
+ "loss": 0.794,
153
+ "step": 120
154
+ },
155
+ {
156
+ "epoch": 8.97,
157
+ "learning_rate": 3.968253968253968e-06,
158
+ "loss": 0.7765,
159
+ "step": 130
160
+ },
161
+ {
162
+ "epoch": 8.97,
163
+ "eval_accuracy": 0.7365853658536585,
164
+ "eval_loss": 0.7116620540618896,
165
+ "eval_runtime": 3.9546,
166
+ "eval_samples_per_second": 51.839,
167
+ "eval_steps_per_second": 1.77,
168
+ "step": 130
169
+ },
170
+ {
171
+ "epoch": 9.66,
172
+ "learning_rate": 0.0,
173
+ "loss": 0.7633,
174
+ "step": 140
175
+ },
176
+ {
177
+ "epoch": 9.66,
178
+ "eval_accuracy": 0.7365853658536585,
179
+ "eval_loss": 0.7078527212142944,
180
+ "eval_runtime": 4.1225,
181
+ "eval_samples_per_second": 49.727,
182
+ "eval_steps_per_second": 1.698,
183
+ "step": 140
184
+ },
185
+ {
186
+ "epoch": 9.66,
187
+ "step": 140,
188
+ "total_flos": 5.78085766574506e+17,
189
+ "train_loss": 0.9881165368216378,
190
+ "train_runtime": 1025.6442,
191
+ "train_samples_per_second": 17.93,
192
+ "train_steps_per_second": 0.136
193
+ }
194
+ ],
195
+ "logging_steps": 10,
196
+ "max_steps": 140,
197
+ "num_input_tokens_seen": 0,
198
+ "num_train_epochs": 10,
199
+ "save_steps": 500,
200
+ "total_flos": 5.78085766574506e+17,
201
+ "train_batch_size": 32,
202
+ "trial_name": null,
203
+ "trial_params": null
204
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78c8073d0ca296061eeb2c1f9efe2310da5f052d3bfc061bd3372b205f4693f1
3
+ size 4792