# Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification
processor = AutoImageProcessor.from_pretrained("dima806/fruits_type_detection")
model = AutoModelForImageClassification.from_pretrained("dima806/fruits_type_detection")Quick Links
See https://www.kaggle.com/code/dima806/fruits-image-detection-vit for more details.
- Downloads last month
- 8
Model tree for dima806/fruits_type_detection
Base model
google/vit-base-patch16-224-in21k
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="dima806/fruits_type_detection") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")