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 +17 -19
- 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,22 +68,20 @@ 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 |
-
| 0.
|
| 79 |
-
| 0.
|
| 80 |
-
| 0.
|
| 81 |
-
| 0.
|
| 82 |
-
| 0.
|
| 83 |
-
| 0.
|
| 84 |
-
| 0.
|
| 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
|
|
|
|
| 22 |
metrics:
|
| 23 |
- name: Accuracy
|
| 24 |
type: accuracy
|
| 25 |
+
value: 0.8008474576271186
|
| 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.4920
|
| 36 |
+
- Accuracy: 0.8008
|
| 37 |
|
| 38 |
## Model description
|
| 39 |
|
|
|
|
| 68 |
|
| 69 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 70 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 71 |
+
| 0.6885 | 0.9 | 15 | 0.6465 | 0.6377 |
|
| 72 |
+
| 0.5591 | 1.8 | 30 | 0.5381 | 0.7352 |
|
| 73 |
+
| 0.4978 | 2.71 | 45 | 0.4825 | 0.7669 |
|
| 74 |
+
| 0.4175 | 3.61 | 60 | 0.4869 | 0.7691 |
|
| 75 |
+
| 0.3889 | 4.51 | 75 | 0.4768 | 0.7775 |
|
| 76 |
+
| 0.3786 | 5.41 | 90 | 0.4776 | 0.7754 |
|
| 77 |
+
| 0.3296 | 6.32 | 105 | 0.4648 | 0.7966 |
|
| 78 |
+
| 0.3109 | 7.22 | 120 | 0.4731 | 0.7987 |
|
| 79 |
+
| 0.2976 | 8.12 | 135 | 0.4898 | 0.7754 |
|
| 80 |
+
| 0.328 | 9.02 | 150 | 0.6829 | 0.7140 |
|
| 81 |
+
| 0.2898 | 9.92 | 165 | 0.4761 | 0.8093 |
|
| 82 |
+
| 0.2319 | 10.83 | 180 | 0.4956 | 0.7903 |
|
| 83 |
+
| 0.2069 | 11.73 | 195 | 0.5464 | 0.7691 |
|
| 84 |
+
| 0.2043 | 12.63 | 210 | 0.4920 | 0.8008 |
|
|
|
|
|
|
|
| 85 |
|
| 86 |
|
| 87 |
### 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:3bdc1965a383e43ac18bf4562a4fc2cdfbf1686202b247857440270970abf58a
|
| 3 |
size 343223968
|