Hemg commited on
Commit
616430f
·
verified ·
1 Parent(s): 5d90fd6

Model save

Browse files
README.md CHANGED
@@ -3,11 +3,26 @@ license: apache-2.0
3
  base_model: google/vit-base-patch16-224-in21k
4
  tags:
5
  - generated_from_trainer
 
 
6
  metrics:
7
  - accuracy
8
  model-index:
9
  - name: pneumonia-classification-model
10
- results: []
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  ---
12
 
13
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
@@ -15,10 +30,10 @@ should probably proofread and complete it, then remove this comment. -->
15
 
16
  # pneumonia-classification-model
17
 
18
- This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
19
  It achieves the following results on the evaluation set:
20
- - Loss: 0.2141
21
- - Accuracy: 0.9338
22
 
23
  ## Model description
24
 
@@ -38,26 +53,41 @@ More information needed
38
 
39
  The following hyperparameters were used during training:
40
  - learning_rate: 5e-05
41
- - train_batch_size: 16
42
- - eval_batch_size: 16
43
  - seed: 42
44
  - gradient_accumulation_steps: 4
45
- - total_train_batch_size: 64
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: 1
50
 
51
  ### Training results
52
 
53
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
54
  |:-------------:|:-----:|:----:|:---------------:|:--------:|
55
- | 0.3717 | 1.0 | 51 | 0.2141 | 0.9338 |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
 
58
  ### Framework versions
59
 
60
- - Transformers 4.38.2
61
- - Pytorch 2.1.0+cu121
62
- - Datasets 2.18.0
63
  - Tokenizers 0.15.2
 
3
  base_model: google/vit-base-patch16-224-in21k
4
  tags:
5
  - generated_from_trainer
6
+ datasets:
7
+ - chestxrayclassification
8
  metrics:
9
  - accuracy
10
  model-index:
11
  - name: pneumonia-classification-model
12
+ results:
13
+ - task:
14
+ name: Image Classification
15
+ type: image-classification
16
+ dataset:
17
+ name: chestxrayclassification
18
+ type: chestxrayclassification
19
+ config: full
20
+ split: train
21
+ args: full
22
+ metrics:
23
+ - name: Accuracy
24
+ type: accuracy
25
+ value: 0.9632352941176471
26
  ---
27
 
28
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
30
 
31
  # pneumonia-classification-model
32
 
33
+ 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 chestxrayclassification dataset.
34
  It achieves the following results on the evaluation set:
35
+ - Loss: 0.1081
36
+ - Accuracy: 0.9632
37
 
38
  ## Model description
39
 
 
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: 16
65
 
66
  ### Training results
67
 
68
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
  |:-------------:|:-----:|:----:|:---------------:|:--------:|
70
+ | 0.5968 | 0.98 | 25 | 0.4404 | 0.7230 |
71
+ | 0.3253 | 2.0 | 51 | 0.2667 | 0.9130 |
72
+ | 0.2096 | 2.98 | 76 | 0.2183 | 0.9093 |
73
+ | 0.1623 | 4.0 | 102 | 0.1786 | 0.9387 |
74
+ | 0.1697 | 4.98 | 127 | 0.1354 | 0.9522 |
75
+ | 0.1405 | 6.0 | 153 | 0.1424 | 0.9510 |
76
+ | 0.1306 | 6.98 | 178 | 0.1299 | 0.9534 |
77
+ | 0.1093 | 8.0 | 204 | 0.1316 | 0.9510 |
78
+ | 0.1151 | 8.98 | 229 | 0.1179 | 0.9583 |
79
+ | 0.0976 | 10.0 | 255 | 0.1204 | 0.9583 |
80
+ | 0.0932 | 10.98 | 280 | 0.1393 | 0.9485 |
81
+ | 0.1039 | 12.0 | 306 | 0.1239 | 0.9571 |
82
+ | 0.0907 | 12.98 | 331 | 0.1029 | 0.9583 |
83
+ | 0.0917 | 14.0 | 357 | 0.1275 | 0.9583 |
84
+ | 0.0754 | 14.98 | 382 | 0.1034 | 0.9669 |
85
+ | 0.0662 | 15.69 | 400 | 0.1081 | 0.9632 |
86
 
87
 
88
  ### Framework versions
89
 
90
+ - Transformers 4.38.1
91
+ - Pytorch 2.1.2
92
+ - Datasets 2.1.0
93
  - Tokenizers 0.15.2
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0284778e02af66a38573d13a056d456ebbdd2b37b5e037c4d6d96b2940253b57
3
  size 343223968
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eedff77bf9c004bf6b6b22b6bb11b4e922e90e0ca3ef585fb30cddf4c7b11a1e
3
  size 343223968
runs/Mar05_04-10-46_cc010bfed8a9/events.out.tfevents.1709611847.cc010bfed8a9.34.1 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d9ea2ca2e0ed3d7275bc009cfb1cd443a38a366b1dd911afaa7341b82248d8be
3
- size 13100
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb5bddd4b4b4cd951b3989e9239a52b778acccb8a2947d79726213d75a974ad1
3
+ size 13454