Giter Club home page Giter Club logo

iou-enhanced-attention's Introduction

IoU-Enhanced-Attention

IoU-Enhanced Attention for End-to-End Task Specific Object Detection

License: MIT

Paper

IoU-Enhanced Attention for End-to-End Task Specific Object Detection

Models

Method box AP download
R50_100pro_3x 44.4 model
R50_300pro_3x 46.4 model
R101_100pro_3x 45.6 model
R101_300pro_3x 47.5 model

Models are available in Baidu Drive by code jysg.

Installation

The codebases are built on top of Detectron2 and SparseR-CNN.

Requirements

  • Linux or macOS with Python ≥ 3.6
  • PyTorch ≥ 1.5 and torchvision that matches the PyTorch installation. You can install them together at pytorch.org to make sure of this
  • OpenCV is optional and needed by demo and visualization

Steps

  1. Install and build libs
git clone https://github.com/bravezzzzzz/IoU-Enhanced-Attention.git
cd IoU-Enhanced-Attention
python setup.py build develop
  1. Link coco dataset path to IoU-Enhanced-Attention/datasets/coco
mkdir -p datasets/coco
ln -s /path_to_coco_dataset/annotations datasets/coco/annotations
ln -s /path_to_coco_dataset/train2017 datasets/coco/train2017
ln -s /path_to_coco_dataset/val2017 datasets/coco/val2017
  1. Train
python projects/SparseRCNN/train_net.py --num-gpus 8 \
    --config-file projects/SparseRCNN/configs/sparsercnn.res50.100pro.3x.yaml
  1. Evaluate
python projects/SparseRCNN/train_net.py --num-gpus 8 \
    --config-file projects/SparseRCNN/configs/sparsercnn.res50.100pro.3x.yaml \
    --eval-only MODEL.WEIGHTS path/to/model.pth
  1. Visualize
python demo/demo.py\
    --config-file projects/SparseRCNN/configs/sparsercnn.res50.100pro.3x.yaml \
    --input path/to/images --output path/to/save_images --confidence-threshold 0.4 \
    --opts MODEL.WEIGHTS path/to/model.pth

Citing

If you use this code for your research, please cite

@article{zhao2022iou,
  title={IoU-Enhanced Attention for End-to-End Task Specific Object Detection},
  author={Zhao, Jing and Wu, Shengjian and Sun, Li and Li, Qingli},
  journal={arXiv preprint arXiv:2209.10391},
  year={2022}
}

iou-enhanced-attention's People

Contributors

bravezzzzzz avatar

Stargazers

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

Watchers

 avatar

Forkers

cv-det

iou-enhanced-attention's Issues

YOLO

Great works! Can I apply it to YOLOv5? How can I use it.

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.