Giter Club home page Giter Club logo

cotton-plant-disease-classification-web-application's Introduction

Cotton Plant Disease Classification Web Application ๐ŸŒฟ

This repository is about an end to end implemetation of deep learning cotton plant disease classification web application using flask.

Dataset

The dataset is downloaded from Kaggle.

  • total size - 152 MB.
  • train - 1951 images
  • validation - 253 images
  • test - 160 images

Classes

  • diseased cotton plant (Fusarium Wilt)
  • diseased cotton leaf (Leaf Curl Disease)
  • fresh cotton plant (Healthy Plant)
  • fresh cotton leaf (Healthy Leaf).

Image resolution - 694x694 pixels
Image format - JPG format

sample images of the dataset

DenseNet Model

Pretrained DenseNet121 model on ImageNet dataset is used. With the help of transfer learning, the last 8 layers of the model are tuned to solve the problem. The model is trained for 20 epoches and the accuracy is 97% on test data.

Training Accuracy and Loss

Confusion Matrix

Demo

Usage

Install dependencies

pip install -r requirements.txt

Training

For model implementation and training, run

densenet121cottondisease.ipynb

Inference

Download model weight - DenseNet121.h5 and store inside /model folder.

For running Flask app,run:

python app.py

Docker

To build docker image, run:

docker build -t cotton .

To run docker image, run:

docker run --name cotton-app cotton

To stop docker:

docker stop cotton-app

Contributors

cotton-plant-disease-classification-web-application's People

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.