Home

Awesome

3D Small Object Detection with Dynamic Spatial Pruning

Introduction

This repo contains PyTorch implementation for paper 3D Small Object Detection with Dynamic Spatial Pruning based on MMDetection3D. Look here for 中文解读.

3D Small Object Detection with Dynamic Spatial Pruning
Xiuwei Xu*, Zhihao Sun*, Ziwei Wang, Hongmin Liu, Jie Zhou, Jiwen Lu

teaser

News

Method

Overall pipeline of DSPDet3D:

overview

Getting Started

For data preparation and environment setup:

For training and evaluation:

Demo

This is a tutorial on how to use class-agnostic DSPDet3D on custom data and visualize the results. Please download checkpoint from HERE and move it to demo folder. We provide two demo scenes from ScanNet and Matterport3D. You can download (ScanNet, Matterport3D) and also put them into demo folder. Then run the following command for detection and visualization.

DatasetScannetMatterport3D
Commandbash demo/demo.sh demo/scannet.ply demo/config_room.pybash demo/demo.sh demo/mp3d.ply demo/config_building.py
Resultvisvis2

You can also try DSPDet3D on your own data in ply format. Run

bash demo/demo.sh /path/to/your/ply demo/config_{}.py

We use different hyperparamters of 3D NMS for different scales of scenes. For room-size scenes, use config_room.py. For building-level scenes, use config_building.py. You can also adjust the prune_threshold in the config file to tradeoff between accuracy and efficiency.

Main Results

We provide the checkpoints for quick reproduction of the results reported in the paper. The pruning threshold can be adjusted freely to tradeoff between accuracy and efficiency without any finetuning.

BenchmarkmAP@0.25mAP@0.5Downloads
ScanNet-md4065.0454.35model
TO-SCENE-down66.1258.55model

Comparison with state-of-the-art methods on TO-SCENE dataset:

<p align="left"><img src="./images/teaser.png" alt="drawing" width="70%"/></p>

Visualization results on ScanNet:

vis

Visualization results on Matterport3D:

vis2

Acknowledgement

We thank a lot for the flexible codebase of FCAF3D and valuable datasets provided by ScanNet and TO-SCENE.

Bibtex

If this work is helpful for your research, please consider citing the following BibTeX entry.

@article{xu2023dsp, 
      title={3D Small Object Detection with Dynamic Spatial Pruning}, 
      author={Xiuwei Xu and Zhihao Sun and Ziwei Wang and Hongmin Liu and Jie Zhou and Jiwen Lu},
      journal={arXiv preprint arXiv:2305.03716},
      year={2023}
}