Commit ·
1f348fc
1
Parent(s): 23e208d
juniorjukeko/img_class_beans
Browse files- README.md +18 -11
- pytorch_model.bin +1 -1
README.md
CHANGED
|
@@ -8,7 +8,7 @@ datasets:
|
|
| 8 |
metrics:
|
| 9 |
- accuracy
|
| 10 |
model-index:
|
| 11 |
-
- name:
|
| 12 |
results:
|
| 13 |
- task:
|
| 14 |
name: Image Classification
|
|
@@ -22,18 +22,18 @@ model-index:
|
|
| 22 |
metrics:
|
| 23 |
- name: Accuracy
|
| 24 |
type: accuracy
|
| 25 |
-
value: 0.
|
| 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 |
-
#
|
| 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 beans dataset.
|
| 34 |
It achieves the following results on the evaluation set:
|
| 35 |
-
- Loss: 0.
|
| 36 |
-
- Accuracy: 0.
|
| 37 |
|
| 38 |
## Model description
|
| 39 |
|
|
@@ -55,26 +55,33 @@ The following hyperparameters were used during training:
|
|
| 55 |
- learning_rate: 5e-05
|
| 56 |
- train_batch_size: 16
|
| 57 |
- eval_batch_size: 16
|
| 58 |
-
- seed:
|
| 59 |
- gradient_accumulation_steps: 4
|
| 60 |
- total_train_batch_size: 64
|
| 61 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 62 |
- lr_scheduler_type: linear
|
| 63 |
- lr_scheduler_warmup_ratio: 0.1
|
| 64 |
-
- num_epochs:
|
| 65 |
|
| 66 |
### Training results
|
| 67 |
|
| 68 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 69 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 70 |
-
|
|
| 71 |
-
| 0.
|
| 72 |
-
| 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
|
| 74 |
|
| 75 |
### Framework versions
|
| 76 |
|
| 77 |
-
- Transformers 4.33.
|
| 78 |
- Pytorch 2.0.1+cu118
|
| 79 |
- Datasets 2.14.5
|
| 80 |
- Tokenizers 0.13.3
|
|
|
|
| 8 |
metrics:
|
| 9 |
- accuracy
|
| 10 |
model-index:
|
| 11 |
+
- name: img_class_beans
|
| 12 |
results:
|
| 13 |
- task:
|
| 14 |
name: Image Classification
|
|
|
|
| 22 |
metrics:
|
| 23 |
- name: Accuracy
|
| 24 |
type: accuracy
|
| 25 |
+
value: 0.9498069498069498
|
| 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 |
+
# img_class_beans
|
| 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 beans dataset.
|
| 34 |
It achieves the following results on the evaluation set:
|
| 35 |
+
- Loss: 0.1818
|
| 36 |
+
- Accuracy: 0.9498
|
| 37 |
|
| 38 |
## Model description
|
| 39 |
|
|
|
|
| 55 |
- learning_rate: 5e-05
|
| 56 |
- train_batch_size: 16
|
| 57 |
- eval_batch_size: 16
|
| 58 |
+
- seed: 143
|
| 59 |
- gradient_accumulation_steps: 4
|
| 60 |
- total_train_batch_size: 64
|
| 61 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 62 |
- lr_scheduler_type: linear
|
| 63 |
- lr_scheduler_warmup_ratio: 0.1
|
| 64 |
+
- num_epochs: 10
|
| 65 |
|
| 66 |
### Training results
|
| 67 |
|
| 68 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 69 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 70 |
+
| 1.0147 | 0.98 | 12 | 0.8254 | 0.8494 |
|
| 71 |
+
| 0.7452 | 1.96 | 24 | 0.4785 | 0.9266 |
|
| 72 |
+
| 0.452 | 2.94 | 36 | 0.3032 | 0.9344 |
|
| 73 |
+
| 0.2861 | 4.0 | 49 | 0.2146 | 0.9459 |
|
| 74 |
+
| 0.155 | 4.98 | 61 | 0.1719 | 0.9575 |
|
| 75 |
+
| 0.1318 | 5.96 | 73 | 0.1655 | 0.9730 |
|
| 76 |
+
| 0.1311 | 6.94 | 85 | 0.1550 | 0.9691 |
|
| 77 |
+
| 0.1163 | 8.0 | 98 | 0.1710 | 0.9459 |
|
| 78 |
+
| 0.1006 | 8.98 | 110 | 0.1752 | 0.9459 |
|
| 79 |
+
| 0.1045 | 9.8 | 120 | 0.1472 | 0.9614 |
|
| 80 |
|
| 81 |
|
| 82 |
### Framework versions
|
| 83 |
|
| 84 |
+
- Transformers 4.33.2
|
| 85 |
- Pytorch 2.0.1+cu118
|
| 86 |
- Datasets 2.14.5
|
| 87 |
- Tokenizers 0.13.3
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 343271789
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4e3e5002071f295cdd5cd486caea1e3349ce0125b53cbc7d7f4e5adb62768abe
|
| 3 |
size 343271789
|