Instructions to use sofiane-isi/vit-beans-sofiane with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sofiane-isi/vit-beans-sofiane with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="sofiane-isi/vit-beans-sofiane") 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("sofiane-isi/vit-beans-sofiane") model = AutoModelForImageClassification.from_pretrained("sofiane-isi/vit-beans-sofiane", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 709 Bytes
5b34ea4 acefebf 5b34ea4 acefebf 5b34ea4 acefebf 5b34ea4 acefebf 5b34ea4 acefebf 5b34ea4 acefebf 5b34ea4 acefebf 5b34ea4 acefebf 5b34ea4 acefebf 5b34ea4 acefebf 5b34ea4 acefebf 5b34ea4 acefebf 5b34ea4 acefebf 5b34ea4 acefebf 5b34ea4 acefebf 5b34ea4 acefebf 5b34ea4 acefebf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | ---
library_name: transformers
pipeline_tag: image-classification
tags:
- image-classification
- vit
- beans
datasets:
- AI-Lab-Makerere/beans
---
# ViT Beans Classifier
Vision Transformer fine-tuned for bean leaf disease classification.
## Repository
`sofiane-isi/vit-beans-sofiane`
## Dataset
`AI-Lab-Makerere/beans`
Classes:
- angular_leaf_spot
- bean_rust
- healthy
## Evaluation
- Accuracy: 0.96875
- Evaluation loss: 0.12236211448907852
## Base model
`google/vit-base-patch16-224-in21k`
## MLOps workflow
Dataset → preprocessing → fine-tuning → evaluation → Hugging Face Hub → Model Card → Space.
## Limitations
Educational model fine-tuned specifically on the Beans dataset.
|