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 -17
- 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,20 +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 |
|
| 86 |
|
| 87 |
### Framework versions
|
|
|
|
| 22 |
metrics:
|
| 23 |
- name: Accuracy
|
| 24 |
type: accuracy
|
| 25 |
+
value: 0.7962184873949579
|
| 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.4741
|
| 36 |
+
- Accuracy: 0.7962
|
| 37 |
|
| 38 |
## Model description
|
| 39 |
|
|
|
|
| 68 |
|
| 69 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 70 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 71 |
+
| 0.6895 | 0.9 | 15 | 0.6560 | 0.6702 |
|
| 72 |
+
| 0.5774 | 1.79 | 30 | 0.5608 | 0.6954 |
|
| 73 |
+
| 0.5128 | 2.69 | 45 | 0.5295 | 0.7290 |
|
| 74 |
+
| 0.4492 | 3.58 | 60 | 0.5158 | 0.7374 |
|
| 75 |
+
| 0.4045 | 4.48 | 75 | 0.4715 | 0.7605 |
|
| 76 |
+
| 0.3634 | 5.37 | 90 | 0.4565 | 0.7878 |
|
| 77 |
+
| 0.3397 | 6.27 | 105 | 0.4294 | 0.7962 |
|
| 78 |
+
| 0.3075 | 7.16 | 120 | 0.4783 | 0.7962 |
|
| 79 |
+
| 0.2943 | 8.06 | 135 | 0.5015 | 0.7878 |
|
| 80 |
+
| 0.2887 | 8.96 | 150 | 0.4621 | 0.7983 |
|
| 81 |
+
| 0.2645 | 9.85 | 165 | 0.4326 | 0.8109 |
|
| 82 |
+
| 0.276 | 10.75 | 180 | 0.4494 | 0.8088 |
|
| 83 |
+
| 0.2413 | 11.64 | 195 | 0.5029 | 0.7794 |
|
| 84 |
+
| 0.22 | 12.54 | 210 | 0.4741 | 0.7962 |
|
| 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:0c7f0e8d9cd3811009ad90d93dd426b29b4831875c6ff32f9f81d0e438976bb4
|
| 3 |
size 343223968
|