dima806 commited on
Commit
37e39fd
1 Parent(s): e286205

Upload folder using huggingface_hub

Browse files
checkpoint-214/config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dima806/chest_xray_pneumonia_detection",
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.38.1"
32
+ }
checkpoint-214/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15aa0157ed85e3772270d99f87476a385401049f3836b6633ddf751cc8a58127
3
+ size 343223968
checkpoint-214/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:464b4a10db2f9274e3eea443dfd156ab275900085f364a5a06c5d065c2ecc4f8
3
+ size 686568890
checkpoint-214/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-214/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6621003ff8ec73fa1fa4608294f6810fc8bf9b64d3763229ade0e4105bc8c56
3
+ size 14244
checkpoint-214/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f96430e281d93f9a32c55ae0ad1d0b492e6759e3367f04133b796bcaad2e6a08
3
+ size 1064
checkpoint-214/trainer_state.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.1380569487810135,
3
+ "best_model_checkpoint": "chest_xray_pneumonia_detection/checkpoint-214",
4
+ "epoch": 2.0,
5
+ "eval_steps": 500,
6
+ "global_step": 214,
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.960233918128655,
14
+ "eval_loss": 0.14374499022960663,
15
+ "eval_runtime": 43.3835,
16
+ "eval_samples_per_second": 39.416,
17
+ "eval_steps_per_second": 1.245,
18
+ "step": 107
19
+ },
20
+ {
21
+ "epoch": 2.0,
22
+ "eval_accuracy": 0.9608187134502923,
23
+ "eval_loss": 0.1380569487810135,
24
+ "eval_runtime": 43.6045,
25
+ "eval_samples_per_second": 39.216,
26
+ "eval_steps_per_second": 1.238,
27
+ "step": 214
28
+ }
29
+ ],
30
+ "logging_steps": 500,
31
+ "max_steps": 214,
32
+ "num_input_tokens_seen": 0,
33
+ "num_train_epochs": 2,
34
+ "save_steps": 500,
35
+ "total_flos": 1.0594704820107018e+18,
36
+ "train_batch_size": 64,
37
+ "trial_name": null,
38
+ "trial_params": null
39
+ }
checkpoint-214/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f732fae87bb49cdbcbcfeca22ac01845788cb407712568943652f86f83785aab
3
+ size 4856
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "google/vit-base-patch16-224-in21k",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
@@ -28,5 +28,5 @@
28
  "problem_type": "single_label_classification",
29
  "qkv_bias": true,
30
  "torch_dtype": "float32",
31
- "transformers_version": "4.30.2"
32
  }
 
1
  {
2
+ "_name_or_path": "dima806/chest_xray_pneumonia_detection",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
 
28
  "problem_type": "single_label_classification",
29
  "qkv_bias": true,
30
  "torch_dtype": "float32",
31
+ "transformers_version": "4.38.1"
32
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4ec1b91bcce3ce28be16c01b52c4965be2dfd579c38fc56be6fcf3ed0fc9a26c
3
  size 343223968
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15aa0157ed85e3772270d99f87476a385401049f3836b6633ddf751cc8a58127
3
  size 343223968
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d382a6d54b34e8c72ec4223c46989b15174609ba6b192b5ffc16370deb25c527
3
- size 3899
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f732fae87bb49cdbcbcfeca22ac01845788cb407712568943652f86f83785aab
3
+ size 4856