Image Classification
Keras
English
agriscan
agriculture
plant-disease
crop-classification
efficientnet
efficientnetb0
tensorflow
plantvillage
Instructions to use Vernard/AgriScan_EfficientNetB0_Two_Classifier_Training with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use Vernard/AgriScan_EfficientNetB0_Two_Classifier_Training with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://Vernard/AgriScan_EfficientNetB0_Two_Classifier_Training") - Notebooks
- Google Colab
- Kaggle
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# AgriScan EfficientNetB0 — Crop and Disease Classification
|
| 2 |
+
|
| 3 |
+
## Overview
|
| 4 |
+
|
| 5 |
+
AgriScan EfficientNetB0 is an experimental agricultural image-classification system developed by CDSA (Cross Domain Solution Architect).
|
| 6 |
+
|
| 7 |
+
The system uses two independently trained EfficientNetB0 classifiers to identify selected crops and predict their corresponding disease or healthy condition.
|
| 8 |
+
|
| 9 |
+
## Model Architecture
|
| 10 |
+
|
| 11 |
+
### 1. Crop Classifier
|
| 12 |
+
|
| 13 |
+
Model file: `agriscan_efficientnet_crop.keras`
|
| 14 |
+
|
| 15 |
+
Predicts one of three crop categories:
|
| 16 |
+
- Maize
|
| 17 |
+
- Potato
|
| 18 |
+
- Tomato
|
| 19 |
+
|
| 20 |
+
### 2. Disease Classifier
|
| 21 |
+
|
| 22 |
+
Model file: `agriscan_efficientnet_disease.keras`
|
| 23 |
+
|
| 24 |
+
Predicts one of 17 crop-disease or healthy classes across maize, potato and tomato.
|
| 25 |
+
|
| 26 |
+
## Training
|
| 27 |
+
|
| 28 |
+
- Architecture: EfficientNetB0
|
| 29 |
+
- Framework: TensorFlow / Keras
|
| 30 |
+
- Input dimensions: 224 × 224 pixels
|
| 31 |
+
- Input format: RGB
|
| 32 |
+
- Dataset: PlantVillage
|
| 33 |
+
- Training method: Transfer learning followed by fine-tuning
|
| 34 |
+
- Evaluation: Held-out test set from the source dataset
|
| 35 |
+
|
| 36 |
+
## Evaluation
|
| 37 |
+
|
| 38 |
+
Evaluation metrics and class-level reports are provided in the repository.
|
| 39 |
+
|
| 40 |
+
Published performance figures should be taken from the completed evaluation artifacts, not assumed from the training process.
|
| 41 |
+
|
| 42 |
+
## Intended Use
|
| 43 |
+
|
| 44 |
+
This model is intended for research, prototyping and testing agricultural image-classification workflows.
|
| 45 |
+
|
| 46 |
+
## Limitations
|
| 47 |
+
|
| 48 |
+
- The classifiers cover only the crop and disease classes represented in training.
|
| 49 |
+
- The model is not guaranteed to identify unfamiliar diseases or distinguish all non-plant images from crop leaves.
|
| 50 |
+
- PlantVillage images may differ from photographs taken under real farming conditions.
|
| 51 |
+
- Predictions should be validated using field data and, where necessary, agricultural expertise.
|
| 52 |
+
|
| 53 |
+
## Development
|
| 54 |
+
|
| 55 |
+
Developed as part of the AgriScan agricultural intelligence initiative by CDSA.
|