Home

Awesome

<div align="center"> <h1>Featurized Query R-CNN</h1>

Wenqiang Zhang*, Tianheng Cheng*, <a href="https://xinggangw.info/">Xinggang Wang</a><sup><span></span></sup>, Shaoyu Chen, <a href="https://scholar.google.com/citations?user=pCY-bikAAAAJ&hl=zh-CN">Qian Zhang</a>, <a href="http://eic.hust.edu.cn/professor/liuwenyu/"> Wenyu Liu</a> </br> (<span>*</span>: equal contribution, <span></span>: corresponding author)

<!-- <div><a href="">[Project Page]</a>(comming soon)</div> --> <div><a href="https://arxiv.org/abs/2206.06258">[arXiv]</a></div> <img src="figs/tradeoff.png" height="360"> </div>

News

Introduction

The query mechanism introduced in the DETR method is changing the paradigm of object detection and recently there are many query-based methods have obtained strong object detection performance. However, the current query-based detection pipelines suffer from the following two issues. Firstly, multi-stage decoders are required to optimize the randomly initialized object queries, incurring a large computation burden. Secondly, the queries are fixed after training, leading to unsatisfying generalization capability. To remedy the above issues, we present featurized object queries predicted by a query generation network in the well-established Faster R-CNN framework and develop a Featurized Query R-CNN. Extensive experiments on the COCO dataset show that our Featurized Query R-CNN obtains the best speed-accuracy trade-off among all R-CNN detectors, including the recent state-of-the-art Sparse R-CNN detector. 1654667943617

Installation and Training

Our methods are based on detectron2, please refer to here for more details.

Install the detectron2:

git clone https://github.com/facebookresearch/detectron2.git

python setup.py build develop

For training, run:

python train_net.py --config-file <config-file> --num-gpus <num-gpus>

Main Results

ModelBackboneEpochAPFPSWeights
Featurized QR-CNN (100 Queries)ResNet-503641.326Google Drive
Cascade Featurized QR-CNN (100 Queries)ResNet-503643.024Google Drive
Cascade Featurized QR-CNN (300 Queries)ResNet-503644.624Google Drive
Cascade Featurized QR-CNN (100 Queries)ResNet-1013643.918Google Drive
Cascade Featurized QR-CNN (300 Queries)ResNet-1013645.817Google Drive

Acknowledgements

Our implementation is based on detectron2 and Sparse R-CNN, we thank for their open-source code.

License

Featurized Query R-CNN is released under the MIT Licence.

Citation

If you find Featurized Query R-CNN is useful in your research or applications, please consider giving us a star 🌟 and citing it by the following BibTeX entry.

@article{FeaturizedQR-CNN,
  title={Featurized Query R-CNN},
  author={Zhang, Wenqiang and Cheng, Tianheng and Wang, Xinggang and Chen, Shaoyu and Zhang, Qian and Liu, Wenyu},
  journal={arXiv preprint arXiv:2206.04584},
  year={2022}
}