Instructions to use vivekRahul/animal_classifier_huggingface with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vivekRahul/animal_classifier_huggingface with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="vivekRahul/animal_classifier_huggingface") 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("vivekRahul/animal_classifier_huggingface") model = AutoModelForImageClassification.from_pretrained("vivekRahul/animal_classifier_huggingface", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download images/lion.jpg from vivekRahul/animal_classifier_huggingface: direct link, hf CLI and curl.
- Browser
- Download file 47.1 kB
-
https://huggingface.co/vivekRahul/animal_classifier_huggingface/resolve/main/images/lion.jpg
- Command line
-
hf download hf://vivekRahul/animal_classifier_huggingface/images/lion.jpg
-
curl -L -o lion.jpg https://huggingface.co/vivekRahul/animal_classifier_huggingface/resolve/main/images/lion.jpg
47.1 kB
