Image Classification
Transformers
PyTorch
TensorBoard
mobilenet_v2
Generated from Trainer
Eval Results (legacy)
Instructions to use merve/vit-mobilenet-beans-224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use merve/vit-mobilenet-beans-224 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="merve/vit-mobilenet-beans-224") 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("merve/vit-mobilenet-beans-224") model = AutoModelForImageClassification.from_pretrained("merve/vit-mobilenet-beans-224") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -6,7 +6,7 @@ datasets:
|
|
| 6 |
metrics:
|
| 7 |
- accuracy
|
| 8 |
model-index:
|
| 9 |
-
- name:
|
| 10 |
results:
|
| 11 |
- task:
|
| 12 |
name: Image Classification
|
|
@@ -26,24 +26,14 @@ model-index:
|
|
| 26 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 27 |
should probably proofread and complete it, then remove this comment. -->
|
| 28 |
|
| 29 |
-
#
|
| 30 |
|
| 31 |
-
This model is a fine-tuned
|
|
|
|
| 32 |
It achieves the following results on the evaluation set:
|
| 33 |
- Loss: 0.5922
|
| 34 |
- Accuracy: 0.7266
|
| 35 |
|
| 36 |
-
## Model description
|
| 37 |
-
|
| 38 |
-
More information needed
|
| 39 |
-
|
| 40 |
-
## Intended uses & limitations
|
| 41 |
-
|
| 42 |
-
More information needed
|
| 43 |
-
|
| 44 |
-
## Training and evaluation data
|
| 45 |
-
|
| 46 |
-
More information needed
|
| 47 |
|
| 48 |
## Training procedure
|
| 49 |
|
|
|
|
| 6 |
metrics:
|
| 7 |
- accuracy
|
| 8 |
model-index:
|
| 9 |
+
- name: vit-mobilenet-beans-224
|
| 10 |
results:
|
| 11 |
- task:
|
| 12 |
name: Image Classification
|
|
|
|
| 26 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 27 |
should probably proofread and complete it, then remove this comment. -->
|
| 28 |
|
| 29 |
+
# ViT distilled to MobileNet
|
| 30 |
|
| 31 |
+
This model is a distilled model, where teacher model is [merve/beans-vit-224](https://huggingface.co/merve/beans-vit-224), fine-tuned [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the beans dataset.
|
| 32 |
+
Student model is randomly initialized MobileNetV2.
|
| 33 |
It achieves the following results on the evaluation set:
|
| 34 |
- Loss: 0.5922
|
| 35 |
- Accuracy: 0.7266
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
## Training procedure
|
| 39 |
|