CalibFormer: A Transformer-based Automatic LiDAR-Camera Calibration Network

Yuxuan Xiao, Yao Li, Chengzhen Meng, Xingchen Li, Yanyong ZhangICRA 2023 · DOI

Abstract

The fusion of LiDARs and cameras has been increasingly adopted in autonomous driving for perception tasks. The performance of such fusion-based algorithms largely depends on the accuracy of sensor calibration, which is challenging due to the difficulty of identifying common features across different data modalities. Previously, many calibration methods involved specific targets and/or manual intervention, which has proven to be cumbersome and costly. Learning-based online calibration methods have been proposed, but their performance is barely satisfactory in most cases. These methods usually suffer from issues such as sparse feature maps, unreliable cross-modality association, inaccurate calibration parameter regression, etc. In this paper, to address these issues, we propose CalibFormer, an end-to-end network for automatic LiDAR-camera calibration. We aggregate multiple layers of camera and LiDAR image features to achieve high-resolution representations. A multi-head correlation module is utilized to identify correlations between features more accurately. Lastly, we employ transformer architectures to estimate accurate calibration parameters from the correlation information. Our method achieved a mean translation error of $0.8751 \mathrm{cm}$ and a mean rotation error of $0.0562 ^{\circ}$ on the KITTI dataset, surpassing existing state-of-the-art methods and demonstrating strong robustness, accuracy, and generalization capabilities.

Introduction

In autonomous driving, fusing 2D camera images with 3D LiDAR point clouds is essential for tasks like object detection and SLAM. However, this fusion only works if we know the exact relative position and orientation (the "extrinsic calibration") between the two sensors. Traditional calibration often requires physical targets (like checkerboards) and manual effort, which is impractical for vehicles in the field where vibrations and temperature changes cause "calibration drift." While deep learning-based "targetless" methods have emerged, they often struggle with feature sparsity in LiDAR data, difficult cross-modality association, and regression inaccuracies in standard CNNs.

Methodology

CalibFormer introduces a three-stage pipeline to solve these issues:

  1. Fine-grained Feature Extraction: The network uses two symmetric branches (one for RGB, one for LiDAR depth/intensity maps). It employs an enhanced Deep Layer Aggregation (DLA) architecture with deformable convolutions. This allows the network to upsample and aggregate multi-layer features, creating high-resolution representations sensitive to small misalignments.
  2. Multi-head Correlation Module: Instead of simple feature concatenation, a multi-head attention-inspired correlation module calculates the dot-product similarity between camera and LiDAR features within a local search window. This allows the network to capture different types of feature correspondences simultaneously.
  3. Transformer-based Regression: The correlation features are fed into a Swin Transformer encoder and a Transformer decoder. This architecture treats the calibration task as a relationship-modeling problem, using a "pose query" to decode the final 6-DoF transformation parameters.
CalibFormer Architecture: The pipeline includes DLA-based feature extraction, multi-head correlation, and a transformer-based regression head.

Experiments and Results

The authors evaluated CalibFormer using the KITTI Odometry dataset (Sequences 01–21 for training/validation, Sequence 00 for testing). To verify generalization, the "2011_09_26" sequence from the KITTI Raw dataset was used. Data was augmented with random deviations up to ±0.5m and ±10°.

CalibFormer significantly outperforms previous state-of-the-art (SOTA) methods like LCCNet and PSNet. On the KITTI dataset, it achieved a mean translation error of 0.8751 cm and a mean rotation error of 0.0562°, representing a 61.7% improvement in translation accuracy over PSNet.

Qualitative comparison of LiDAR-camera alignment: (a) initial miscalibration, (b) calibration by CalibFormer, and (c) ground truth alignment.

The model maintains high precision even on unfamiliar datasets (1.10 cm translation error on KITTI Raw) and operates with a latency of approximately 27.79 ms on an NVIDIA RTX 3060, making it suitable for near-real-time online calibration.

Conclusion

CalibFormer demonstrates that high-resolution feature aggregation and transformer-based relationship modeling are highly effective for cross-modal sensor calibration. While the method currently requires a rough initial guess (within ±0.5m/10°), its sub-centimeter accuracy and real-time performance mark a significant step forward for autonomous vehicle perception systems. Future work may focus on reducing latency further for high-speed scenarios.

Summary updated

BibTeX
@inproceedings{xiao2023calibformer,
  author = {Yuxuan Xiao and Yao Li and Chengzhen Meng and Xingchen Li and Yanyong Zhang},
  title = {{CalibFormer: A Transformer-based Automatic LiDAR-Camera Calibration Network}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2023},
  doi = {10.1109/icra57147.2024.10610018},
}
Figure