Image Classification
Transformers
TensorBoard
Safetensors
vit
Generated from Trainer
Eval Results (legacy)
Instructions to use goodcasper/vit_itri_2class_focalloss with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use goodcasper/vit_itri_2class_focalloss with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="goodcasper/vit_itri_2class_focalloss") 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_2class_focalloss") model = AutoModelForImageClassification.from_pretrained("goodcasper/vit_itri_2class_focalloss", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +19 -19
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -26,16 +26,16 @@ model-index:
|
|
| 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 |
|
|
@@ -80,16 +80,16 @@ The following hyperparameters were used during training:
|
|
| 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
|
|
|
|
| 26 |
metrics:
|
| 27 |
- name: Accuracy
|
| 28 |
type: accuracy
|
| 29 |
+
value: 0.9154860291223927
|
| 30 |
- name: Precision
|
| 31 |
type: precision
|
| 32 |
+
value: 0.9063125299043086
|
| 33 |
- name: Recall
|
| 34 |
type: recall
|
| 35 |
+
value: 0.9154860291223927
|
| 36 |
- name: F1
|
| 37 |
type: f1
|
| 38 |
+
value: 0.909840882104917
|
| 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.6180
|
| 49 |
+
- Accuracy: 0.9155
|
| 50 |
+
- Precision: 0.9063
|
| 51 |
+
- Recall: 0.9155
|
| 52 |
+
- F1: 0.9098
|
| 53 |
|
| 54 |
## Model description
|
| 55 |
|
|
|
|
| 80 |
|
| 81 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|
| 82 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
|
| 83 |
+
| 0.1198 | 1.0 | 759 | 0.2930 | 0.9360 | 0.9383 | 0.9360 | 0.9204 |
|
| 84 |
+
| 0.0457 | 2.0 | 1518 | 0.2589 | 0.9342 | 0.9266 | 0.9342 | 0.9275 |
|
| 85 |
+
| 0.027 | 3.0 | 2277 | 0.3913 | 0.9164 | 0.9137 | 0.9164 | 0.9150 |
|
| 86 |
+
| 0.0187 | 4.0 | 3036 | 0.4602 | 0.9162 | 0.9012 | 0.9162 | 0.9049 |
|
| 87 |
+
| 0.0129 | 5.0 | 3795 | 0.4067 | 0.9202 | 0.9236 | 0.9202 | 0.9218 |
|
| 88 |
+
| 0.0079 | 6.0 | 4554 | 0.5165 | 0.9327 | 0.9246 | 0.9327 | 0.9256 |
|
| 89 |
+
| 0.0057 | 7.0 | 5313 | 0.8537 | 0.8791 | 0.8902 | 0.8791 | 0.8842 |
|
| 90 |
+
| 0.0039 | 8.0 | 6072 | 0.7689 | 0.9148 | 0.8972 | 0.9148 | 0.9005 |
|
| 91 |
+
| 0.0023 | 9.0 | 6831 | 0.6286 | 0.9140 | 0.9040 | 0.9140 | 0.9078 |
|
| 92 |
+
| 0.0008 | 10.0 | 7590 | 0.6180 | 0.9155 | 0.9063 | 0.9155 | 0.9098 |
|
| 93 |
|
| 94 |
|
| 95 |
### 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:063c37f695982a9c5cadc1e471692c9c9a3d3ecff54cdec2d3af9047c7cf7e64
|
| 3 |
size 1213261264
|