tusen-ai / MV2D

Code for "Object as Query: Lifting any 2D Object Detector to 3D Detection"
91 stars 10 forks source link

MV2D

This repo is the official PyTorch implementation for paper:
Object as Query: Lifting any 2D Object Detector to 3D Detection. Accepted by ICCV 2023.

We design Multi-View 2D Objects guided 3D Object Detector (MV2D), which can lift any 2D object detector to multi-view 3D object detection. Since 2D detections can provide valuable priors for object existence, MV2D exploits 2D detectors to generate object queries conditioned on the rich image semantics. These dynamically generated queries help MV2D to recall objects in the field of view and show a strong capability of localizing 3D objects. For the generated queries, we design a sparse cross attention module to force them to focus on the features of specific objects, which suppresses interference from noises.

Preparation

This implementation is built upon PETR, and can be constructed as the install.md.

Train & Inference

cd MV2D

You can train the model following:

bash tools/dist_train.sh configs/mv2d/exp/mv2d_r50_frcnn_two_frames_1408x512_ep24.py 8 

You can evaluate the model following:

bash tools/dist_test.sh configs/mv2d/exp/mv2d_r50_frcnn_two_frames_1408x512_ep24.py work_dirs/mv2d_r50_frcnn_two_frames_1408x512_ep24/latest.pth 8 --eval bbox

Main Results

config mAP NDS checkpoint
MV2D-T_R50_1408x512_ep72 0.453 0.543 download
MV2D-S_R50_1408x512_ep72 0.398 0.470 download

Acknowledgement

Many thanks to the authors of mmdetection3d and petr.

Citation

If you find this repo useful for your research, please cite

@article{wang2023object,
  title={Object as query: Equipping any 2d object detector with 3d detection ability},
  author={Wang, Zitian and Huang, Zehao and Fu, Jiahui and Wang, Naiyan and Liu, Si},
  journal={arXiv preprint arXiv:2301.02364},
  year={2023}
}

Contact

For questions about our paper or code, please contact Zitian Wang(wangzt.kghl@gmail.com).