Downloads · 30 days
4
15% of all-time downloads
horshe/agrisentry-maize-disease-classifier
agrisentry-maize-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 maize crops, part of the AgriSentry diagnostic system.
Downloads · 30 days
4
15% of all-time downloads
All-time downloads
27
Public
Repo size
134 MB
Likes
0
Public
Click a slice to open those files.
.h5134 MB · 100%
From the Hugging Face model README
A CNN-based disease classification model for maize crops, part of the AgriSentry diagnostic system.
This is a TensorFlow CNN model trained to classify diseases in maize plants. It identifies three common maize diseases and healthy crop status.
from huggingface_hub import InferenceClient
client = InferenceClient(model="your-username/agrisentry-maize-disease-classifier")
# Load image and send for inference
with open("maize_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('maize_cnn.h5')
img = Image.open('maize_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_maize_2026,
title={AgriSentry Maize 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.