Giter Site home page Giter Site logo

chuxwa / global-wheat-detection-using-yolov5 Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 0.0 14.95 MB

An efficient PyTorch library for Global Wheat Detection using YOLOv5. The project is based on this Kaggle competition Global Wheat Detection (2021).

License: GNU General Public License v3.0

Dockerfile 0.76% Shell 1.08% Python 98.16%

global-wheat-detection-using-yolov5's Introduction

Global-Wheat-Detection

An efficient PyTorch library for Global Wheat Detection using YOLOv5. The project is based on this Kaggle competition Global Wheat Detection (May-Aug 2020).

Here's a description of the prediction task:

In this competition, you’ll detect wheat heads from outdoor images of wheat plants, including wheat datasets from around the globe. Using worldwide data, you will focus on a generalized solution to estimate the number and size of wheat heads. To better gauge the performance for unseen genotypes, environments, and observational conditions, the training dataset covers multiple regions. You will use more than 3,000 images from Europe (France, UK, Switzerland) and North America (Canada). The test data includes about 1,000 images from Australia, Japan, and China.

Installation

  1. Create a virtual environment via conda.

    conda create -n wheat_detection python=3.7
    conda activate wheat_detection
  2. Install torch and torchvision.

    conda install pytorch cudatoolkit=10.1 torchvision -c pytorch
  3. Install requirements.

    pip install -r requirements.txt

Dataset

An overview is available here: https://www.kaggle.com/c/global-wheat-detection/data.

Wheat heads were from various sources:
head
A few labeled images are as shown: (Blue bounding boxes):
head head

I used the following command to obtain the data:

kaggle competitions download -c global-wheat-detection

refer to pre_precessing.ipynb to preprocess the dataset:

  • Handled the noisy labels (too big/small boxes etc.)
  • Stratified 5 fold split based on source

Get Started

The pretrained models are available:

Please refer to YOLOv5.

Results

Following are the results we got from output files while our model was training.

Here is the PR curve of our model:

we deploy our model with flask as web app.

You can try to deploy our model with this repository

Acknowledgement

We thank for the inspiration from YOLOv5 and SENet

If you like our work and use the models for your research, please star our work.

global-wheat-detection-using-yolov5's People

Contributors

aehogan avatar alexstoken avatar anon-artist avatar ayushexel avatar borda avatar chuxwa avatar cristifati avatar dependabot[bot] avatar developer0hye avatar fcakyon avatar glenn-jocher avatar imyhxy avatar jdfr avatar kalenmike avatar kinoute avatar laughing-q avatar lorenzomammana avatar lornatang avatar miknyko avatar nanocode012 avatar olehb avatar samfc10 avatar skalskip avatar taoxiesz avatar tkianai avatar wanghaoyang0106 avatar yeric1789 avatar yxnong avatar zhiqwang avatar zldrobit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

global-wheat-detection-using-yolov5's Issues

关于注意力机制的问题

Search before asking

Question

问一下大佬,我看你在yolov5的Conv模块里面加了senet模块,然后在head部分引入了,问一下这个官方的预训练权重还能用吗,还是必须从头训练?

Additional

No response

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.