Instructions to use rmdzav/sugarcane-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use rmdzav/sugarcane-models with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://rmdzav/sugarcane-models") - Notebooks
- Google Colab
- Kaggle
Download cnn_classification_report.json from rmdzav/sugarcane-models: direct link, hf CLI and curl.
- Browser
- Download file 1.82 kB
-
https://huggingface.co/rmdzav/sugarcane-models/resolve/main/cnn_classification_report.json
- Command line
-
hf download hf://rmdzav/sugarcane-models/cnn_classification_report.json
-
curl -L -o cnn_classification_report.json https://huggingface.co/rmdzav/sugarcane-models/resolve/main/cnn_classification_report.json
1.82 kB
| { | |
| "Banded Chlorosis": { | |
| "precision": 0.8840579710144928, | |
| "recall": 0.8591549295774648, | |
| "f1-score": 0.8714285714285714, | |
| "support": 71.0 | |
| }, | |
| "Brown Spot": { | |
| "precision": 0.99609375, | |
| "recall": 0.9845559845559846, | |
| "f1-score": 0.9902912621359223, | |
| "support": 259.0 | |
| }, | |
| "BrownRust": { | |
| "precision": 0.9, | |
| "recall": 0.9574468085106383, | |
| "f1-score": 0.9278350515463918, | |
| "support": 47.0 | |
| }, | |
| "Dried Leaves": { | |
| "precision": 0.9272727272727272, | |
| "recall": 1.0, | |
| "f1-score": 0.9622641509433962, | |
| "support": 51.0 | |
| }, | |
| "Grassy shoot": { | |
| "precision": 1.0, | |
| "recall": 1.0, | |
| "f1-score": 1.0, | |
| "support": 52.0 | |
| }, | |
| "Healthy Leaves": { | |
| "precision": 0.9558823529411765, | |
| "recall": 1.0, | |
| "f1-score": 0.9774436090225563, | |
| "support": 65.0 | |
| }, | |
| "Pokkah Boeng": { | |
| "precision": 0.6666666666666666, | |
| "recall": 0.9545454545454546, | |
| "f1-score": 0.7850467289719626, | |
| "support": 44.0 | |
| }, | |
| "Sett Rot": { | |
| "precision": 1.0, | |
| "recall": 1.0, | |
| "f1-score": 1.0, | |
| "support": 98.0 | |
| }, | |
| "Viral Disease": { | |
| "precision": 0.9183673469387755, | |
| "recall": 0.9, | |
| "f1-score": 0.9090909090909091, | |
| "support": 100.0 | |
| }, | |
| "Yellow Leaf": { | |
| "precision": 1.0, | |
| "recall": 0.9553072625698324, | |
| "f1-score": 0.9771428571428571, | |
| "support": 179.0 | |
| }, | |
| "smut": { | |
| "precision": 0.7878787878787878, | |
| "recall": 0.5531914893617021, | |
| "f1-score": 0.65, | |
| "support": 47.0 | |
| }, | |
| "accuracy": 0.9437314906219151, | |
| "macro avg": { | |
| "precision": 0.9123836002466024, | |
| "recall": 0.924018357192825, | |
| "f1-score": 0.9136857400256879, | |
| "support": 1013.0 | |
| }, | |
| "weighted avg": { | |
| "precision": 0.9473642944537299, | |
| "recall": 0.9437314906219151, | |
| "f1-score": 0.9432222483556969, | |
| "support": 1013.0 | |
| } | |
| } |