Home

Awesome

PWC PWC PWC

FCAF3D: Fully Convolutional Anchor-Free 3D Object Detection

News:

This repository contains an implementation of FCAF3D, a 3D object detection method introduced in our paper:

FCAF3D: Fully Convolutional Anchor-Free 3D Object Detection<br> Danila Rukhovich, Anna Vorontsova, Anton Konushin <br> Samsung Research<br> https://arxiv.org/abs/2112.00322

Installation

For convenience, we provide a Dockerfile.

Alternatively, you can install all required packages manually. This implementation is based on mmdetection3d framework. Please refer to the original installation guide getting_started.md, replacing open-mmlab/mmdetection3d with samsunglabs/fcaf3d. Also, MinkowskiEngine and rotated_iou should be installed with these commands.

Most of the FCAF3D-related code locates in the following files: detectors/single_stage_sparse.py, dense_heads/fcaf3d_neck_with_head.py, backbones/me_resnet.py.

Getting Started

Please see getting_started.md for basic usage examples. We follow the mmdetection3d data preparation protocol described in scannet, sunrgbd, and s3dis. The only difference is that we do not sample 50,000 points from each point cloud in SUN RGB-D, using all points.

Training

To start training, run dist_train with FCAF3D configs:

bash tools/dist_train.sh configs/fcaf3d/fcaf3d_scannet-3d-18class.py 2

Testing

Test pre-trained model using dist_test with FCAF3D configs:

bash tools/dist_test.sh configs/fcaf3d/fcaf3d_scannet-3d-18class.py \
    work_dirs/fcaf3d_scannet-3d-18class/latest.pth 2 --eval mAP

Visualization

Visualizations can be created with test script. For better visualizations, you may set score_thr in configs to 0.20:

python tools/test.py configs/fcaf3d/fcaf3d_scannet-3d-18class.py \
    work_dirs/fcaf3d_scannet-3d-18class/latest.pth --eval mAP --show \
    --show-dir work_dirs/fcaf3d_scannet-3d-18class

Models

The metrics are obtained in 5 training runs followed by 5 test runs. We report both the best and the average values (the latter are given in round brackets).

For VoteNet and ImVoteNet, we provide the configs and checkpoints with our Mobius angle parametrization. For ImVoxelNet, please refer to the imvoxelnet repository as it is not currently supported in mmdetection3d for indoor datasets. Inference speed (scenes per second) is measured on a single NVidia GTX1080Ti. Please, note that ScanNet-pretrained S3DIS model was actually trained in the original open-mmlab/mmdetection3d codebase, so it can be inferenced only in their repo.

FCAF3D

DatasetmAP@0.25mAP@0.5Download
ScanNet71.5 (70.7)57.3 (56.0)model | log | config
SUN RGB-D64.2 (63.8)48.9 (48.2)model | log | config
S3DIS66.7 (64.9)45.9 (43.8)model | log | config
S3DIS <br> ScanNet-pretrained75.7 (74.1)58.2 (56.1)model | log | config

Faster FCAF3D on ScanNet

BackboneVoxel <br> sizemAP@0.25mAP@0.5Scenes <br> per sec.Download
HDResNet340.0170.756.08.0see table above
HDResNet34:30.0169.853.612.2model | log | config
HDResNet34:20.0263.146.831.5model | log | config

VoteNet on SUN RGB-D

SourcemAP@0.25mAP@0.5Download
mmdetection3d59.135.8instruction
ours61.1 (60.5)40.4 (39.5)model | log | config

ImVoteNet on SUN RGB-D

SourcemAP@0.25mAP@0.5Download
mmdetection3d64.037.8instruction
ours64.6 (64.1)40.8 (39.8)model | log | config

Comparison with state-of-the-art on ScanNet

<p align="center"><img src="./resources/scannet_map_fps.png" alt="drawing" width="50%"/></p>

Example Detections

<p align="center"><img src="./resources/github.png" alt="drawing" width="90%"/></p>

Citation

If you find this work useful for your research, please cite our paper:

@inproceedings{rukhovich2022fcaf3d,
  title={FCAF3D: fully convolutional anchor-free 3D object detection},
  author={Rukhovich, Danila and Vorontsova, Anna and Konushin, Anton},
  booktitle={European Conference on Computer Vision},
  pages={477--493},
  year={2022},
  organization={Springer}
}