Flexible Depth Completion for Sparse and Varying Point Densities

Jinhyung Park, Yu-Jhe Li, Kris Kitani

Abstract

Depth completion is a critical task for autonomous systems, aiming to generate high-resolution dense depth maps from sparse LiDAR data and RGB images. However, existing state-of-the-art methods often fail when point density is extremely low or irregular, as standard convolutional receptive fields are too local to propagate information over large spatial gaps. We introduce the Affinity-Based Shift Correction (ASC) module, a novel framework that utilizes a transformer-inspired cross-attention mechanism to compute global affinities between pixels and sparse depth points. By adaptively "shifting" initial depth estimates based on these affinities, our approach achieves superior robustness and state-of-the-art performance across varying point densities, including extreme cases like 1-line LiDAR or minimal random points.

Introduction

Standard depth completion models are typically optimized for relatively dense sparse data, such as the 64-line LiDAR scans in the KITTI dataset. When moving to sparser inputs, like 4-line LiDAR, the average distance from a pixel to its nearest depth point can jump from 5 to 30 pixels. This "sixfold challenge" renders local propagation methods ineffective. Furthermore, most models lack robustness to irregular point distributions or domain shifts. The ASC module addresses these limitations by enabling global influence: a single depth point can correct distant image regions if they share semantic features.

Methods

The core contribution of this work is the ASC module, which can be integrated into the decoder of various depth estimation networks. The process consists of four primary stages:

  1. Affinity Computation: ASC uses a cross-attention mechanism to process image features and sparse point features. By calculating the similarity (affinity) between every pixel and every sparse depth point, the model overcomes the local bias of convolutions.
  2. Shift Correction: The module generates an initial depth map and calculates the error at each sparse input point. Using the computed affinities, it propagates these corrections to related image regions (e.g., shifting all pixels belonging to a specific object to match a ground truth point on that object).
  3. Correction Confidence: A confidence weighting branch allows the model to decide, on a pixel-by-pixel basis, whether to rely on the context-based monocular prediction or the point-corrected prediction, which is crucial when points are too sparse to be reliable.
  4. RGB-Input Encoder: By utilizing an RGB-only encoder and delaying depth fusion, the framework becomes significantly more robust to changes in depth sparsity and distribution.
Overview of the proposed depth completion framework and the ASC module.

Key Results

The ASC-based model was evaluated across multiple datasets, including KITTI, NYUv2, and VOID, demonstrating remarkable performance in extreme sparsity regimes:

  • Extreme Sparsity (KITTI): On 1-line LiDAR simulations, the model achieved an RMSE of 2015.1 mm, outperforming the previous state-of-the-art (NLSPN) by a significant margin.
  • Indoor Performance (NYUv2): With only 2 random points provided as input, the model maintained a Relative Error (REL) of 0.0893, whereas standard models saw errors spike to ~0.13.
  • Robustness: The model demonstrated superior generalization during domain transfer (training on KITTI and testing on nuScenes) and handled irregular distributions like SIFT keypoints effectively.
Performance comparison across varying pixel distances to the nearest depth point.

Discussion and Conclusion

By leveraging global affinities, the ASC module bypasses the limitations of local propagation in sparse depth completion. A key insight of this research is that training on a range of densities (variable sparsity training) produces models that are far more transferable than those trained on fixed densities. While the computational complexity of global affinities is a factor to consider as point counts increase, the module's ability to turn standard monocular estimators into high-performing completion models offers a flexible solution for diverse sensor suites. Future work may extend this affinity-based approach to other 3D perception tasks, such as object detection in sparse point clouds.

Summary updated

BibTeX
@inproceedings{park2024flexible,
  author = {Jinhyung Park and Yu-Jhe Li and Kris Kitani},
  title = {{Flexible Depth Completion for Sparse and Varying Point Densities}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.02035},
}
Figure