How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-classification", model="KhalfounMehdi/vision_transformer_mura_model")
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("KhalfounMehdi/vision_transformer_mura_model")
model = AutoModelForImageClassification.from_pretrained("KhalfounMehdi/vision_transformer_mura_model", device_map="auto")
Quick Links

vision_transformer_mura_model

{'accuracy': 0.791552111972007, 'recall': 0.7886619424760317, 'precision': 0.8526363226678684, 'f1': 0.819402338674751, 'total_time_in_seconds': 2731.6233958929997, 'samples_per_second': 1.464696782878456, 'latency_in_seconds': 0.6827351651819544 }

Example Images

Downloads last month
6
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Evaluation results