Skip to content

Tointech/Potato-disease-classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Potato Disease Classification

Training the Model

  1. Download the data from kaggle.
  2. Only keep folders related to Potatoes.
  3. Run Jupyter Notebook in Browser.
jupyter notebook
  1. Run all the cells
  2. Copy the model generated and save it with the version number in the models folder.

Running the API

Using FastAPI

  1. Get inside api folder
cd Api
  1. Run the FastAPI Server using uvicorn
uvicorn main:app --reload --host localhost
  1. Your API is now running at localhost:8000

Setup for ReactJS

  1. Install Nodejs (Setup instructions)
  2. Install NPM (Setup instructions)
  3. Install dependencies
cd Models
npm install --from-lock-json
npm audit fix
  1. Copy .env.example as .env.

  2. Change API url in .env.

Running the Website

  1. Get inside api folder
cd Website
  1. Copy the .env.example as .env and update REACT_APP_API_URL to API URL if needed.
  2. Run the frontend
npm run start

About

Potato Disease Classification based on Kaggle Dataset

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published