GithubHelp home page GithubHelp logo

gautamkanagaraj / crop_and_weed_detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ravirajsinh45/crop_and_weed_detection

0.0 0.0 0.0 5.74 MB

we made the crop and weed detection model using YOLOV3 on agricultural image data.

License: Apache License 2.0

Jupyter Notebook 99.09% Python 0.91%

crop_and_weed_detection's Introduction

Crop_and_weed_detection

we made the crop and weed detection model using YOLOV3 on agricultural image data.

Problem

Weed is unwanted thing in agriculture. Weed use the nutrients, water ,land and many more thihngs that might have gone to crops.Which result less production of required crop.Farmer often use pesticides to remove weed which also affective but some pesticide may stick with crop and may causs problem for humans.

Data

we using our dataset uploaded on kaggle. This dataset contains 1300 images of sesame crops and different types of weeds with each image labels. Each image is a 512 X 512 color image. Labels for images are in YOLO format. Data on https://www.kaggle.com/ravirajsinh45/crop-and-weed-detection-data-with-bounding-boxes

Some images

sesame crop

weed

How to use this repo?

This Repository is diveded in two part:-

1. Training 
2. Performig detection using pre train model
  1. Training:-

    For traning you have to make Agriculture folder on your google drive, open clone repo and copy all files from Crop_weed_detection_training folder and paste it in google drive.

    Now from drive open crop_weed_detection.ipynb file and you will get all documentation regarding it within the file.

  2. Performig detection using pre train model

    • First of all you need anaconda, if you don't have click here for Download and install.

    • Now open Anaconda Prompt and clone this repo

    (base) C:\Users\user> git clone https://github.com/ravirajsinh45/Crop_and_weed_detection.git
    
    • (Optional) If you get any error like git is not recogize internal command than run below command
        (base) C:\Users\user> pip install git
      
    • change your working directory to clone repo.

      (base) C:\Users\user>cd Crop_and_weed_detection
      
    • After that you have to create environment to install require libraries. Follow the steps:-

      1. open Anaconda Prompt and write below command for install requirements.
         (base) C:\Users\user\Crop_and_weed_detection> conda create -n pytorchenv python=3.7.7
        
      2. After creating environment you have to activate it.
        (base) C:\Users\user\Crop_and_weed_detection> conda activate pytorchenv
        
      3. Now run below command for install liraries
        (pytorchenv) C:\Users\user\Crop_and_weed_detection> pip install -r requirements.txt 
        
    • Now your environment is ready to roar:)

    • Let Open jupyter lab

      (pytorchenv) C:\Users\user\Crop_and_weed_detection>jupyter-lab
      
    • For detection you need weights for network. Due to large file i attaching google drive link. You have to download weight file unless you have your own weights file. click here

    • You have to add weights flie into Crop_and_weed_detection > detection_on_images_pytorch > weights folder.

    • After that open Perform_detection.ipynb file and run all cell. After this you will able to detect crop and weed from images. Explore images from images folder. Cheers:)

Thank You:)

crop_and_weed_detection's People

Contributors

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