Git Product home page Git Product logo

dct's Introduction

DCT

This repository includes the official implementation of the paper:

Dynamic Color Transform Networks for Wheat Head Detection

Plant Phenomics, 2022

& Dynamic Color Transform for Wheat Head Detection

International Conference on Computer Vision Workshops (ICCVW), 2021

Chengxin Liu, Kewei Wang, Hao Lu, Zhiguo Cao

Huazhong University of Science and Technology, China

Highlights

  • DCT is intuitive and steerable
  • We won 2nd Place in Global Wheat Challenge 2021 based on DCT
  • DCT is also applicable to other vision tasks, e.g., crowd counting

Installation

Python Pytorch

  • Set up environment
# env
conda create -n dct python=3.7
conda activate dct

# install pytorch
conda install pytorch==1.10.0 torchvision==0.11.0 -c pytorch -c conda-forge
  • Install
# clone 
git clone https://github.com/cxliu0/DCT.git
cd DCT

# install dependecies
pip install -r requirements/build.txt

Data Preparation

DCT
├── data
│    ├── gwhd_2021
│         ├── images
│         ├── competition_test.csv
│         ├── competition_train.csv
│         ├── competition_val.csv
├── configs
├── models
├── ...
  • Preprocess data
python preprocess_data.py

Training

We follow a two-step training stretegy.

  • Step 1: train a baseline Scaled-YOLOv4 model
sh train_baseline.sh
  • Step 2: fix the weights of the baseline model, and train DCT:
sh train_dct.sh

Evaluation

We implement the evaluation of ADA following Global Wheat Challenge 2021 (GWC 2021). Note that the tested ADA of this repository seems slightly lower than the official one.

  • Modify test_ADA.sh

weights: modify it to the path of your locally trained model

Alternatively, pretrained DCT model is available at Google Drive.

  • Run
sh test_ADA.sh

Citation

If you find this work or code useful for your research, please consider citing:

@article{liu2022dct,
  title = {Dynamic Color Transform Networks for Wheat Head Detection},
  author = {Chengxin Liu  and Kewei Wang  and Hao Lu  and Zhiguo Cao },
  journal = {Plant Phenomics},
  year={2022}
}

@INPROCEEDINGS{liu2021dct,
  author={Liu, Chengxin and Wang, Kewei and Lu, Hao and Cao, Zhiguo},
  booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision Workshops (ICCVW)}, 
  title={Dynamic Color Transform for Wheat Head Detection}, 
  year={2021},
  pages={1278-1283},
}

Acknowlegdement

This repository is based on Scaled-YOLOv4.

dct's People

Contributors

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