Image Classification
Transformers
TensorBoard
Safetensors
vit
Generated from Trainer
Eval Results (legacy)
Instructions to use goodcasper/vit_itri_gerd with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use goodcasper/vit_itri_gerd with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="goodcasper/vit_itri_gerd") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("goodcasper/vit_itri_gerd") model = AutoModelForImageClassification.from_pretrained("goodcasper/vit_itri_gerd", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +26 -21
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -21,21 +21,21 @@ model-index:
|
|
| 21 |
name: imagefolder
|
| 22 |
type: imagefolder
|
| 23 |
config: default
|
| 24 |
-
split:
|
| 25 |
args: default
|
| 26 |
metrics:
|
| 27 |
- name: Accuracy
|
| 28 |
type: accuracy
|
| 29 |
-
value: 0.
|
| 30 |
- name: Precision
|
| 31 |
type: precision
|
| 32 |
-
value: 0.
|
| 33 |
- name: Recall
|
| 34 |
type: recall
|
| 35 |
-
value: 0.
|
| 36 |
- name: F1
|
| 37 |
type: f1
|
| 38 |
-
value: 0.
|
| 39 |
---
|
| 40 |
|
| 41 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -45,11 +45,11 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 45 |
|
| 46 |
This model is a fine-tuned version of [google/vit-large-patch16-224](https://huggingface.co/google/vit-large-patch16-224) on the imagefolder dataset.
|
| 47 |
It achieves the following results on the evaluation set:
|
| 48 |
-
- Loss: 0.
|
| 49 |
-
- Accuracy: 0.
|
| 50 |
-
- Precision: 0.
|
| 51 |
-
- Recall: 0.
|
| 52 |
-
- F1: 0.
|
| 53 |
|
| 54 |
## Model description
|
| 55 |
|
|
@@ -74,22 +74,27 @@ The following hyperparameters were used during training:
|
|
| 74 |
- seed: 42
|
| 75 |
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 76 |
- lr_scheduler_type: linear
|
| 77 |
-
- num_epochs:
|
| 78 |
|
| 79 |
### Training results
|
| 80 |
|
| 81 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|
| 82 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
|
| 83 |
-
| 0.
|
| 84 |
-
| 0.
|
| 85 |
-
| 0.
|
| 86 |
-
| 0.
|
| 87 |
-
| 0.
|
| 88 |
-
| 0.
|
| 89 |
-
| 0.
|
| 90 |
-
| 0.
|
| 91 |
-
| 0.
|
| 92 |
-
| 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
|
| 95 |
### Framework versions
|
|
|
|
| 21 |
name: imagefolder
|
| 22 |
type: imagefolder
|
| 23 |
config: default
|
| 24 |
+
split: train
|
| 25 |
args: default
|
| 26 |
metrics:
|
| 27 |
- name: Accuracy
|
| 28 |
type: accuracy
|
| 29 |
+
value: 0.8802395209580839
|
| 30 |
- name: Precision
|
| 31 |
type: precision
|
| 32 |
+
value: 0.8810801871515888
|
| 33 |
- name: Recall
|
| 34 |
type: recall
|
| 35 |
+
value: 0.8802395209580839
|
| 36 |
- name: F1
|
| 37 |
type: f1
|
| 38 |
+
value: 0.8801535602352574
|
| 39 |
---
|
| 40 |
|
| 41 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 45 |
|
| 46 |
This model is a fine-tuned version of [google/vit-large-patch16-224](https://huggingface.co/google/vit-large-patch16-224) on the imagefolder dataset.
|
| 47 |
It achieves the following results on the evaluation set:
|
| 48 |
+
- Loss: 0.8160
|
| 49 |
+
- Accuracy: 0.8802
|
| 50 |
+
- Precision: 0.8811
|
| 51 |
+
- Recall: 0.8802
|
| 52 |
+
- F1: 0.8802
|
| 53 |
|
| 54 |
## Model description
|
| 55 |
|
|
|
|
| 74 |
- seed: 42
|
| 75 |
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 76 |
- lr_scheduler_type: linear
|
| 77 |
+
- num_epochs: 15
|
| 78 |
|
| 79 |
### Training results
|
| 80 |
|
| 81 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|
| 82 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
|
| 83 |
+
| 0.6915 | 1.0 | 63 | 0.4305 | 0.7904 | 0.7926 | 0.7904 | 0.7901 |
|
| 84 |
+
| 0.455 | 2.0 | 126 | 0.7307 | 0.7605 | 0.7836 | 0.7605 | 0.7552 |
|
| 85 |
+
| 0.372 | 3.0 | 189 | 0.4026 | 0.8024 | 0.8123 | 0.8024 | 0.8007 |
|
| 86 |
+
| 0.3159 | 4.0 | 252 | 0.3805 | 0.8323 | 0.8340 | 0.8323 | 0.8321 |
|
| 87 |
+
| 0.2906 | 5.0 | 315 | 0.4334 | 0.8323 | 0.8326 | 0.8323 | 0.8323 |
|
| 88 |
+
| 0.2589 | 6.0 | 378 | 0.4235 | 0.8084 | 0.8232 | 0.8084 | 0.8060 |
|
| 89 |
+
| 0.2024 | 7.0 | 441 | 0.4003 | 0.8503 | 0.8516 | 0.8503 | 0.8502 |
|
| 90 |
+
| 0.1218 | 8.0 | 504 | 0.6308 | 0.8204 | 0.8270 | 0.8204 | 0.8193 |
|
| 91 |
+
| 0.1226 | 9.0 | 567 | 0.5468 | 0.8323 | 0.8353 | 0.8323 | 0.8319 |
|
| 92 |
+
| 0.0627 | 10.0 | 630 | 0.7390 | 0.8263 | 0.8286 | 0.8263 | 0.8260 |
|
| 93 |
+
| 0.0374 | 11.0 | 693 | 0.8669 | 0.8503 | 0.8503 | 0.8503 | 0.8503 |
|
| 94 |
+
| 0.0389 | 12.0 | 756 | 0.6790 | 0.8623 | 0.8627 | 0.8623 | 0.8622 |
|
| 95 |
+
| 0.0122 | 13.0 | 819 | 0.8346 | 0.8683 | 0.8701 | 0.8683 | 0.8681 |
|
| 96 |
+
| 0.0064 | 14.0 | 882 | 0.7985 | 0.8802 | 0.8804 | 0.8802 | 0.8802 |
|
| 97 |
+
| 0.0071 | 15.0 | 945 | 0.8160 | 0.8802 | 0.8811 | 0.8802 | 0.8802 |
|
| 98 |
|
| 99 |
|
| 100 |
### Framework versions
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1213261264
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4a980e71f34ca50f6e61f6f1f4ae923495eaac133d422c0eef70c9de8bda4ba8
|
| 3 |
size 1213261264
|