dima806 commited on
Commit
15b0b93
1 Parent(s): 169760e

Upload folder using huggingface_hub

Browse files
checkpoint-1819/config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "normal",
13
+ "1": "pneumonia"
14
+ },
15
+ "image_size": 224,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "normal": 0,
20
+ "pneumonia": 1
21
+ },
22
+ "layer_norm_eps": 1e-12,
23
+ "model_type": "vit",
24
+ "num_attention_heads": 12,
25
+ "num_channels": 3,
26
+ "num_hidden_layers": 12,
27
+ "patch_size": 16,
28
+ "problem_type": "single_label_classification",
29
+ "qkv_bias": true,
30
+ "torch_dtype": "float32",
31
+ "transformers_version": "4.34.1"
32
+ }
checkpoint-1819/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d963b7476b23e15df2893052eb20ea457a1ec1cdc91304fd9e0ee379f1fed33d
3
+ size 686568453
checkpoint-1819/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
+ }
checkpoint-1819/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd6c7d0900053a594de717cc12fdc90a6f05a9f34b8b363e2b0bb058796196c1
3
+ size 343268717
checkpoint-1819/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf6ca777cbe669d1a7961c5c6bc82bca6fc240966bb0914b536f6c09ba6e1008
3
+ size 14575
checkpoint-1819/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98017c5f087df388ca824e118358be81805d35c272e390ebd84522a1094552b8
3
+ size 627
checkpoint-1819/trainer_state.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.06790927052497864,
3
+ "best_model_checkpoint": "pneumonia_chest_xray_image_detection/checkpoint-1819",
4
+ "epoch": 17.0,
5
+ "eval_steps": 500,
6
+ "global_step": 1819,
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.0,
13
+ "eval_accuracy": 0.9485380116959065,
14
+ "eval_loss": 0.2600135803222656,
15
+ "eval_runtime": 46.5887,
16
+ "eval_samples_per_second": 36.704,
17
+ "eval_steps_per_second": 1.159,
18
+ "step": 107
19
+ },
20
+ {
21
+ "epoch": 2.0,
22
+ "eval_accuracy": 0.9619883040935673,
23
+ "eval_loss": 0.1615474373102188,
24
+ "eval_runtime": 47.1288,
25
+ "eval_samples_per_second": 36.284,
26
+ "eval_steps_per_second": 1.146,
27
+ "step": 214
28
+ },
29
+ {
30
+ "epoch": 3.0,
31
+ "eval_accuracy": 0.9649122807017544,
32
+ "eval_loss": 0.13222818076610565,
33
+ "eval_runtime": 46.4411,
34
+ "eval_samples_per_second": 36.821,
35
+ "eval_steps_per_second": 1.163,
36
+ "step": 321
37
+ },
38
+ {
39
+ "epoch": 4.0,
40
+ "eval_accuracy": 0.9654970760233919,
41
+ "eval_loss": 0.11899394541978836,
42
+ "eval_runtime": 46.3184,
43
+ "eval_samples_per_second": 36.918,
44
+ "eval_steps_per_second": 1.166,
45
+ "step": 428
46
+ },
47
+ {
48
+ "epoch": 4.67,
49
+ "learning_rate": 3.923444976076555e-06,
50
+ "loss": 0.2071,
51
+ "step": 500
52
+ },
53
+ {
54
+ "epoch": 5.0,
55
+ "eval_accuracy": 0.968421052631579,
56
+ "eval_loss": 0.10458395630121231,
57
+ "eval_runtime": 45.2677,
58
+ "eval_samples_per_second": 37.775,
59
+ "eval_steps_per_second": 1.193,
60
+ "step": 535
61
+ },
62
+ {
63
+ "epoch": 6.0,
64
+ "eval_accuracy": 0.9695906432748538,
65
+ "eval_loss": 0.09370110183954239,
66
+ "eval_runtime": 45.7639,
67
+ "eval_samples_per_second": 37.366,
68
+ "eval_steps_per_second": 1.18,
69
+ "step": 642
70
+ },
71
+ {
72
+ "epoch": 7.0,
73
+ "eval_accuracy": 0.9707602339181286,
74
+ "eval_loss": 0.09143657982349396,
75
+ "eval_runtime": 46.3474,
76
+ "eval_samples_per_second": 36.895,
77
+ "eval_steps_per_second": 1.165,
78
+ "step": 749
79
+ },
80
+ {
81
+ "epoch": 8.0,
82
+ "eval_accuracy": 0.9730994152046784,
83
+ "eval_loss": 0.08595645427703857,
84
+ "eval_runtime": 44.7625,
85
+ "eval_samples_per_second": 38.202,
86
+ "eval_steps_per_second": 1.206,
87
+ "step": 856
88
+ },
89
+ {
90
+ "epoch": 9.0,
91
+ "eval_accuracy": 0.9736842105263158,
92
+ "eval_loss": 0.08658044040203094,
93
+ "eval_runtime": 45.6075,
94
+ "eval_samples_per_second": 37.494,
95
+ "eval_steps_per_second": 1.184,
96
+ "step": 963
97
+ },
98
+ {
99
+ "epoch": 9.35,
100
+ "learning_rate": 2.7272727272727272e-06,
101
+ "loss": 0.0672,
102
+ "step": 1000
103
+ },
104
+ {
105
+ "epoch": 10.0,
106
+ "eval_accuracy": 0.9760233918128655,
107
+ "eval_loss": 0.07662247121334076,
108
+ "eval_runtime": 46.2746,
109
+ "eval_samples_per_second": 36.953,
110
+ "eval_steps_per_second": 1.167,
111
+ "step": 1070
112
+ },
113
+ {
114
+ "epoch": 11.0,
115
+ "eval_accuracy": 0.9760233918128655,
116
+ "eval_loss": 0.07995981723070145,
117
+ "eval_runtime": 44.8925,
118
+ "eval_samples_per_second": 38.091,
119
+ "eval_steps_per_second": 1.203,
120
+ "step": 1177
121
+ },
122
+ {
123
+ "epoch": 12.0,
124
+ "eval_accuracy": 0.9789473684210527,
125
+ "eval_loss": 0.07216358184814453,
126
+ "eval_runtime": 44.9154,
127
+ "eval_samples_per_second": 38.072,
128
+ "eval_steps_per_second": 1.202,
129
+ "step": 1284
130
+ },
131
+ {
132
+ "epoch": 13.0,
133
+ "eval_accuracy": 0.9812865497076023,
134
+ "eval_loss": 0.06987375766038895,
135
+ "eval_runtime": 45.3035,
136
+ "eval_samples_per_second": 37.745,
137
+ "eval_steps_per_second": 1.192,
138
+ "step": 1391
139
+ },
140
+ {
141
+ "epoch": 14.0,
142
+ "eval_accuracy": 0.9789473684210527,
143
+ "eval_loss": 0.07365240901708603,
144
+ "eval_runtime": 44.9385,
145
+ "eval_samples_per_second": 38.052,
146
+ "eval_steps_per_second": 1.202,
147
+ "step": 1498
148
+ },
149
+ {
150
+ "epoch": 14.02,
151
+ "learning_rate": 1.5311004784688995e-06,
152
+ "loss": 0.0485,
153
+ "step": 1500
154
+ },
155
+ {
156
+ "epoch": 15.0,
157
+ "eval_accuracy": 0.9824561403508771,
158
+ "eval_loss": 0.06819497048854828,
159
+ "eval_runtime": 44.7258,
160
+ "eval_samples_per_second": 38.233,
161
+ "eval_steps_per_second": 1.207,
162
+ "step": 1605
163
+ },
164
+ {
165
+ "epoch": 16.0,
166
+ "eval_accuracy": 0.9818713450292398,
167
+ "eval_loss": 0.06842928379774094,
168
+ "eval_runtime": 45.058,
169
+ "eval_samples_per_second": 37.951,
170
+ "eval_steps_per_second": 1.198,
171
+ "step": 1712
172
+ },
173
+ {
174
+ "epoch": 17.0,
175
+ "eval_accuracy": 0.9836257309941521,
176
+ "eval_loss": 0.06790927052497864,
177
+ "eval_runtime": 44.3925,
178
+ "eval_samples_per_second": 38.52,
179
+ "eval_steps_per_second": 1.216,
180
+ "step": 1819
181
+ }
182
+ ],
183
+ "logging_steps": 500,
184
+ "max_steps": 2140,
185
+ "num_train_epochs": 20,
186
+ "save_steps": 500,
187
+ "total_flos": 9.005499097090966e+18,
188
+ "trial_name": null,
189
+ "trial_params": null
190
+ }
checkpoint-1819/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:707f744e05d7cc0fba2c4206617dbde3ca3867f83f81a33fa567e93c05b30131
3
+ size 4027
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "normal",
13
+ "1": "pneumonia"
14
+ },
15
+ "image_size": 224,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "normal": 0,
20
+ "pneumonia": 1
21
+ },
22
+ "layer_norm_eps": 1e-12,
23
+ "model_type": "vit",
24
+ "num_attention_heads": 12,
25
+ "num_channels": 3,
26
+ "num_hidden_layers": 12,
27
+ "patch_size": 16,
28
+ "problem_type": "single_label_classification",
29
+ "qkv_bias": true,
30
+ "torch_dtype": "float32",
31
+ "transformers_version": "4.34.1"
32
+ }
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
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd6c7d0900053a594de717cc12fdc90a6f05a9f34b8b363e2b0bb058796196c1
3
+ size 343268717
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:707f744e05d7cc0fba2c4206617dbde3ca3867f83f81a33fa567e93c05b30131
3
+ size 4027