Instructions to use Aftabhussain/Tomato_Leaf_Classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Aftabhussain/Tomato_Leaf_Classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Aftabhussain/Tomato_Leaf_Classifier") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("Aftabhussain/Tomato_Leaf_Classifier") model = AutoModelForImageClassification.from_pretrained("Aftabhussain/Tomato_Leaf_Classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download images/Healthy.JPG from Aftabhussain/Tomato_Leaf_Classifier: direct link, hf CLI and curl.
- Browser
- Download file 18.6 kB
-
https://huggingface.co/Aftabhussain/Tomato_Leaf_Classifier/resolve/main/images/Healthy.JPG
- Command line
-
hf download hf://Aftabhussain/Tomato_Leaf_Classifier/images/Healthy.JPG
-
curl -L -o Healthy.JPG https://huggingface.co/Aftabhussain/Tomato_Leaf_Classifier/resolve/main/images/Healthy.JPG
18.6 kB