Coder Social home page Coder Social logo

hic-yolov5's Introduction

HIC-Yolov5

This repo contains the code for the HIC-YOLOv5, the original paper is:

HIC-YOLOv5: Improved YOLOv5 For Small Object Detection
Shiyi Tang, Fang Yini, Shu Zhang
[Paper]

To get started

1. Requirements

Run pip install -r requirements.txt in terminal.

2. Prepare Visdrone-2019 dataset

(a) You can download the dataset from https://github.com/VisDrone/VisDrone-Dataset#task-1-object-detection-in-images.

(b) Convert data form to Yolo by running visDrone2yolov5.py (you may need to change the dir).

We suppose the data directory is constructed as

Your project name
├── datasets
|   ├── VisDrone2019
|   |   └── VisDrone2019-DET-train
            └── annotations
            └── images
            └── labels
|   |   └── VisDrone2019-DET-val
            └── annotations
            └── images
            └── labels
|   |   └── VisDrone2019-DET-test-dev
            └── annotations
            └── images
            └── labels
├── yolov5-6.0

(c) Modify path args in data/VisDrone.yaml .

3. Train the model

Modify args in train.py. In HIC-Yolov5, some args are set as follows:

  • --weights: yolov5s.pt
  • -cfg: models/yolov5s-p2-involution-cbam.yaml
  • --hyp: data/hyps/hyp.scratch-high.yaml

4. Evaluate the model

Modify args in val.py.

  • --weights: the best.pt file in your result folder.
  • --task: can be val or test.

Cite

If you find this work useful in your research, please cite the paper:

@misc{tang2023hicyolov5,
      title={HIC-YOLOv5: Improved YOLOv5 For Small Object Detection}, 
      author={Shiyi Tang and Yini Fang and Shu Zhang},
      year={2023},
      eprint={2309.16393},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Contact

My email: [email protected]

hic-yolov5's People

Contributors

jacoo-ai avatar ptn407 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.