Commit
•
d13178a
1
Parent(s):
950269e
update model card README.md
Browse files
README.md
ADDED
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
datasets:
|
6 |
+
- imagefolder
|
7 |
+
metrics:
|
8 |
+
- f1
|
9 |
+
model-index:
|
10 |
+
- name: 7-classifier-finetuned-padchest
|
11 |
+
results:
|
12 |
+
- task:
|
13 |
+
name: Image Classification
|
14 |
+
type: image-classification
|
15 |
+
dataset:
|
16 |
+
name: imagefolder
|
17 |
+
type: imagefolder
|
18 |
+
config: default
|
19 |
+
split: train
|
20 |
+
args: default
|
21 |
+
metrics:
|
22 |
+
- name: F1
|
23 |
+
type: f1
|
24 |
+
value: 0.7449020840597932
|
25 |
+
---
|
26 |
+
|
27 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
28 |
+
should probably proofread and complete it, then remove this comment. -->
|
29 |
+
|
30 |
+
# 7-classifier-finetuned-padchest
|
31 |
+
|
32 |
+
This model is a fine-tuned version of [nickmuchi/vit-finetuned-chest-xray-pneumonia](https://huggingface.co/nickmuchi/vit-finetuned-chest-xray-pneumonia) on the imagefolder dataset.
|
33 |
+
It achieves the following results on the evaluation set:
|
34 |
+
- Loss: 0.7844
|
35 |
+
- F1: 0.7449
|
36 |
+
|
37 |
+
## Model description
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Intended uses & limitations
|
42 |
+
|
43 |
+
More information needed
|
44 |
+
|
45 |
+
## Training and evaluation data
|
46 |
+
|
47 |
+
More information needed
|
48 |
+
|
49 |
+
## Training procedure
|
50 |
+
|
51 |
+
### Training hyperparameters
|
52 |
+
|
53 |
+
The following hyperparameters were used during training:
|
54 |
+
- learning_rate: 5e-05
|
55 |
+
- train_batch_size: 32
|
56 |
+
- eval_batch_size: 32
|
57 |
+
- seed: 42
|
58 |
+
- gradient_accumulation_steps: 4
|
59 |
+
- total_train_batch_size: 128
|
60 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
61 |
+
- lr_scheduler_type: linear
|
62 |
+
- lr_scheduler_warmup_ratio: 0.1
|
63 |
+
- num_epochs: 50
|
64 |
+
|
65 |
+
### Training results
|
66 |
+
|
67 |
+
| Training Loss | Epoch | Step | Validation Loss | F1 |
|
68 |
+
|:-------------:|:-----:|:----:|:---------------:|:------:|
|
69 |
+
| 2.0948 | 1.0 | 18 | 1.9801 | 0.1856 |
|
70 |
+
| 1.916 | 2.0 | 36 | 1.7571 | 0.3242 |
|
71 |
+
| 1.6873 | 3.0 | 54 | 1.5333 | 0.4149 |
|
72 |
+
| 1.4576 | 4.0 | 72 | 1.3515 | 0.4656 |
|
73 |
+
| 1.2824 | 5.0 | 90 | 1.2288 | 0.4936 |
|
74 |
+
| 1.2004 | 6.0 | 108 | 1.1050 | 0.5462 |
|
75 |
+
| 1.1264 | 7.0 | 126 | 1.0643 | 0.5713 |
|
76 |
+
| 1.0149 | 8.0 | 144 | 1.0612 | 0.5718 |
|
77 |
+
| 0.9839 | 9.0 | 162 | 0.9897 | 0.6266 |
|
78 |
+
| 0.9001 | 10.0 | 180 | 0.9542 | 0.6710 |
|
79 |
+
| 0.9093 | 11.0 | 198 | 0.8993 | 0.6811 |
|
80 |
+
| 0.8824 | 12.0 | 216 | 0.8877 | 0.7018 |
|
81 |
+
| 0.8237 | 13.0 | 234 | 0.8970 | 0.7071 |
|
82 |
+
| 0.8446 | 14.0 | 252 | 0.8619 | 0.7084 |
|
83 |
+
| 0.7766 | 15.0 | 270 | 0.8271 | 0.7331 |
|
84 |
+
| 0.7405 | 16.0 | 288 | 0.8516 | 0.7237 |
|
85 |
+
| 0.7672 | 17.0 | 306 | 0.8036 | 0.7223 |
|
86 |
+
| 0.7149 | 18.0 | 324 | 0.8188 | 0.7186 |
|
87 |
+
| 0.7 | 19.0 | 342 | 0.8391 | 0.7274 |
|
88 |
+
| 0.7011 | 20.0 | 360 | 0.7922 | 0.7424 |
|
89 |
+
| 0.695 | 21.0 | 378 | 0.8065 | 0.7394 |
|
90 |
+
| 0.6655 | 22.0 | 396 | 0.7783 | 0.7473 |
|
91 |
+
| 0.6377 | 23.0 | 414 | 0.7977 | 0.7296 |
|
92 |
+
| 0.6884 | 24.0 | 432 | 0.7724 | 0.7387 |
|
93 |
+
| 0.614 | 25.0 | 450 | 0.8372 | 0.7351 |
|
94 |
+
| 0.6008 | 26.0 | 468 | 0.8229 | 0.7277 |
|
95 |
+
| 0.6402 | 27.0 | 486 | 0.7958 | 0.7300 |
|
96 |
+
| 0.592 | 28.0 | 504 | 0.8222 | 0.7264 |
|
97 |
+
| 0.5774 | 29.0 | 522 | 0.7613 | 0.7511 |
|
98 |
+
| 0.584 | 30.0 | 540 | 0.7866 | 0.7377 |
|
99 |
+
| 0.558 | 31.0 | 558 | 0.8298 | 0.7351 |
|
100 |
+
| 0.5871 | 32.0 | 576 | 0.7727 | 0.7494 |
|
101 |
+
| 0.5608 | 33.0 | 594 | 0.7753 | 0.7695 |
|
102 |
+
| 0.5385 | 34.0 | 612 | 0.7585 | 0.7575 |
|
103 |
+
| 0.5461 | 35.0 | 630 | 0.7664 | 0.7521 |
|
104 |
+
| 0.506 | 36.0 | 648 | 0.7624 | 0.7581 |
|
105 |
+
| 0.5132 | 37.0 | 666 | 0.7914 | 0.7347 |
|
106 |
+
| 0.5083 | 38.0 | 684 | 0.7913 | 0.7425 |
|
107 |
+
| 0.5042 | 39.0 | 702 | 0.7704 | 0.7556 |
|
108 |
+
| 0.4539 | 40.0 | 720 | 0.7590 | 0.7578 |
|
109 |
+
| 0.4714 | 41.0 | 738 | 0.7912 | 0.7503 |
|
110 |
+
| 0.4681 | 42.0 | 756 | 0.7838 | 0.7420 |
|
111 |
+
| 0.4482 | 43.0 | 774 | 0.7781 | 0.7345 |
|
112 |
+
| 0.4535 | 44.0 | 792 | 0.7823 | 0.7415 |
|
113 |
+
| 0.4284 | 45.0 | 810 | 0.8104 | 0.7449 |
|
114 |
+
| 0.436 | 46.0 | 828 | 0.7829 | 0.7421 |
|
115 |
+
| 0.4526 | 47.0 | 846 | 0.7932 | 0.7567 |
|
116 |
+
| 0.4672 | 48.0 | 864 | 0.7827 | 0.7411 |
|
117 |
+
| 0.4171 | 49.0 | 882 | 0.7835 | 0.7447 |
|
118 |
+
| 0.4126 | 50.0 | 900 | 0.7844 | 0.7449 |
|
119 |
+
|
120 |
+
|
121 |
+
### Framework versions
|
122 |
+
|
123 |
+
- Transformers 4.28.0.dev0
|
124 |
+
- Pytorch 2.0.0+cu117
|
125 |
+
- Datasets 2.18.0
|
126 |
+
- Tokenizers 0.13.3
|