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