PestGuard AI: Pest Detection and Pesticide Recommendation System using Deep Learning
Back to ProjectSetup takes about 15 to 20 minutes on a normal laptop. You don't need a GPU because the trained model is already included.
cd Pest-detection-and-pesticides-recommendation-system-main
python -m venv venv
Activate it on Windows:
venv\Scripts\activate
Activate it on macOS or Linux:
source venv/bin/activate
models exists in the project root. If it doesn't, create it:
mkdir models
Copy pest_model.pth into this folder. If you also want to retrain, put the dataset in the pest_dataset folder.
pip install -r requirements.txt
PyTorch is the largest download, so this step can take a few minutes on a slow connection.
.env file, if your copy has one) and paste your OpenWeatherMap key where the weather key is expected. Without the key, the app still works, but the spray advisory won't load live data.
python main.py
http://localhost:5001. Upload a pest image from the upload page to see the detection result, treatments and weather advice.
Use these default credentials to open the admin side, where you can edit pest records and read user queries:
officerofficer123Change the password before showing the project publicly.
pest_model.pth and sits directly inside models/.main.py.python -m pip install --upgrade pip and try again.If you'd rather not handle this yourself, the Project Setup add-on covers installation on your machine and a walkthrough of the code.
Our team is here to assist you with installation and setup.