tanganke/stl10
Viewer • Updated • 13k • 5.46k
How to use ilydise/binary-food-non-food-classifier with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="ilydise/binary-food-non-food-classifier")
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("ilydise/binary-food-non-food-classifier", dtype="auto")Base model
google/vit-base-patch16-224