Instructions to use Mehfooz08/AgriSenAI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use Mehfooz08/AgriSenAI 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://Mehfooz08/AgriSenAI") - Notebooks
- Google Colab
- Kaggle
File size: 1,264 Bytes
3baffba | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | ---
tags:
- computer-vision
- image-classification
- plant-disease
- agriculture
- mobilenetv2
- tensorflow
- keras
---
# π± Plant Disease Detection β MobileNetV2
A deep learning image-classification model for detecting plant diseases from leaf images.
The model uses **MobileNetV2** and was trained on the **PlantVillage dataset** covering 9 crop species and 29 disease/healthy classes.
## π€ Model
**Architecture:** MobileNetV2
**Task:** Image Classification
**Framework:** TensorFlow / Keras
**Number of Classes:** 29
**Crop Species:** 9
### Supported Crops
- Apple
- Bell Pepper
- Cherry
- Corn (Maize)
- Grape
- Peach
- Potato
- Strawberry
- Tomato
## π Model Performance
The model achieved **97%+ testing accuracy** on the evaluation data used in the project.
> Performance reported here is based on the project's test evaluation. Real-world performance may differ when images contain different lighting conditions, backgrounds, camera quality, crop varieties, or diseases not represented in the training dataset.
## π Prediction Pipeline
```text
Plant Leaf Image
β
Image Preprocessing
β
MobileNetV2
β
Feature Extraction
β
Classification
β
Predicted Disease
β
Confidence Score |