- Install Python package
virtualenv
(if it is not installed), usingpip install virtualenv
. - Create a virtual environment in desired directory, using
python3 -m venv my_env
, wheremy_env
is the name of your virtual environment. You can replace it with any other name of your choice. - Now activate your virtual environment using
source my_env/bin/activate
(for Ubuntu) or.\my_env\Scripts\activate
(for Windows). - Clone the files from the repo using
git clone https://github.com/patel-himanshu/Insect-Classifier-Web-App.git
. - Install all the dependencies using
pip install -r requirements.txt
. - Run the web app using
python manage.py runserver
. - The development server starts at
localhost:8000
. Enter the URL in your browser to visit the web app. - To stop the development server, press CTRL + C in the terminal window.
Note: The version of tflite-runtime
library mentioned in the requirements.txt
works only on Linux. You may check whether the newer version of the library is available for Windows or not, or whether you need to use tflite in your project or not.
The Jupyter notebooks of the CNN models used, can be found here.