Giter Club home page Giter Club logo

potato-disease-classification's Introduction

Banner1 Banner2 Banner2 Banner2

Potato Leaf Disease Classification (Using VGG16)


Potato leaf disease classification using VGG-16 is a cutting-edge application of deep learning technology in agriculture. VGG-16 is a powerful convolutional neural network (CNN) architecture that has shown remarkable success in image classification tasks. In this context, VGG-16 is trained to identify and classify various types of potato leaf diseases based on the visual patterns and characteristics present in leaf images. By leveraging its deep learning capabilities, VGG-16 can accurately distinguish between different diseases such as late blight, early blight, helping farmers and researchers make informed decisions about disease management and crop protection. This innovative approach holds great promise for enhancing crop yield and reducing losses in potato farming.

Data Collection


For Google Colab

Step 1: Get kaggle.json from your kaggle account. profile>account>create new token. kaggle.json file will be downloaded

Step 2: Run following commands

! pip install -q kaggle
from google.colab import files
files.upload()
! mkdir ~/.kaggle
! cp kaggle.json ~/.kaggle/
! chmod 600 ~/.kaggle/kaggle.json
! kaggle datasets list

Step 3: Upload kaggle.json file on Google Colab

Step 4: Run following commands

!kaggle datasets download -d muhammadardiputra/potato-leaf-disease-dataset

Step 5:

!unzip potato-leaf-disease-dataset.zip

For Local Machine

Download directly from: https://www.kaggle.com/datasets/muhammadardiputra/potato-leaf-disease-dataset

Data Features


The data consits of potato leaf images divided into 3 classes [potato_early_blight , potato_late_blight, potato_healthy]. Each image is of size 256 x 256 x 3
(height, width, channels[RGB]) Note: This is for reprensentation purpose only not a real image

early_blight late_blight healthy

VGG16 Architecture


Image 1:

VGG16 Architecture

VGG16 is a convolutional neural network (CNN) that is 16 layers deep. It was developed by the Visual Geometry Group (VGG) at the University of Oxford in 2014. VGG16 is one of the most popular CNN architectures for image classification. It has been used to achieve state-of-the-art results on a variety of image classification benchmarks, including the ImageNet Large Scale Visual Recognition Challenge (ILSVRC).

The VGG16 architecture consists of 16 convolutional layers and 3 fully connected layers. The convolutional layers use a 3x3 kernel size and a stride of 1 pixel. The first 13 convolutional layers use a padding of 1 pixel, while the last 3 convolutional layers use a padding of 0 pixels. The fully connected layers have 4096 neurons each.

VGG16 is a very deep CNN, which means that it has a large number of parameters to learn. This makes it computationally expensive to train, but it also allows the network to learn more complex features from the images.

VGG16 can be used for a variety of image classification tasks, including object detection, face recognition, and scene classification. It can also be used for image segmentation and image retrieval.

Here are some of the key features of VGG16:

  • It is a deep CNN with 16 layers.
  • It uses a 3x3 kernel size and a stride of 1 pixel for the convolutional layers.
  • It has a padding of 1 pixel for the first 13 convolutional layers and a padding of 0 pixels for the last 3 convolutional layers.
  • It has 4096 neurons in each of the fully connected layers.
  • It is a very powerful image classification model that can achieve state-of-the-art results on a variety of benchmarks.

Training Parameters

Total params: 23,104,323
Trainable params: 23,104,323
Non-trainable params: 0

Optimizer Parameters

optimizer='adam',
loss='categorical_crossentropy',
metrics=['accuracy']

Authors

potato-disease-classification's People

Contributors

ashishyadav2 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.