Commit
·
05510b7
1
Parent(s):
252909e
update model card README.md
Browse files
README.md
CHANGED
|
@@ -1,27 +1,38 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
tags:
|
| 4 |
-
-
|
| 5 |
-
|
| 6 |
-
-
|
| 7 |
-
|
|
|
|
| 8 |
model-index:
|
| 9 |
-
- name:
|
| 10 |
-
results:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
-
<!-- This model card has been generated automatically according to the information
|
| 14 |
-
probably proofread and complete it, then remove this comment. -->
|
| 15 |
|
| 16 |
-
#
|
| 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 the beans dataset.
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
-
-
|
| 21 |
-
-
|
| 22 |
-
- Validation Loss: 0.1126
|
| 23 |
-
- Validation Accuracy: 0.9774
|
| 24 |
-
- Epoch: 2
|
| 25 |
|
| 26 |
## Model description
|
| 27 |
|
|
@@ -40,21 +51,28 @@ More information needed
|
|
| 40 |
### Training hyperparameters
|
| 41 |
|
| 42 |
The following hyperparameters were used during training:
|
| 43 |
-
-
|
| 44 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
### Training results
|
| 47 |
|
| 48 |
-
|
|
| 49 |
-
|
| 50 |
-
| 0.
|
| 51 |
-
| 0.
|
| 52 |
-
| 0.
|
|
|
|
|
|
|
| 53 |
|
| 54 |
|
| 55 |
### Framework versions
|
| 56 |
|
| 57 |
-
- Transformers 4.
|
| 58 |
-
-
|
| 59 |
-
- Datasets 2.
|
| 60 |
-
- Tokenizers 0.
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
tags:
|
| 4 |
+
- generated_from_trainer
|
| 5 |
+
datasets:
|
| 6 |
+
- beans
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
model-index:
|
| 10 |
+
- name: vit-base-beans
|
| 11 |
+
results:
|
| 12 |
+
- task:
|
| 13 |
+
name: Image Classification
|
| 14 |
+
type: image-classification
|
| 15 |
+
dataset:
|
| 16 |
+
name: beans
|
| 17 |
+
type: beans
|
| 18 |
+
config: default
|
| 19 |
+
split: validation
|
| 20 |
+
args: default
|
| 21 |
+
metrics:
|
| 22 |
+
- name: Accuracy
|
| 23 |
+
type: accuracy
|
| 24 |
+
value: 0.9849624060150376
|
| 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 |
+
# vit-base-beans
|
| 31 |
|
| 32 |
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 beans dataset.
|
| 33 |
It achieves the following results on the evaluation set:
|
| 34 |
+
- Loss: 0.0630
|
| 35 |
+
- Accuracy: 0.9850
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
## Model description
|
| 38 |
|
|
|
|
| 51 |
### Training hyperparameters
|
| 52 |
|
| 53 |
The following hyperparameters were used during training:
|
| 54 |
+
- learning_rate: 2e-05
|
| 55 |
+
- train_batch_size: 8
|
| 56 |
+
- eval_batch_size: 8
|
| 57 |
+
- seed: 1337
|
| 58 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 59 |
+
- lr_scheduler_type: linear
|
| 60 |
+
- num_epochs: 5.0
|
| 61 |
|
| 62 |
### Training results
|
| 63 |
|
| 64 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 65 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 66 |
+
| 0.3038 | 1.0 | 130 | 0.2396 | 0.9624 |
|
| 67 |
+
| 0.1609 | 2.0 | 260 | 0.1130 | 0.9774 |
|
| 68 |
+
| 0.2313 | 3.0 | 390 | 0.0809 | 0.9850 |
|
| 69 |
+
| 0.1436 | 4.0 | 520 | 0.0738 | 0.9850 |
|
| 70 |
+
| 0.1086 | 5.0 | 650 | 0.0630 | 0.9850 |
|
| 71 |
|
| 72 |
|
| 73 |
### Framework versions
|
| 74 |
|
| 75 |
+
- Transformers 4.27.0.dev0
|
| 76 |
+
- Pytorch 1.14.0.dev20221118
|
| 77 |
+
- Datasets 2.9.1.dev0
|
| 78 |
+
- Tokenizers 0.13.2
|