Instructions to use AdamCod/food_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AdamCod/food_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="AdamCod/food_classifier") 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("AdamCod/food_classifier") model = AutoModelForImageClassification.from_pretrained("AdamCod/food_classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tf_model.h5 from AdamCod/food_classifier: direct link, hf CLI and curl.
- Browser
- Download file 344 MB
-
https://huggingface.co/AdamCod/food_classifier/resolve/main/tf_model.h5
- Command line
-
hf download hf://AdamCod/food_classifier/tf_model.h5
-
curl -L -o tf_model.h5 https://huggingface.co/AdamCod/food_classifier/resolve/main/tf_model.h5
344 MB
- Xet hash:
- a4a48393918485e13c773dec315b45f76e0e61abe6c9a8cd0940aeb961df074e
- Size of remote file:
- 344 MB
- SHA256:
- 547d38ed567e24c6a1fb451ff82ea95f6053d0d939e50e7408d54618661de10b
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.