Downloads · 30 days
2
6% of all-time downloads
Adi2912/DenseNet169_Mendeley
DenseNet169_Mendeley is a image classification model from Adi2912. Use it when you need a label for an image. It is set up for keras. The card lists the license as apache-2.0.
This model is a fine-tuned DenseNet169 CNN trained for potato leaf disease classification on the Mendeley Potato Disease Dataset. The model is designed to detect and classify 7 different potato plant disease categorie…
Downloads · 30 days
2
6% of all-time downloads
All-time downloads
34
Public
Repo size
253 MB
Likes
0
Public
Click a slice to open those files.
.keras253 MB · 100%
From the Hugging Face model README
This model is a fine-tuned DenseNet169 CNN trained for potato leaf disease classification on the Mendeley Potato Disease Dataset. The model is designed to detect and classify 7 different potato plant disease categories using leaf images.
.keras (Keras 3 format)| Class | Precision | Recall | F1-Score | Support |
|---|---|---|---|---|
| Bacteria | 0.97 | 0.98 | 0.98 | 114 |
| Fungi | 0.90 | 0.92 | 0.91 | 150 |
| Healthy | 0.75 | 0.97 | 0.85 | 40 |
| Nematode | 0.92 | 0.79 | 0.85 | 14 |
| Pest | 0.88 | 0.87 | 0.88 | 122 |
| Phytophthora | 0.94 | 0.91 | 0.93 | 69 |
| Virus | 0.98 | 0.89 | 0.93 | 107 |
Test Set Size: 616 images
pip install tensorflow keras
import tensorflow as tf
from tensorflow import keras
from PIL import Image
import numpy as np
# Load the model
model = keras.models.load_model('best.keras')
# Prepare image
image = Image.open('path/to/potato_leaf.jpg')
image = image.resize((224, 224))
image_array = np.array(image) / 255.0
image_array = np.expand_dims(image_array, axis=0)
# Make prediction
predictions = model.predict(image_array)
class_names = ['Bacteria', 'Fungi', 'Healthy', 'Nematode', 'Pest', 'Phytophthora', 'Virus']
predicted_class = class_names[np.argmax(predictions)]
confidence = np.max(predictions)
print(f"Predicted Disease: {predicted_class}")
print(f"Confidence: {confidence:.2%}")
# Coming soon - optimized inference pipeline
This model is intended for:
If you use this model, please cite:
@dataset{mendeley_potato_disease,
title = {Potato Leaf Diseases Dataset},
url = {https://data.mendeley.com/datasets/ptz377bwb8/1}
}
For questions or issues regarding this model:
This model should be used as a reference tool and not as the sole basis for agricultural decisions. Always consult with agricultural experts for accurate disease diagnosis and treatment recommendations.
Model Version: 1.0
Last Updated: May 2026
Framework: TensorFlow 2.x / Keras 3
Python Version: 3.8+