Home

Awesome

CenterFormer

Official implementation for CenterFormer: Center-based Transformer for 3D Object Detection (ECCV 2022 Oral)

@InProceedings{Zhou_centerformer,
title = {CenterFormer: Center-based Transformer for 3D Object Detection},
author = {Zhou, Zixiang and Zhao, Xiangchen and Wang, Yu and Wang, Panqu and Foroosh, Hassan},
booktitle = {ECCV},
year = {2022}
}

Highlights

<p align="center"> <img src='docs/mtf_architecture_eccv.png' align="center" height="500px"> </p>

NEWS

[2022-12-09] Add support for multi-task head and nuScenes training configs.

[2022-09-30] CenterFormer source code is released.

Abstract

Query-based transformer has shown great potential in constructing long-range attention in many image-domain tasks, but has rarely been considered in LiDAR-based 3D object detection due to the overwhelming size of the point cloud data. In this paper, we propose CenterFormer, a center-based transformer network for 3D object detection. CenterFormer first uses a center heatmap to select center candidates on top of a standard voxel-based point cloud encoder. It then uses the feature of the center candidate as the query embedding in the transformer. To further aggregate features from multiple frames, we design an approach to fuse features through cross-attention. Lastly, regression heads are added to predict the bounding box on the output center feature representation. Our design reduces the convergence difficulty and computational complexity of the transformer structure. The results show significant improvements over the strong baseline of anchor-free object detection networks. CenterFormer achieves state-of-the-art performance for a single model on the Waymo Open Dataset, with 73.7% mAPH on the validation set and 75.6% mAPH on the test set, significantly outperforming all previously published CNN and transformer-based methods.

Result

3D detection on Waymo test set

#FrameVeh_L2Ped_L2Cyc_L2Mean
CenterFormer877.776.672.475.6
CenterFormer1678.377.473.276.3

3D detection on Waymo val set

#FrameVeh_L2Ped_L2Cyc_L2Mean
CenterFormer169.467.770.269.1
CenterFormer deformable169.768.368.869.0
CenterFormer271.773.072.772.5
CenterFormer deformable271.673.473.372.8
CenterFormer deformable472.974.272.673.2
CenterFormer deformable873.875.072.373.7
CenterFormer deformable1674.675.672.774.3

3D detection on nuScenes val set

NDSmAP
CenterFormer68.062.7
CenterFormer deformable68.463.0

The training and evaluation configs of the above models are provided in Configs.

Installation

Please refer to INSTALL to set up libraries needed for distributed training and sparse convolution.

Training and Evaluation

Please refer to WAYMO and nuScenes to prepare the data, training and evaluation.

Acknowlegement

This project is developed based on the CenterPoint codebase. We use the deformable cross-attention implementation from Deformable-DETR.