Instructions to use tinutmap/categorAI_img with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tinutmap/categorAI_img with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="tinutmap/categorAI_img") 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("tinutmap/categorAI_img") model = AutoModelForImageClassification.from_pretrained("tinutmap/categorAI_img", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +30 -25
- config.json +12 -10
- model.safetensors +2 -2
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -23,7 +23,7 @@ model-index:
|
|
| 23 |
metrics:
|
| 24 |
- name: Accuracy
|
| 25 |
type: accuracy
|
| 26 |
-
value: 0.
|
| 27 |
---
|
| 28 |
|
| 29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -33,8 +33,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 33 |
|
| 34 |
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.
|
| 35 |
It achieves the following results on the evaluation set:
|
| 36 |
-
- Loss: 0.
|
| 37 |
-
- Accuracy: 0.
|
| 38 |
|
| 39 |
## Model description
|
| 40 |
|
|
@@ -66,28 +66,33 @@ The following hyperparameters were used during training:
|
|
| 66 |
|
| 67 |
### Training results
|
| 68 |
|
| 69 |
-
| Training Loss | Epoch
|
| 70 |
-
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 71 |
-
| No log |
|
| 72 |
-
|
|
| 73 |
-
|
|
| 74 |
-
|
|
| 75 |
-
|
|
| 76 |
-
|
|
| 77 |
-
|
|
| 78 |
-
|
|
| 79 |
-
|
|
| 80 |
-
|
|
| 81 |
-
|
|
| 82 |
-
|
|
| 83 |
-
|
|
| 84 |
-
|
|
| 85 |
-
|
|
| 86 |
-
| 2.
|
| 87 |
-
| 2.
|
| 88 |
-
| 2.
|
| 89 |
-
| 2.
|
| 90 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
|
| 92 |
|
| 93 |
### Framework versions
|
|
|
|
| 23 |
metrics:
|
| 24 |
- name: Accuracy
|
| 25 |
type: accuracy
|
| 26 |
+
value: 0.8378378378378378
|
| 27 |
---
|
| 28 |
|
| 29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 33 |
|
| 34 |
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.
|
| 35 |
It achieves the following results on the evaluation set:
|
| 36 |
+
- Loss: 0.7080
|
| 37 |
+
- Accuracy: 0.8378
|
| 38 |
|
| 39 |
## Model description
|
| 40 |
|
|
|
|
| 66 |
|
| 67 |
### Training results
|
| 68 |
|
| 69 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 70 |
+
|:-------------:|:-------:|:----:|:---------------:|:--------:|
|
| 71 |
+
| No log | 0.9091 | 5 | 1.8872 | 0.3784 |
|
| 72 |
+
| 7.7979 | 1.9091 | 10 | 1.7777 | 0.6419 |
|
| 73 |
+
| 7.7979 | 2.9091 | 15 | 1.6224 | 0.6622 |
|
| 74 |
+
| 6.9519 | 3.9091 | 20 | 1.4667 | 0.6959 |
|
| 75 |
+
| 6.9519 | 4.9091 | 25 | 1.3353 | 0.7365 |
|
| 76 |
+
| 5.7562 | 5.9091 | 30 | 1.2522 | 0.7703 |
|
| 77 |
+
| 5.7562 | 6.9091 | 35 | 1.1617 | 0.7838 |
|
| 78 |
+
| 4.7446 | 7.9091 | 40 | 1.0967 | 0.7635 |
|
| 79 |
+
| 4.7446 | 8.9091 | 45 | 1.0362 | 0.7568 |
|
| 80 |
+
| 4.0655 | 9.9091 | 50 | 0.9349 | 0.8108 |
|
| 81 |
+
| 4.0655 | 10.9091 | 55 | 0.9393 | 0.7905 |
|
| 82 |
+
| 3.5041 | 11.9091 | 60 | 0.8859 | 0.7838 |
|
| 83 |
+
| 3.5041 | 12.9091 | 65 | 0.9039 | 0.7770 |
|
| 84 |
+
| 3.0788 | 13.9091 | 70 | 0.8123 | 0.8041 |
|
| 85 |
+
| 3.0788 | 14.9091 | 75 | 0.7946 | 0.8243 |
|
| 86 |
+
| 2.7461 | 15.9091 | 80 | 0.8003 | 0.8311 |
|
| 87 |
+
| 2.7461 | 16.9091 | 85 | 0.8101 | 0.7703 |
|
| 88 |
+
| 2.4988 | 17.9091 | 90 | 0.7111 | 0.8176 |
|
| 89 |
+
| 2.4988 | 18.9091 | 95 | 0.7439 | 0.8243 |
|
| 90 |
+
| 2.3122 | 19.9091 | 100 | 0.7542 | 0.7905 |
|
| 91 |
+
| 2.3122 | 20.9091 | 105 | 0.7323 | 0.8311 |
|
| 92 |
+
| 2.3408 | 21.9091 | 110 | 0.7175 | 0.8243 |
|
| 93 |
+
| 2.3408 | 22.9091 | 115 | 0.7652 | 0.8041 |
|
| 94 |
+
| 2.2846 | 23.9091 | 120 | 0.7211 | 0.8176 |
|
| 95 |
+
| 2.2846 | 24.9091 | 125 | 0.7080 | 0.8378 |
|
| 96 |
|
| 97 |
|
| 98 |
### Framework versions
|
config.json
CHANGED
|
@@ -10,22 +10,24 @@
|
|
| 10 |
"hidden_size": 768,
|
| 11 |
"id2label": {
|
| 12 |
"0": "accessories",
|
| 13 |
-
"1": "
|
| 14 |
-
"2": "
|
| 15 |
-
"3": "
|
| 16 |
-
"4": "
|
| 17 |
-
"5": "
|
|
|
|
| 18 |
},
|
| 19 |
"image_size": 224,
|
| 20 |
"initializer_range": 0.02,
|
| 21 |
"intermediate_size": 3072,
|
| 22 |
"label2id": {
|
| 23 |
"accessories": "0",
|
| 24 |
-
"
|
| 25 |
-
"
|
| 26 |
-
"
|
| 27 |
-
"
|
| 28 |
-
"
|
|
|
|
| 29 |
},
|
| 30 |
"layer_norm_eps": 1e-12,
|
| 31 |
"model_type": "vit",
|
|
|
|
| 10 |
"hidden_size": 768,
|
| 11 |
"id2label": {
|
| 12 |
"0": "accessories",
|
| 13 |
+
"1": "light",
|
| 14 |
+
"2": "panels",
|
| 15 |
+
"3": "seat",
|
| 16 |
+
"4": "storage",
|
| 17 |
+
"5": "table",
|
| 18 |
+
"6": "work surfaces"
|
| 19 |
},
|
| 20 |
"image_size": 224,
|
| 21 |
"initializer_range": 0.02,
|
| 22 |
"intermediate_size": 3072,
|
| 23 |
"label2id": {
|
| 24 |
"accessories": "0",
|
| 25 |
+
"light": "1",
|
| 26 |
+
"panels": "2",
|
| 27 |
+
"seat": "3",
|
| 28 |
+
"storage": "4",
|
| 29 |
+
"table": "5",
|
| 30 |
+
"work surfaces": "6"
|
| 31 |
},
|
| 32 |
"layer_norm_eps": 1e-12,
|
| 33 |
"model_type": "vit",
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:295ad3e4a44a10b9c41694001ac05cedce879fbb1f9ffc7918386c7761c8e316
|
| 3 |
+
size 343239356
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5304
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2d734840f32c8cdc7335aca3f8d60422caff2bb0ed40b19a57fa76a32b8cb4c
|
| 3 |
size 5304
|