End of training
Browse files
README.md
CHANGED
@@ -1,68 +1,78 @@
|
|
1 |
-
---
|
2 |
-
license: apache-2.0
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
metrics:
|
7 |
-
- accuracy
|
8 |
-
model-index:
|
9 |
-
- name: vit-xray-pneumonia-classification
|
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 |
-
# vit-xray-pneumonia-classification
|
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.
|
21 |
-
- Accuracy: 0.
|
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: 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: 15
|
50 |
-
- mixed_precision_training: Native AMP
|
51 |
-
|
52 |
-
### Training results
|
53 |
-
|
54 |
-
| Training Loss | Epoch
|
55 |
-
|
56 |
-
| 0.
|
57 |
-
| 0.
|
58 |
-
| 0.
|
59 |
-
| 0.
|
60 |
-
| 0.
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
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: vit-xray-pneumonia-classification
|
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 |
+
# vit-xray-pneumonia-classification
|
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.0740
|
21 |
+
- Accuracy: 0.9734
|
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: 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: 15
|
50 |
+
- mixed_precision_training: Native AMP
|
51 |
+
|
52 |
+
### Training results
|
53 |
+
|
54 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
55 |
+
|:-------------:|:-------:|:----:|:---------------:|:--------:|
|
56 |
+
| 0.4843 | 0.9882 | 63 | 0.1954 | 0.9408 |
|
57 |
+
| 0.1986 | 1.9922 | 127 | 0.1483 | 0.9494 |
|
58 |
+
| 0.1694 | 2.9961 | 191 | 0.1316 | 0.9459 |
|
59 |
+
| 0.1368 | 4.0 | 255 | 0.1207 | 0.9554 |
|
60 |
+
| 0.1399 | 4.9882 | 318 | 0.1738 | 0.9296 |
|
61 |
+
| 0.1203 | 5.9922 | 382 | 0.0966 | 0.9631 |
|
62 |
+
| 0.1085 | 6.9961 | 446 | 0.0956 | 0.9631 |
|
63 |
+
| 0.1046 | 8.0 | 510 | 0.0952 | 0.9665 |
|
64 |
+
| 0.0883 | 8.9882 | 573 | 0.0990 | 0.9665 |
|
65 |
+
| 0.0773 | 9.9922 | 637 | 0.0896 | 0.9717 |
|
66 |
+
| 0.0815 | 10.9961 | 701 | 0.1084 | 0.9605 |
|
67 |
+
| 0.0793 | 12.0 | 765 | 0.0767 | 0.9742 |
|
68 |
+
| 0.0778 | 12.9882 | 828 | 0.0885 | 0.9691 |
|
69 |
+
| 0.0609 | 13.9922 | 892 | 0.0778 | 0.9708 |
|
70 |
+
| 0.0685 | 14.8235 | 945 | 0.0740 | 0.9734 |
|
71 |
+
|
72 |
+
|
73 |
+
### Framework versions
|
74 |
+
|
75 |
+
- Transformers 4.40.1
|
76 |
+
- Pytorch 2.3.0
|
77 |
+
- Datasets 2.19.0
|
78 |
+
- Tokenizers 0.19.1
|