Downloads · 30 days
4
8% of all-time downloads
horshe/agrisentry-rice-disease-classifier
agrisentry-rice-disease-classifier is a machine learning model from horshe. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for tensorflow. The card lists the license as mit.
A CNN-based disease classification model for rice crops, part of the AgriSentry diagnostic system.
Downloads · 30 days
4
8% of all-time downloads
All-time downloads
52
Public
Repo size
9.5 MB
Likes
0
Public
Click a slice to open those files.
.h59.5 MB · 100%
From the Hugging Face model README
A CNN-based disease classification model for rice crops, part of the AgriSentry diagnostic system.
This is a TensorFlow CNN model trained to classify diseases in rice plants. It identifies three common rice diseases and healthy crop status.
from huggingface_hub import InferenceClient
client = InferenceClient(model="your-username/agrisentry-rice-disease-classifier")
# Load image and send for inference
with open("rice_leaf.jpg", "rb") as f:
result = client.image_classification(f)
print(result)
import tensorflow as tf
from PIL import Image
import numpy as np
model = tf.keras.models.load_model('rice_cnn.h5')
img = Image.open('rice_leaf.jpg').resize((224, 224))
img_array = np.array(img) / 255.0
prediction = model.predict(np.expand_dims(img_array, axis=0))
MIT License - See LICENSE file for details
If you use this model, please cite:
@model{agrisentry_rice_2026,
title={AgriSentry Rice Disease Classifier},
author={AgriSentry Team},
year={2026}
}
This model is a diagnostic tool and should not replace professional agricultural consultation. Always verify results with domain experts.