All Projects → Anymake → Drn_cvpr2020

Anymake / Drn_cvpr2020

Licence: gpl-2.0
Code and Dataset for CVPR2020 "Dynamic Refinement Network for Oriented and Densely Packed Object Detection"

Projects that are alternatives of or similar to Drn cvpr2020

Monthofjulia
Some code examples gathered during my Month of Julia.
Stars: ✭ 209 (-1.42%)
Mutual labels:  jupyter-notebook
Noise2self
A framework for blind denoising with self-supervision.
Stars: ✭ 211 (-0.47%)
Mutual labels:  jupyter-notebook
Mdrepo
Repositório para armazenamento de código e notebooks de postagens do blog e cursos.
Stars: ✭ 210 (-0.94%)
Mutual labels:  jupyter-notebook
Image manipulation detection
Paper: CVPR2018, Learning Rich Features for Image Manipulation Detection
Stars: ✭ 210 (-0.94%)
Mutual labels:  jupyter-notebook
Sttn
[ECCV'2020] STTN: Learning Joint Spatial-Temporal Transformations for Video Inpainting
Stars: ✭ 211 (-0.47%)
Mutual labels:  jupyter-notebook
Hindi2vec
State-of-the-Art Language Modeling and Text Classification in Hindi Language
Stars: ✭ 211 (-0.47%)
Mutual labels:  jupyter-notebook
Simplified Deeplearning
Simplified implementations of deep learning related works
Stars: ✭ 2,389 (+1026.89%)
Mutual labels:  jupyter-notebook
Deepconvlstm
Deep learning framework for wearable activity recognition based on convolutional and LSTM recurretn layers
Stars: ✭ 211 (-0.47%)
Mutual labels:  jupyter-notebook
Academy
Ray tutorials from Anyscale
Stars: ✭ 210 (-0.94%)
Mutual labels:  jupyter-notebook
Coloring T Sne
Exploration of methods for coloring t-SNE.
Stars: ✭ 211 (-0.47%)
Mutual labels:  jupyter-notebook
Knowledge Graph Analysis Programming Exercises
Exercises for the Analysis of Knowledge Graphs
Stars: ✭ 208 (-1.89%)
Mutual labels:  jupyter-notebook
Intro Numerical Methods
Jupyter notebooks and other materials developed for the Columbia course APMA 4300
Stars: ✭ 210 (-0.94%)
Mutual labels:  jupyter-notebook
Sc17
SuperComputing 2017 Deep Learning Tutorial
Stars: ✭ 211 (-0.47%)
Mutual labels:  jupyter-notebook
Style transfer
CNN image style transfer 🎨.
Stars: ✭ 210 (-0.94%)
Mutual labels:  jupyter-notebook
Mldl
Machine Learning and Deep Learning Resources
Stars: ✭ 211 (-0.47%)
Mutual labels:  jupyter-notebook
Exercise
exercise for nndl
Stars: ✭ 2,649 (+1149.53%)
Mutual labels:  jupyter-notebook
Algforopt Notebooks
Jupyter notebooks associated with the Algorithms for Optimization textbook
Stars: ✭ 210 (-0.94%)
Mutual labels:  jupyter-notebook
Best Of Jupyter
🏆 A ranked list of awesome Jupyter Notebook, Hub and Lab projects (extensions, kernels, tools). Updated weekly.
Stars: ✭ 200 (-5.66%)
Mutual labels:  jupyter-notebook
Deeplearning
Some practices about deep learning
Stars: ✭ 210 (-0.94%)
Mutual labels:  jupyter-notebook
Graph convolutional lstm
Traffic Graph Convolutional Recurrent Neural Network
Stars: ✭ 210 (-0.94%)
Mutual labels:  jupyter-notebook

DRN and SKU110K-R

Xingjia Pan, Yuqiang Ren, Kekai Sheng, Weiming Dong, Haolei Yuan, Xiaowei Guo, Chongyang Ma, Changsheng Xu

Work in process.

Dynamic Refinement Network for Oriented and Densely Packed Object Detection[Paper Link]

Figure 1. Overall framework of our Dynamic Refinement Network. The backbone network is followed by two modules, i.e., feature selection module (FSM) and dynamic refinement heads (DRHs). FSM selects the most suitable features by adaptively adjusting receptive fields. The DRHs dynamically refine the predictions in an object-aware manner.

SKU110K-R

Figure 2. Some sample images from SKU110K. The images in top row are annotated with horizontal bounding boxes while the images in bottom row are with oriented bounding boxes.

To use SKU110K-R,

  1. Download the original SKU110K data set from website and extract images

  2. Generate SKU110K-R using our rotate augment script

   python rotate_augment.py path/to/images
  1. Download the annotations for SKU110K-R from website

The annotation is in coco format.

Evaluation tools

cocoapi_ro

we provide a variant of cocoapi for evaluation of rotated bounding boxes.

  1. Install cocoapi_ro(similar with cocoapi)
   cd PythonAPi
   make
  1. Replace pycocotools with pycocotools_ro

FROM

   import pycocotools.coco as coco
   from pycocotools.cocoeval import COCOeval

TO

   import pycocotools_ro.coco as coco
   from pycocotools_ro.cocoeval import COCOeval
  1. Update the evaluation code.

FROM

   coco_eval = COCOeval(self.coco, coco_dets, "bbox")

TO

   coco_eval = COCOeval(self.coco, coco_dets, "rbbox")
   coco_eval.params.maxDets = [1, 10, 300]

angle_nms

we provide angle_nms for nms of rotated bounding box in post process.

   from angle_nms.angle_soft_nms import angle_soft_nms
   # Example
   result_after_nms = angle_soft_nms(all_dets, Nt=0.5, method=1,threshold=0.05)
   # all_dets: detection results
   # Nt: iou threshold 
   # method: 1, linear soft nms; 2, gaussian soft nms; other, nms
   # threshold: the minimum confidence valu to retain the detection bbox

Rotation Conv Layer

  1. To use the rotation conv layer, you need to install dcn_v2 first,
    # git clone -b pytorch_1.0.0 https://github.com/chengdazhi/Deformable-Convolution-V2-PyTorch.git
    # mv Deformable-Convolution-V2-PyTorch DCNv2
    cd DCNv2
    ./make.sh
  1. Then you need to modify the import path of dcnv2 in rotation_conv_utils.py.
from path\to\DCNv1.modules.modulated_deform_conv import ModulatedDeformConv
from path\to\DCNv2.functions.modulated_deform_conv_func import ModulatedDeformConvFunction

  1. We provide a simple example to use the rotation conv layer in test_rcl.py.

Citation

If you find this project useful for your research, please use the following BibTeX entry.

@article{pan2020dynamic,
  title={Dynamic Refinement Network for Oriented and Densely Packed Object Detection},
  author={Xingjia Pan and Yuqiang Ren and Kekai Sheng and Weiming Dong and Haolei Yuan and Xiaowei Guo and Chongyang Ma and Changsheng Xu},
  booktitle={CVPR},
  pages={1--8},
  year={2020}
}

Contacts

If you have any questions about our work, please do not hesitate to contact us by emails.
Xingjia Pan: [email protected]
Yuqiang Ren: [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].