An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
Paper • 2010.11929 • Published • 17
How to use ewanlong/food_type_image_detection with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="ewanlong/food_type_image_detection")
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("ewanlong/food_type_image_detection")
model = AutoModelForImageClassification.from_pretrained("ewanlong/food_type_image_detection")YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.