balavenkatesh3322 / Leaf-Disease-Classifier

A Leaf Disease image classifier built in order to classify leaf diseases using Deep Residual Networks and YOLOv3 object detection algorithm and obtained an accuracy of 96% on Plant-Village Dataset

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Leaf-Disease-Classifier

Deep Dive into Concepts

Disease Classifier

The whole disease classification process is divided into 3 stages as in

  • An input image is initially taken, A You Only Look Once (YOLOv3), object detector is run over the input image to obtain the coordinates of bounding boxes around leaves present in the image if any. The detector divides the input image into a grid and then analyzes every cell to identify features of the target object. The adjacent cells where the features are detected with high confidence are then put together to produce the output of the model.

  • The leaves are then cropped out of the image using the OpenCV library using the given coordinates from the bounding boxes. These extracted images are passed as input to a CNN Classifier which classifies the input into the 8 classes of plants from the dataset.

  • 8 CNN classifiers are trained to identify the diseases of each of the 8 plant classes. The result from stage 2 is used to call the classifier that has been trained to classify the different diseases for that plant. If there are none, the leaf would be classified as 'Healthy'.

  • All the above CNN's are trained on a Deep Residual Network- ResNet-50 Architecture using "Transfer Learning" from the ImageNet weights.
  • Frameworks used : Keras, DarkNet.

How-To-Train:

Check the "how_to_train" folder for detailed explanation on getting started and how to train the each of the models (explained in the next section) are trained.

Find it here : https://github.com/deepakHonakeri05/Leaf-Disease-Classifier/tree/master/how_to_train

Run Model

About

A Leaf Disease image classifier built in order to classify leaf diseases using Deep Residual Networks and YOLOv3 object detection algorithm and obtained an accuracy of 96% on Plant-Village Dataset


Languages

Language:Jupyter Notebook 99.9%Language:Python 0.1%