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

- Xet hash:
- 3a7f98f25decc8be99e4e331bdb6b155f4fd0ea68e0f42eeaa8f1344421ebdca
- Size of remote file:
- 44.3 kB
- SHA256:
- 0c79c468d1e41ec6edf3cf241d3eddc07ac599a5920692b4778d430e9e213405
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.