ethz/food101
Viewer • Updated • 101k • 29.4k • 134
How to use Dricz/food-classifier-224 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="Dricz/food-classifier-224")
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("Dricz/food-classifier-224")
model = AutoModelForImageClassification.from_pretrained("Dricz/food-classifier-224")This model is a fine-tuned version of google/vit-base-patch16-224-in21k on the food101 dataset. It achieves the following results on the evaluation set:
A model that can detect 101 variety of food.
The following hyperparameters were used during training: