This project is a final year project focused on detecting diseases in tomato plants using a Convolutional Neural Network (CNN) implemented in a sequential model. The web application allows users to upload images of tomato leaves, and the model predicts the type of disease present from a total of 11 possible classes.
- Project Overview
- Technologies Used
- Installation
- Usage
- Model Details
- Web Application Details
- Contributing
- License
The Tomato Plant Disease Detection project is designed to assist farmers and agricultural professionals by automating the process of identifying diseases in tomato plants. The application leverages machine learning to provide quick and accurate disease classification.
- Machine Learning Framework: PyTorch
- Web Framework: Django
- Model Architecture: Convolutional Neural Network (CNN) - Sequential Model
- Programming Languages: Python
- Additional Libraries: NumPy, Pandas, Matplotlib, Pillow
To set up and run the project locally, follow these steps:
-
Clone the Repository
Copy code
git clone https://github.com/a-bibash/PlantProject.git -
Navigate to the Project Directory
Copy code
cd PlantProject -
Create a Virtual Environment
Copy code
python -m venv venv -
Activate the Virtual Environment
-
On Windows:
-
Copy code
venv\Scripts\activate -
On macOS/Linux:
Copy code
source venv/bin/activate
-
-
Install Dependencies
Copy code
pip install -r requirements.txt -
Run Database Migrations
Copy code
python manage.py migrate -
Start the Django Development Server
Copy code
python manage.py runserverThe web application will be available at
http://127.0.0.1:8000/.
- Open the web application in your browser.
- Navigate to the image upload section.
- Upload an image of a tomato leaf.
- The application will process the image and display the predicted disease type from the 11 possible classes.
- Architecture: Sequential Convolutional Neural Network
- Number of Classes: 11
- Training Framework: PyTorch
- Dataset:
-With Background dataset :
https://www.kaggle.com/datasets/bibashadhikari/renamed-Background removed dataset :https://www.kaggle.com/datasets/bibashadhikari/datasetwithoutbg
The CNN model was trained on a dataset of tomato leaf images and evaluated for accuracy. The model predicts the type of disease based on the visual features of the leaf.
The web application is built using Django and serves as the interface for users to interact with the machine learning model. It allows users to upload images and receive predictions about the tomato leaf disease.
If you wish to contribute to this project, please fork the repository and submit a pull request with your changes. Make sure to follow the coding standards and include relevant tests.
This project is licensed under the MIT License - see the LICENSE file for details.