Image Classification
Keras
computer-vision
banana-disease
plant-disease
deep-learning
DenseNet121
TensorFlow
Gradio
plant-disease-detection
Instructions to use AadityaMathurX/Banana-Disease-Classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use AadityaMathurX/Banana-Disease-Classification with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://AadityaMathurX/Banana-Disease-Classification") - Notebooks
- Google Colab
- Kaggle
π Banana Disease Classificator
This project is a Banana Leaf Disease Classification System that predicts banana plant health and disease categories using Deep Learning.
It provides a Gradio interface where users can upload banana leaf images, and the model will classify them into one of 8 classes with confidence scores.
π¦ Disease Classes
The model can classify banana leaves into the following categories:
- Banana Black Sigatoka Disease
- Banana Bract Mosaic Virus Disease
- Banana Healthy Leaf
- Banana Insect Pest Disease
- Banana Moko Disease
- Banana Panama Disease
- Banana Yellow Sigatoka Disease
π Repository Contents
banana_dataset/β Banana leaf dataset (images categorized into 8 classes)app.pyβ Gradio file for user interface (image upload + prediction)banana_disease.pyβ Model training scriptbanana_disease_densenet121.kerasβ Pre-trained DenseNet121 model (available on Hugging Face)
β‘ How It Works
- Upload a banana leaf image through the Gradio app.
- The trained DenseNet121 model processes the image.
- The system predicts the disease class and displays the confidence score.
π οΈ Setup & Installation
1. Clone Repository
git clone https://github.com/your-username/banana-disease-classificator.git
cd banana-disease-classificator
2. Install Dependencies
pip install -r requirements.txt
3. Training the Model
- If you want to train the model from yourself run the file:
python banana_disease.py
4. Run Gradio App
python app.py
- the app running on http://127.0.0.1:7860/
π₯ Pre-trained Model
If you donβt want to train the model from yourself, you can directly download the pre-trained model from my Hugging Face id:
After downloading the model place the model in the same repository.
Example Prediction (Gradio UI)
Banana Leaf Disease Classifier
Upload a banana leaf image, and our AI model will diagnose the disease.
- Downloads last month
- 13
