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