Run this model with HF Jobs
Run rishabh914/leaf-disease-detection on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/rishabh914/leaf-disease-detection. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/rishabh914/leaf-disease-detection on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use rishabh914/leaf-disease-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use rishabh914/leaf-disease-detection 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://rishabh914/leaf-disease-detection") - Notebooks
- Google Colab
- Kaggle
Leaf Disease Detection Model
This model can detect diseases in plant leaves using EfficientNetB3 architecture.
Usage
from huggingface_hub import hf_hub_download
import tensorflow as tf
import json
# Download model and class indices
model_path = hf_hub_download(repo_id="Rvish-glitch/leaf-disease-detection", filename="final_model.h5")
indices_path = hf_hub_download(repo_id="Rvish-glitch/leaf-disease-detection", filename="class_indices.json")
# Load model
model = tf.keras.models.load_model(model_path)
# Load class indices
with open(indices_path, 'r') as f:
class_indices = json.load(f)
Classes
The model can detect various plant diseases across different crops including tomato, potato, apple, and corn.