Downloads · 30 days
0
NiroshanDb23/chili-disease-vgg16
chili-disease-vgg16 is a image classification model from NiroshanDb23. Use it when you need a label for an image. The card lists the license as apache-2.0.
This is a computer vision model based on the VGG16 architecture, fine-tuned to identify 6 types of chili leaf conditions. To improve generalization over standard models, it utilizes Global Average Pooling and heavy Dr…
Downloads · 30 days
0
Access
Public
Updated Jan 30, 2026
Repo size
117 MB
Likes
0
Public
Click a slice to open those files.
.h5117 MB · 100%
From the Hugging Face model README
This is a computer vision model based on the VGG16 architecture, fine-tuned to identify 6 types of chili leaf conditions. To improve generalization over standard models, it utilizes Global Average Pooling and heavy Dropout (0.7) to prevent overfitting on small datasets.
import tensorflow as tf
# Load the model directly (The Lambda preprocessing layer is included)
model = tf.keras.models.load_model('chili_model_final.h5')
# Predict
img = tf.keras.utils.load_img(path, target_size=(224, 224))
img_array = tf.keras.utils.img_to_array(img)
img_array = tf.expand_dims(img_array, 0)
predictions = model.predict(img_array)