Downloads · 30 days
2
5% of all-time downloads
Khalid-Hamad/plant-seedlings-classifier
plant-seedlings-classifier is a image classification model from Khalid-Hamad. Use it when you need a label for an image. It is set up for keras. The card lists the license as cc-by-sa-4.0.
A CNN model that classifies 12 species of plant seedlings, trained on the Plant Seedlings Dataset.
Downloads · 30 days
2
5% of all-time downloads
All-time downloads
43
Public
Repo size
1.9 MB
Likes
0
Public
Click a slice to open those files.
.keras1.9 MB · 100%
From the Hugging Face model README
A CNN model that classifies 12 species of plant seedlings, trained on the Plant Seedlings Dataset.
| Black-grass | Charlock | Cleavers |
| Common Chickweed | Common wheat | Fat Hen |
| Loose Silky-bent | Maize | Scentless Mayweed |
| Shepherds Purse | Small-flowered Cranesbill | Sugar beet |
Conv2D(32, 5×5) → BatchNorm → MaxPool → Dropout(0.2)
Conv2D(64, 5×5) → BatchNorm → MaxPool → Dropout(0.3)
Conv2D(64, 3×3) → BatchNorm → MaxPool → Dropout(0.4)
Conv2D(64, 3×3) → BatchNorm → MaxPool → Dropout(0.5)
GlobalMaxPooling2D → Dense(256) → Dropout(0.5) → Dense(12, softmax)
import numpy as np
import tensorflow as tf
model = tf.keras.models.load_model("plant_seedling_model.keras")
class_names = np.load("class_names.npy", allow_pickle=True)
plant_seedling_model.keras — Trained Keras modelclass_names.npy — Array of 12 class label stringsTrained on Google Colab with GPU. See the full training notebook at github.com/Khalid-Hamad/seedling-species-cv-cnn.
Model weights: educational use. Dataset: CC BY-SA 4.0.