Commit ·
123304e
1
Parent(s): b1854c4
update model card README.md
Browse files
README.md
CHANGED
|
@@ -3,10 +3,25 @@ license: apache-2.0
|
|
| 3 |
tags:
|
| 4 |
- generated_from_trainer
|
| 5 |
datasets:
|
| 6 |
-
-
|
|
|
|
|
|
|
| 7 |
model-index:
|
| 8 |
- name: histo_train_vit
|
| 9 |
-
results:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -14,7 +29,10 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 14 |
|
| 15 |
# histo_train_vit
|
| 16 |
|
| 17 |
-
This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
## Model description
|
| 20 |
|
|
@@ -39,16 +57,30 @@ The following hyperparameters were used during training:
|
|
| 39 |
- seed: 42
|
| 40 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 41 |
- lr_scheduler_type: linear
|
| 42 |
-
- num_epochs:
|
| 43 |
- mixed_precision_training: Native AMP
|
| 44 |
|
| 45 |
### Training results
|
| 46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
|
| 49 |
### Framework versions
|
| 50 |
|
| 51 |
-
- Transformers 4.
|
| 52 |
-
- Pytorch 1.13.
|
| 53 |
-
- Datasets 2.
|
| 54 |
- Tokenizers 0.13.2
|
|
|
|
| 3 |
tags:
|
| 4 |
- generated_from_trainer
|
| 5 |
datasets:
|
| 6 |
+
- imagefolder
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
model-index:
|
| 10 |
- name: histo_train_vit
|
| 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: Accuracy
|
| 23 |
+
type: accuracy
|
| 24 |
+
value: 0.825
|
| 25 |
---
|
| 26 |
|
| 27 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 29 |
|
| 30 |
# histo_train_vit
|
| 31 |
|
| 32 |
+
This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the imagefolder dataset.
|
| 33 |
+
It achieves the following results on the evaluation set:
|
| 34 |
+
- Loss: 0.7340
|
| 35 |
+
- Accuracy: 0.825
|
| 36 |
|
| 37 |
## Model description
|
| 38 |
|
|
|
|
| 57 |
- seed: 42
|
| 58 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 59 |
- lr_scheduler_type: linear
|
| 60 |
+
- num_epochs: 20
|
| 61 |
- mixed_precision_training: Native AMP
|
| 62 |
|
| 63 |
### Training results
|
| 64 |
|
| 65 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 66 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 67 |
+
| 1.0481 | 1.67 | 10 | 0.4926 | 0.825 |
|
| 68 |
+
| 0.3714 | 3.33 | 20 | 0.3388 | 0.9 |
|
| 69 |
+
| 0.0642 | 5.0 | 30 | 0.3255 | 0.875 |
|
| 70 |
+
| 0.0199 | 6.67 | 40 | 0.4111 | 0.875 |
|
| 71 |
+
| 0.0074 | 8.33 | 50 | 0.3334 | 0.925 |
|
| 72 |
+
| 0.0024 | 10.0 | 60 | 0.3710 | 0.9 |
|
| 73 |
+
| 0.0131 | 11.67 | 70 | 0.5366 | 0.85 |
|
| 74 |
+
| 0.0067 | 13.33 | 80 | 0.5172 | 0.875 |
|
| 75 |
+
| 0.0152 | 15.0 | 90 | 0.4835 | 0.9 |
|
| 76 |
+
| 0.0058 | 16.67 | 100 | 0.3979 | 0.875 |
|
| 77 |
+
| 0.0005 | 18.33 | 110 | 0.5964 | 0.825 |
|
| 78 |
+
| 0.0008 | 20.0 | 120 | 0.7340 | 0.825 |
|
| 79 |
|
| 80 |
|
| 81 |
### Framework versions
|
| 82 |
|
| 83 |
+
- Transformers 4.27.3
|
| 84 |
+
- Pytorch 1.13.1+cu116
|
| 85 |
+
- Datasets 2.10.1
|
| 86 |
- Tokenizers 0.13.2
|