Instructions to use n1hal/Food_Model_Example with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use n1hal/Food_Model_Example with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="n1hal/Food_Model_Example") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("n1hal/Food_Model_Example") model = AutoModelForImageClassification.from_pretrained("n1hal/Food_Model_Example", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 129 Bytes
9de5f75 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:0b7f77e88c5d64470bdf790cdc20153c9a09746bc7f182cffe6a494709fad101
size 5176
|