vananhle commited on
Commit
d97c895
1 Parent(s): 27c89ff

End of training

Browse files
README.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: microsoft/swinv2-base-patch4-window8-256
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: swinv2-base-patch4-window8-256-isic217
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # swinv2-base-patch4-window8-256-isic217
17
+
18
+ This model is a fine-tuned version of [microsoft/swinv2-base-patch4-window8-256](https://huggingface.co/microsoft/swinv2-base-patch4-window8-256) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 1.1588
21
+ - Accuracy: 0.65
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 5e-05
41
+ - train_batch_size: 2
42
+ - eval_batch_size: 2
43
+ - seed: 42
44
+ - gradient_accumulation_steps: 4
45
+ - total_train_batch_size: 8
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: linear
48
+ - lr_scheduler_warmup_ratio: 0.1
49
+ - num_epochs: 10
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
54
+ |:-------------:|:------:|:----:|:---------------:|:--------:|
55
+ | 2.1681 | 0.9888 | 22 | 2.0018 | 0.25 |
56
+ | 1.9254 | 1.9775 | 44 | 1.7653 | 0.35 |
57
+ | 1.6706 | 2.9663 | 66 | 1.6649 | 0.6 |
58
+ | 1.2834 | 4.0 | 89 | 1.5579 | 0.5 |
59
+ | 1.2039 | 4.9888 | 111 | 1.4087 | 0.55 |
60
+ | 0.9395 | 5.9775 | 133 | 1.3115 | 0.5 |
61
+ | 0.7532 | 6.9663 | 155 | 1.3599 | 0.6 |
62
+ | 0.6573 | 8.0 | 178 | 1.1588 | 0.65 |
63
+ | 0.6663 | 8.9888 | 200 | 1.2074 | 0.6 |
64
+ | 0.4686 | 9.8876 | 220 | 1.2285 | 0.6 |
65
+
66
+
67
+ ### Framework versions
68
+
69
+ - Transformers 4.42.0.dev0
70
+ - Pytorch 2.3.0+cu121
71
+ - Datasets 2.19.1
72
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 9.887640449438202,
3
+ "eval_accuracy": 0.65,
4
+ "eval_loss": 1.158837914466858,
5
+ "eval_runtime": 3.034,
6
+ "eval_samples_per_second": 6.592,
7
+ "eval_steps_per_second": 3.296,
8
+ "total_flos": 1.8042639737683968e+17,
9
+ "train_loss": 1.1781822247938676,
10
+ "train_runtime": 376.1356,
11
+ "train_samples_per_second": 4.732,
12
+ "train_steps_per_second": 0.585
13
+ }
config.json ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/swinv2-base-patch4-window8-256",
3
+ "architectures": [
4
+ "Swinv2ForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "depths": [
8
+ 2,
9
+ 2,
10
+ 18,
11
+ 2
12
+ ],
13
+ "drop_path_rate": 0.1,
14
+ "embed_dim": 128,
15
+ "encoder_stride": 32,
16
+ "hidden_act": "gelu",
17
+ "hidden_dropout_prob": 0.0,
18
+ "hidden_size": 1024,
19
+ "id2label": {
20
+ "0": "dots",
21
+ "1": "globules-clods",
22
+ "2": "lines",
23
+ "3": "network",
24
+ "4": "pattern",
25
+ "5": "regression structures",
26
+ "6": "shiny white structures",
27
+ "7": "structureless",
28
+ "8": "vessels"
29
+ },
30
+ "image_size": 256,
31
+ "initializer_range": 0.02,
32
+ "label2id": {
33
+ "dots": 0,
34
+ "globules-clods": 1,
35
+ "lines": 2,
36
+ "network": 3,
37
+ "pattern": 4,
38
+ "regression structures": 5,
39
+ "shiny white structures": 6,
40
+ "structureless": 7,
41
+ "vessels": 8
42
+ },
43
+ "layer_norm_eps": 1e-05,
44
+ "mlp_ratio": 4.0,
45
+ "model_type": "swinv2",
46
+ "num_channels": 3,
47
+ "num_heads": [
48
+ 4,
49
+ 8,
50
+ 16,
51
+ 32
52
+ ],
53
+ "num_layers": 4,
54
+ "out_features": [
55
+ "stage4"
56
+ ],
57
+ "out_indices": [
58
+ 4
59
+ ],
60
+ "patch_size": 4,
61
+ "path_norm": true,
62
+ "pretrained_window_sizes": [
63
+ 0,
64
+ 0,
65
+ 0,
66
+ 0
67
+ ],
68
+ "problem_type": "single_label_classification",
69
+ "qkv_bias": true,
70
+ "stage_names": [
71
+ "stem",
72
+ "stage1",
73
+ "stage2",
74
+ "stage3",
75
+ "stage4"
76
+ ],
77
+ "torch_dtype": "float32",
78
+ "transformers_version": "4.42.0.dev0",
79
+ "use_absolute_embeddings": false,
80
+ "window_size": 8
81
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 9.887640449438202,
3
+ "eval_accuracy": 0.65,
4
+ "eval_loss": 1.158837914466858,
5
+ "eval_runtime": 3.034,
6
+ "eval_samples_per_second": 6.592,
7
+ "eval_steps_per_second": 3.296
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6adf0d8d16113b190dfe9742394d7cf923e690849dbaf77e9d7ce19dd028fd66
3
+ size 347674196
preprocessor_config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_valid_processor_keys": [
3
+ "images",
4
+ "do_resize",
5
+ "size",
6
+ "resample",
7
+ "do_rescale",
8
+ "rescale_factor",
9
+ "do_normalize",
10
+ "image_mean",
11
+ "image_std",
12
+ "return_tensors",
13
+ "data_format",
14
+ "input_data_format"
15
+ ],
16
+ "do_normalize": true,
17
+ "do_rescale": true,
18
+ "do_resize": true,
19
+ "image_mean": [
20
+ 0.485,
21
+ 0.456,
22
+ 0.406
23
+ ],
24
+ "image_processor_type": "ViTImageProcessor",
25
+ "image_std": [
26
+ 0.229,
27
+ 0.224,
28
+ 0.225
29
+ ],
30
+ "resample": 3,
31
+ "rescale_factor": 0.00392156862745098,
32
+ "size": {
33
+ "height": 256,
34
+ "width": 256
35
+ }
36
+ }
runs/Jun03_14-52-50_ip-10-110-161-167.ap-southeast-2.compute.internal/events.out.tfevents.1717426372.ip-10-110-161-167.ap-southeast-2.compute.internal.5893.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d2470602f052ed1b3f7e1df68fdcf619e573ab2b831afb4aa7fe49d01b52d95
3
+ size 11350
runs/Jun03_14-52-50_ip-10-110-161-167.ap-southeast-2.compute.internal/events.out.tfevents.1717426752.ip-10-110-161-167.ap-southeast-2.compute.internal.5893.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d6707fee8e2fa3b024dd891ac0aed3ed8fa51f0a7df573674c943bfc704dcf1
3
+ size 411
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 9.887640449438202,
3
+ "total_flos": 1.8042639737683968e+17,
4
+ "train_loss": 1.1781822247938676,
5
+ "train_runtime": 376.1356,
6
+ "train_samples_per_second": 4.732,
7
+ "train_steps_per_second": 0.585
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.65,
3
+ "best_model_checkpoint": "swinv2-base-patch4-window8-256-isic217/checkpoint-178",
4
+ "epoch": 9.887640449438202,
5
+ "eval_steps": 500,
6
+ "global_step": 220,
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.9887640449438202,
13
+ "grad_norm": 12.935554504394531,
14
+ "learning_rate": 5e-05,
15
+ "loss": 2.1681,
16
+ "step": 22
17
+ },
18
+ {
19
+ "epoch": 0.9887640449438202,
20
+ "eval_accuracy": 0.25,
21
+ "eval_loss": 2.0018374919891357,
22
+ "eval_runtime": 2.9002,
23
+ "eval_samples_per_second": 6.896,
24
+ "eval_steps_per_second": 3.448,
25
+ "step": 22
26
+ },
27
+ {
28
+ "epoch": 1.9775280898876404,
29
+ "grad_norm": 12.57723331451416,
30
+ "learning_rate": 4.4444444444444447e-05,
31
+ "loss": 1.9254,
32
+ "step": 44
33
+ },
34
+ {
35
+ "epoch": 1.9775280898876404,
36
+ "eval_accuracy": 0.35,
37
+ "eval_loss": 1.765319585800171,
38
+ "eval_runtime": 2.8633,
39
+ "eval_samples_per_second": 6.985,
40
+ "eval_steps_per_second": 3.493,
41
+ "step": 44
42
+ },
43
+ {
44
+ "epoch": 2.966292134831461,
45
+ "grad_norm": 18.157392501831055,
46
+ "learning_rate": 3.888888888888889e-05,
47
+ "loss": 1.6706,
48
+ "step": 66
49
+ },
50
+ {
51
+ "epoch": 2.966292134831461,
52
+ "eval_accuracy": 0.6,
53
+ "eval_loss": 1.664868712425232,
54
+ "eval_runtime": 2.8974,
55
+ "eval_samples_per_second": 6.903,
56
+ "eval_steps_per_second": 3.451,
57
+ "step": 66
58
+ },
59
+ {
60
+ "epoch": 4.0,
61
+ "grad_norm": 22.54041290283203,
62
+ "learning_rate": 3.308080808080809e-05,
63
+ "loss": 1.2834,
64
+ "step": 89
65
+ },
66
+ {
67
+ "epoch": 4.0,
68
+ "eval_accuracy": 0.5,
69
+ "eval_loss": 1.557893991470337,
70
+ "eval_runtime": 2.9133,
71
+ "eval_samples_per_second": 6.865,
72
+ "eval_steps_per_second": 3.432,
73
+ "step": 89
74
+ },
75
+ {
76
+ "epoch": 4.98876404494382,
77
+ "grad_norm": 24.279077529907227,
78
+ "learning_rate": 2.7525252525252528e-05,
79
+ "loss": 1.2039,
80
+ "step": 111
81
+ },
82
+ {
83
+ "epoch": 4.98876404494382,
84
+ "eval_accuracy": 0.55,
85
+ "eval_loss": 1.4086878299713135,
86
+ "eval_runtime": 2.9062,
87
+ "eval_samples_per_second": 6.882,
88
+ "eval_steps_per_second": 3.441,
89
+ "step": 111
90
+ },
91
+ {
92
+ "epoch": 5.97752808988764,
93
+ "grad_norm": 26.200206756591797,
94
+ "learning_rate": 2.1969696969696972e-05,
95
+ "loss": 0.9395,
96
+ "step": 133
97
+ },
98
+ {
99
+ "epoch": 5.97752808988764,
100
+ "eval_accuracy": 0.5,
101
+ "eval_loss": 1.3115328550338745,
102
+ "eval_runtime": 2.9002,
103
+ "eval_samples_per_second": 6.896,
104
+ "eval_steps_per_second": 3.448,
105
+ "step": 133
106
+ },
107
+ {
108
+ "epoch": 6.966292134831461,
109
+ "grad_norm": 24.642183303833008,
110
+ "learning_rate": 1.6414141414141416e-05,
111
+ "loss": 0.7532,
112
+ "step": 155
113
+ },
114
+ {
115
+ "epoch": 6.966292134831461,
116
+ "eval_accuracy": 0.6,
117
+ "eval_loss": 1.3599040508270264,
118
+ "eval_runtime": 2.9052,
119
+ "eval_samples_per_second": 6.884,
120
+ "eval_steps_per_second": 3.442,
121
+ "step": 155
122
+ },
123
+ {
124
+ "epoch": 8.0,
125
+ "grad_norm": 20.47603416442871,
126
+ "learning_rate": 1.0606060606060607e-05,
127
+ "loss": 0.6573,
128
+ "step": 178
129
+ },
130
+ {
131
+ "epoch": 8.0,
132
+ "eval_accuracy": 0.65,
133
+ "eval_loss": 1.158837914466858,
134
+ "eval_runtime": 2.8838,
135
+ "eval_samples_per_second": 6.935,
136
+ "eval_steps_per_second": 3.468,
137
+ "step": 178
138
+ },
139
+ {
140
+ "epoch": 8.98876404494382,
141
+ "grad_norm": 29.59978485107422,
142
+ "learning_rate": 5.050505050505051e-06,
143
+ "loss": 0.6663,
144
+ "step": 200
145
+ },
146
+ {
147
+ "epoch": 8.98876404494382,
148
+ "eval_accuracy": 0.6,
149
+ "eval_loss": 1.207406759262085,
150
+ "eval_runtime": 2.8796,
151
+ "eval_samples_per_second": 6.945,
152
+ "eval_steps_per_second": 3.473,
153
+ "step": 200
154
+ },
155
+ {
156
+ "epoch": 9.887640449438202,
157
+ "grad_norm": 12.570259094238281,
158
+ "learning_rate": 0.0,
159
+ "loss": 0.4686,
160
+ "step": 220
161
+ },
162
+ {
163
+ "epoch": 9.887640449438202,
164
+ "eval_accuracy": 0.6,
165
+ "eval_loss": 1.228463888168335,
166
+ "eval_runtime": 2.9115,
167
+ "eval_samples_per_second": 6.869,
168
+ "eval_steps_per_second": 3.435,
169
+ "step": 220
170
+ },
171
+ {
172
+ "epoch": 9.887640449438202,
173
+ "step": 220,
174
+ "total_flos": 1.8042639737683968e+17,
175
+ "train_loss": 1.1781822247938676,
176
+ "train_runtime": 376.1356,
177
+ "train_samples_per_second": 4.732,
178
+ "train_steps_per_second": 0.585
179
+ }
180
+ ],
181
+ "logging_steps": 500,
182
+ "max_steps": 220,
183
+ "num_input_tokens_seen": 0,
184
+ "num_train_epochs": 10,
185
+ "save_steps": 500,
186
+ "stateful_callbacks": {
187
+ "TrainerControl": {
188
+ "args": {
189
+ "should_epoch_stop": false,
190
+ "should_evaluate": false,
191
+ "should_log": false,
192
+ "should_save": true,
193
+ "should_training_stop": true
194
+ },
195
+ "attributes": {}
196
+ }
197
+ },
198
+ "total_flos": 1.8042639737683968e+17,
199
+ "train_batch_size": 2,
200
+ "trial_name": null,
201
+ "trial_params": null
202
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddfabc3f7d512045d6f1323f6ea3e68e3707a8ef28ec3752046496e5ba3eb42a
3
+ size 5176