Instructions to use Marconcini/leafscan-convnext-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use Marconcini/leafscan-convnext-tiny with timm:
import timm model = timm.create_model("hf-hub:Marconcini/leafscan-convnext-tiny", pretrained=True) - Notebooks
- Google Colab
- Kaggle
Add ONNX exports (fp32, int8 recalibrated) for the in-browser demo (code @ 54b1aaf)
a2fca43 verified Download config.json from Marconcini/leafscan-convnext-tiny: direct link, hf CLI and curl.
- Browser
- Download file 1.64 kB
-
https://huggingface.co/Marconcini/leafscan-convnext-tiny/resolve/main/config.json
- Command line
-
hf download hf://Marconcini/leafscan-convnext-tiny/config.json
-
curl -L -o config.json https://huggingface.co/Marconcini/leafscan-convnext-tiny/resolve/main/config.json
1.64 kB
| { | |
| "model_name": "convnext_tiny.fb_in22k_ft_in1k", | |
| "classes": [ | |
| "Apple___Apple_scab", | |
| "Apple___Black_rot", | |
| "Apple___Cedar_apple_rust", | |
| "Apple___healthy", | |
| "Blueberry___healthy", | |
| "Cherry_(including_sour)___Powdery_mildew", | |
| "Cherry_(including_sour)___healthy", | |
| "Corn_(maize)___Cercospora_leaf_spot Gray_leaf_spot", | |
| "Corn_(maize)___Common_rust_", | |
| "Corn_(maize)___Northern_Leaf_Blight", | |
| "Corn_(maize)___healthy", | |
| "Grape___Black_rot", | |
| "Grape___Esca_(Black_Measles)", | |
| "Grape___Leaf_blight_(Isariopsis_Leaf_Spot)", | |
| "Grape___healthy", | |
| "Orange___Haunglongbing_(Citrus_greening)", | |
| "Peach___Bacterial_spot", | |
| "Peach___healthy", | |
| "Pepper,_bell___Bacterial_spot", | |
| "Pepper,_bell___healthy", | |
| "Potato___Early_blight", | |
| "Potato___Late_blight", | |
| "Potato___healthy", | |
| "Raspberry___healthy", | |
| "Soybean___healthy", | |
| "Squash___Powdery_mildew", | |
| "Strawberry___Leaf_scorch", | |
| "Strawberry___healthy", | |
| "Tomato___Bacterial_spot", | |
| "Tomato___Early_blight", | |
| "Tomato___Late_blight", | |
| "Tomato___Leaf_Mold", | |
| "Tomato___Septoria_leaf_spot", | |
| "Tomato___Spider_mites Two-spotted_spider_mite", | |
| "Tomato___Target_Spot", | |
| "Tomato___Tomato_Yellow_Leaf_Curl_Virus", | |
| "Tomato___Tomato_mosaic_virus", | |
| "Tomato___healthy" | |
| ], | |
| "img_size": 224, | |
| "temperature": 0.8288379907608032, | |
| "threshold": 0.7529807090759277, | |
| "threshold_target_accuracy": 0.9, | |
| "trained_on": "PlantVillage, then 85% of PlantDoc train", | |
| "onnx_int8": { | |
| "file": "model_int8.onnx", | |
| "temperature": 0.8375558853149414, | |
| "threshold": 0.747735857963562 | |
| } | |
| } |