meta-boy / alex

CNN for plant disease identification college project thing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Steps

  1. Download the dataset

https://www.kaggle.com/vipoooool/new-plant-diseases-dataset

  1. Clone this repo
git clone https://github.com/meta-boy/alex.git && cd alex
  1. Make the input folder
mkdir input
  1. Unzip the dataset in this folder
unzip ~/Downloads/archive.zip -d ./input/
  1. Make the virtual environment
python3.8 -m pip install virtualenv
python3.8 -m venv env
source ./env/bin/activate
  1. Install the dependencies
pip install -r requirements.txt
  1. Build and train the model
python AlexNetModel.py
  1. Move the trained models
mv *.hdf5 ./input/plant-diseases-classification-using-alexnet
  1. Run the server
python app.py
  1. Predict!
curl --request POST \
  --url http://127.0.0.1:5000/predict \
  --header 'Content-Type: multipart/form-data; boundary=---011000010111000001101001' \
  --form image=@/path/to/the/goddamn/image.png

NOTE: If there are missing dependencies then just install them via pip

About

CNN for plant disease identification college project thing


Languages

Language:Python 82.3%Language:HTML 14.0%Language:Dockerfile 2.6%Language:CSS 1.1%