Ir para o conteúdo
ModelListadosExterno
Baixar

Maize Disease Model

Part of the MSc thesis: "Application of Deep Learning for Low-Resource Maize Disease Diagnosis in Heterogeneous Agro-Ecological Zones"

TipoOtherVersãoBest val weighted f1 0.919762 epoch 22Cnota

Fonte do modelo

Tipo
Other
Tamanho do arquivo
18,6 MB
Versão
vBest val weighted f1 0.919762 epoch 22
Atualizado
22 de out. de 2026
Fonte
Hugging Face

Descrição da fonte

Maize Disease & Pest Classifier — EfficientNet-B0

Part of the MSc thesis: "Application of Deep Learning for Low-Resource Maize Disease Diagnosis in Heterogeneous Agro-Ecological Zones"

Model details

ArchitectureEfficientNet-B0
Training strategyTwo-phase transfer learning (ImageNet → maize diseases)
Test accuracy90.94%
Weighted F10.9198 (validation)
Classes7
Input size224 × 224

Classes

  1. Healthy
  2. Northern Leaf Blight
  3. Common Rust
  4. Gray Leaf Spot
  5. Ear Rot
  6. Fall Armyworm
  7. Stem Borer

Dataset

Combined from:

  • PlantVillage (4,188 images, 4 classes) — Kaggle
  • Ghana field images (406 images, 3 classes) — custom field-collected dataset

Total: 4,594 images | Class imbalance: 10.75:1

Usage

from huggingface_hub import hf_hub_download
import torch
from src.deployment.inference import MaizeClassifier
from PIL import Image

ckpt = hf_hub_download(repo_id="moro23/maize-disease-model",
                       filename="best_val_weighted_f1_0.919762_epoch_22.pth")
classifier = MaizeClassifier(ckpt, "configs/data_config.yaml")
image = Image.open("maize_leaf.jpg")
print(classifier.predict(image))

Deployment

Live demo: HuggingFace Spaces

Fontes

1 fonte
Hugging FacePrimárioVersão bece26bfe2ae8d67589fc1c39e20f3064cbe1e99
huggingface.co/moro23/maize-disease-model/tree/bece26bfe2ae8d67589fc1c39e20f3064cbe1e99

Verificado 22 de out.

Artefatos de modelo

1 artefato

best_val_weighted_f1_0.919762_epoch_22.pth

pth · 18,6 MB · SHA-256 c96984b65417…8a48 · Hugging Face

Download file

Trechos de fonte

2 trechos

--- language: en license: mit tags: - image-classification - plant-disease - agriculture - efficientnet - transfer-learning - maize - ghana metrics: - accuracy - f1 --- # Maize Disease & Pest Classifier — EfficientNet-B0 Part of the MSc thesis: **"Application of Deep Learning for Low-Resource Maize Disease Diagnosis in Heterogeneous Agro-Ecological Zones"** ## Model details | | | |---|---| | Architecture | EfficientNet-B0 | | Training strategy | Two-phase transfer learning (ImageNet → maize diseases) | | Test accuracy | 90.94% | | Weighted F1 | 0.9198 (validation) | | Classes | 7 | | Input size | 224 × 224 | ## Classes 0. Healthy 1. Northern Leaf Blight 2. Common Rust 3. Gray Leaf Spot 4. Ear Rot 5. Fall Armyworm 6. Stem Borer ## Dataset Combined from: - **PlantVillage** (4,188 images, 4 classes) — [Kaggle](https://www.kaggle.com/datasets/abdallahalidev/plantvillage-dataset) - **Ghana field images** (406 images, 3 classes) — custom field-collected dataset Total: 4,594 images | Class imbalance: 10.75:1 ## Usage ```python from huggingface_hub import hf_hub_download import torch from src.deployment.inference import MaizeClassifier from PIL import Image ckpt = hf_hub_download(repo_id="moro23/maize-disease-model", filename="best_val_weighted_f1_0.919762_epoch_22.pth") classifier = MaizeClassifier(ckpt, "configs/data_config.yaml") image = Image.open("maize_leaf.jpg") print(classifier.predict(image)) ``` ## Deployment Live demo: [HuggingFace Spaces](https://huggingface.co/spaces/moro23/maize-disease-diagnosis)

Source context: 0 downloads · 0 likes · Pipeline image-classification · Repo moro23/maize-disease-model