Git Product home page Git Product logo

weed_detection's Introduction

Weed Detection using MaskRCNN

You can read a detailed report of this project here and a video tutorial here. Also don't forget to star this repository if this project helped you.

Update Version 1.1 11/06/2020

We have re-annotated the images with few bug fix and improvements in perfomancy and have added a second class to the dataset the model now can differentiate between both weed and crop.

Number of classes:2(crop and weed)+1(background)

Here is an example :

Updates were made in the existing json file and weed.py using VIA tools that we used earlier adding one more class too

Version 1.0

A model based on transfer leaning to classify weeds from other plants and soil.This model does instace segmentaion which give pixel level accuracy.So it can be deployed with a camera attached to UAV's and ground based robots to spray pesticides with pin point accuracy Here is an example:

You can find more example results in the results directory

Dataset Building

Our dataset consists of 202 images in which 183 images were used for training and 19 images for validation. Since we are going to train an instance segmentation model that should have pixel level accuracy it's important to annotate the images properly we have used VGG Image Annotator tool for this purpose.

Model Weights and Tensorboard Logs

Pre-trained weight

Tensorboard Logs

inspect_weed_data.ipynb ---- This notebook visualizes the different pre-processing steps to prepare the training data.

weed_detection1.ipynb ---- This notebook goes in depth into the steps performed to detect and segment objects. It provides visualizations of every step of the pipeline.

weed.py ---- This file is the sub-class of the config.py file in the mrcnn module.You can edit this file to tweak the hyperparameters like leaning rate,no.of iteration etc.You can also add custom callbacks from tf.keras for custom logging into tensorboard

Using Tensorboard for visulatization and model graphs

Once the model completes it's learning.You will be able to download the log file(tf.events) or you can use tensorboard directly in iPython notebook using magic commands

For visualising in system.You must have tensorflow installed and place the log file in logs directory.Open command propmt and type

tensorboard --logdir=logs

This project was made as part of induction to Robotics Interest Group(RIG),National Institute of Technology,Calicut by Ajin J and Abel C Dixon.

Citation

weed_detection's People

Contributors

cascard avatar ajinjayan 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.