Model save
Browse files
README.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: google/vit-base-patch16-224-in21k
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
datasets:
|
| 7 |
+
- imagefolder
|
| 8 |
+
metrics:
|
| 9 |
+
- accuracy
|
| 10 |
+
model-index:
|
| 11 |
+
- name: vit-Covid
|
| 12 |
+
results:
|
| 13 |
+
- task:
|
| 14 |
+
name: Image Classification
|
| 15 |
+
type: image-classification
|
| 16 |
+
dataset:
|
| 17 |
+
name: imagefolder
|
| 18 |
+
type: imagefolder
|
| 19 |
+
config: default
|
| 20 |
+
split: train
|
| 21 |
+
args: default
|
| 22 |
+
metrics:
|
| 23 |
+
- name: Accuracy
|
| 24 |
+
type: accuracy
|
| 25 |
+
value: 0.9847036328871893
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 29 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 30 |
+
|
| 31 |
+
# vit-Covid
|
| 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 imagefolder dataset.
|
| 34 |
+
It achieves the following results on the evaluation set:
|
| 35 |
+
- Loss: 0.0805
|
| 36 |
+
- Accuracy: 0.9847
|
| 37 |
+
|
| 38 |
+
## Model description
|
| 39 |
+
|
| 40 |
+
More information needed
|
| 41 |
+
|
| 42 |
+
## Intended uses & limitations
|
| 43 |
+
|
| 44 |
+
More information needed
|
| 45 |
+
|
| 46 |
+
## Training and evaluation data
|
| 47 |
+
|
| 48 |
+
More information needed
|
| 49 |
+
|
| 50 |
+
## Training procedure
|
| 51 |
+
|
| 52 |
+
### Training hyperparameters
|
| 53 |
+
|
| 54 |
+
The following hyperparameters were used during training:
|
| 55 |
+
- learning_rate: 0.0002
|
| 56 |
+
- train_batch_size: 16
|
| 57 |
+
- eval_batch_size: 8
|
| 58 |
+
- seed: 42
|
| 59 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 60 |
+
- lr_scheduler_type: linear
|
| 61 |
+
- num_epochs: 10
|
| 62 |
+
- mixed_precision_training: Native AMP
|
| 63 |
+
|
| 64 |
+
### Training results
|
| 65 |
+
|
| 66 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 67 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 68 |
+
| 0.1283 | 0.38 | 100 | 0.1878 | 0.9484 |
|
| 69 |
+
| 0.0312 | 0.76 | 200 | 0.1484 | 0.9560 |
|
| 70 |
+
| 0.0655 | 1.15 | 300 | 0.0976 | 0.9713 |
|
| 71 |
+
| 0.0587 | 1.53 | 400 | 0.0887 | 0.9713 |
|
| 72 |
+
| 0.0106 | 1.91 | 500 | 0.0980 | 0.9732 |
|
| 73 |
+
| 0.0137 | 2.29 | 600 | 0.1479 | 0.9618 |
|
| 74 |
+
| 0.07 | 2.67 | 700 | 0.0882 | 0.9751 |
|
| 75 |
+
| 0.0068 | 3.05 | 800 | 0.1160 | 0.9675 |
|
| 76 |
+
| 0.0321 | 3.44 | 900 | 0.0872 | 0.9694 |
|
| 77 |
+
| 0.0027 | 3.82 | 1000 | 0.0790 | 0.9809 |
|
| 78 |
+
| 0.0041 | 4.2 | 1100 | 0.1029 | 0.9713 |
|
| 79 |
+
| 0.0014 | 4.58 | 1200 | 0.0947 | 0.9809 |
|
| 80 |
+
| 0.0018 | 4.96 | 1300 | 0.1399 | 0.9713 |
|
| 81 |
+
| 0.001 | 5.34 | 1400 | 0.0689 | 0.9847 |
|
| 82 |
+
| 0.001 | 5.73 | 1500 | 0.0852 | 0.9790 |
|
| 83 |
+
| 0.0008 | 6.11 | 1600 | 0.1111 | 0.9790 |
|
| 84 |
+
| 0.0013 | 6.49 | 1700 | 0.0695 | 0.9866 |
|
| 85 |
+
| 0.0049 | 6.87 | 1800 | 0.0728 | 0.9885 |
|
| 86 |
+
| 0.0007 | 7.25 | 1900 | 0.0963 | 0.9790 |
|
| 87 |
+
| 0.0012 | 7.63 | 2000 | 0.0886 | 0.9847 |
|
| 88 |
+
| 0.0006 | 8.02 | 2100 | 0.0811 | 0.9847 |
|
| 89 |
+
| 0.0015 | 8.4 | 2200 | 0.0796 | 0.9847 |
|
| 90 |
+
| 0.0143 | 8.78 | 2300 | 0.0804 | 0.9847 |
|
| 91 |
+
| 0.0005 | 9.16 | 2400 | 0.0816 | 0.9847 |
|
| 92 |
+
| 0.0006 | 9.54 | 2500 | 0.0811 | 0.9847 |
|
| 93 |
+
| 0.0005 | 9.92 | 2600 | 0.0805 | 0.9847 |
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
### Framework versions
|
| 97 |
+
|
| 98 |
+
- Transformers 4.38.0.dev0
|
| 99 |
+
- Pytorch 2.1.0+cu121
|
| 100 |
+
- Datasets 2.16.1
|
| 101 |
+
- Tokenizers 0.15.1
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 343227052
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:72904eec0e99092000be6b4913108daecea58a65df9cbbb6bbfc557ef522c71f
|
| 3 |
size 343227052
|
runs/Jan27_07-17-29_431ca57d82bd/events.out.tfevents.1706339851.431ca57d82bd.5195.2
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac44488a3c1675c340fb6df1fb8d588c5266361c4a50a642b8f1e1db8807c16e
|
| 3 |
+
size 54305
|