A deep learning web application built with TensorFlow and Flask that classifies potato leaf diseases from uploaded images. The app predicts whether the leaf is:
- Early Blight š
- Late Blight š§«
- Healthy ā
- Image upload and real-time prediction
- Clean, responsive frontend with CSS styling
- Background image with blur effect
- Trained on custom dataset using Convolutional Neural Networks
- Outputs the disease class only (no probability/confidence)
- Input shape:
256x256x3 - 6 Conv2D layers with ReLU and MaxPooling
- Dense layers for final classification (Softmax)
- Model saved as
potatoes.h5
Potato-Disease-Classification/ ā āāā app.py # Flask backend āāā potatoes.h5 # Trained model āāā requirements.txt # Python dependencies ā āāā static/ ā āāā css/ ā ā āāā style.css # App styling ā āāā images/ ā āāā logo.png # Background image ā āāā templates/ ā āāā index.html # Main HTML page ā āāā README.md # Project description
yaml Copy Edit
git clone https://github.com/aliahmad552/Potato-Disease-Classification.git
cd Potato-Disease-Classificationpip install -r requirements.txt
python app.py Now visit: http://127.0.0.1:5000
Custom dataset with three classes (Early Blight, Late Blight, Healthy)
Train/Validation/Test split handled using ImageDataGenerator
Image size: 256x256, normalized between 0-1
Ali Ahmad BS Software Engineering ā The Islamia University of Bahawalpur GitHub: aliahmad552