Instructions to use ongkn/attraction-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ongkn/attraction-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="ongkn/attraction-classifier") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("ongkn/attraction-classifier") model = AutoModelForImageClassification.from_pretrained("ongkn/attraction-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +19 -10
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -22,7 +22,7 @@ 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
|
|
@@ -32,8 +32,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 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 imagefolder dataset.
|
| 34 |
It achieves the following results on the evaluation set:
|
| 35 |
-
- Loss: 0.
|
| 36 |
-
- Accuracy: 0.
|
| 37 |
|
| 38 |
## Model description
|
| 39 |
|
|
@@ -68,13 +68,22 @@ The following hyperparameters were used during training:
|
|
| 68 |
|
| 69 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 70 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 71 |
-
| 0.
|
| 72 |
-
| 0.
|
| 73 |
-
| 0.
|
| 74 |
-
| 0.
|
| 75 |
-
| 0.
|
| 76 |
-
| 0.
|
| 77 |
-
| 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
|
| 79 |
|
| 80 |
### Framework versions
|
|
|
|
| 22 |
metrics:
|
| 23 |
- name: Accuracy
|
| 24 |
type: accuracy
|
| 25 |
+
value: 0.7923728813559322
|
| 26 |
---
|
| 27 |
|
| 28 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 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 imagefolder dataset.
|
| 34 |
It achieves the following results on the evaluation set:
|
| 35 |
+
- Loss: 0.5459
|
| 36 |
+
- Accuracy: 0.7924
|
| 37 |
|
| 38 |
## Model description
|
| 39 |
|
|
|
|
| 68 |
|
| 69 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 70 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 71 |
+
| 0.6689 | 1.5 | 25 | 0.5895 | 0.6907 |
|
| 72 |
+
| 0.493 | 3.01 | 50 | 0.4987 | 0.7775 |
|
| 73 |
+
| 0.419 | 4.51 | 75 | 0.4900 | 0.7818 |
|
| 74 |
+
| 0.3691 | 6.02 | 100 | 0.4663 | 0.7881 |
|
| 75 |
+
| 0.3382 | 7.52 | 125 | 0.4709 | 0.7818 |
|
| 76 |
+
| 0.2903 | 9.02 | 150 | 0.5056 | 0.7797 |
|
| 77 |
+
| 0.2626 | 10.53 | 175 | 0.4879 | 0.7903 |
|
| 78 |
+
| 0.2444 | 12.03 | 200 | 0.5666 | 0.75 |
|
| 79 |
+
| 0.2294 | 13.53 | 225 | 0.5262 | 0.7797 |
|
| 80 |
+
| 0.1937 | 15.04 | 250 | 0.5221 | 0.8008 |
|
| 81 |
+
| 0.1912 | 16.54 | 275 | 0.5110 | 0.7797 |
|
| 82 |
+
| 0.1761 | 18.05 | 300 | 0.4810 | 0.8030 |
|
| 83 |
+
| 0.1659 | 19.55 | 325 | 0.5118 | 0.7966 |
|
| 84 |
+
| 0.1548 | 21.05 | 350 | 0.4826 | 0.8114 |
|
| 85 |
+
| 0.155 | 22.56 | 375 | 0.5322 | 0.7818 |
|
| 86 |
+
| 0.1459 | 24.06 | 400 | 0.5459 | 0.7924 |
|
| 87 |
|
| 88 |
|
| 89 |
### Framework versions
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 343223968
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:45286cc171be72bc33baad16092a091607626a11283fa650831306ba99f9197e
|
| 3 |
size 343223968
|