This web application classifies plant leaf images into one of 72+ plant diseases using a fine-tuned DenseNet121 model trained with PyTorch.
The frontend allows users to upload a leaf image, and the backend (Flask) serves the modelβs prediction along with disease details, prevention tips, and fertilizer recommendations β all in real time.
- π¬ PyTorch β For building and loading the deep learning model
- π¨ HTML/CSS β User interface
- π Flask β Backend API and model serving
- πΌ Torchvision β For image transforms
- π§ͺ Pillow & NumPy β Image processing & computation
- Upload leaf images from any device
- Real-time prediction using DenseNet
- JSON-based mapping for:
- π Disease details
- πΎ Prevention & treatment
- π± Fertilizer suggestions
- Easy-to-use frontend
- Runs locally or deploys easily