Instructions to use Subhash5/indian-food-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Subhash5/indian-food-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Subhash5/indian-food-classifier") 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("Subhash5/indian-food-classifier") model = AutoModelForImageClassification.from_pretrained("Subhash5/indian-food-classifier") - Notebooks
- Google Colab
- Kaggle
π Indian Food Image Classifier
This model classifies food images into 20 categories including Indian dishes and popular foods.
π¦ Classes
0: burger
1: butter_naan
2: chai
3: chapati
4: chole_bhature
5: dal_makhani
6: dhokla
7: fried_rice
8: idli
9: jalebi
10: kaathi_rolls
11: kadai_paneer
12: kulfi
13: masala_dosa
14: momos
15: paani_puri
16: pakode
17: pav_bhaji
18: pizza
19: samosa
π How to use
You can use this model easily with Hugging Face pipeline:
from transformers import pipeline
model_name = "Subhash5/indian-food-classifier"
classifier = pipeline("image-classification", model=model_name)
result = classifier("test.jpg")
print(result)
- Downloads last month
- 32
Model tree for Subhash5/indian-food-classifier
Base model
google/vit-large-patch16-224