Test-Time Adaptation for Depth Completion

Hyoungseob Park, Anjali Gupta, Alex WongCVPR 2024

Abstract

It is common to observe performance degradation when transferring models trained on some (source) datasets to target testing data due to a domain gap between them. Existing methods for bridging this gap, such as domain adaptation (DA), may require the source data on which the model was trained (often not available), while others, i.e., source-free DA, require many passes through the testing data. We propose an online test-time adaptation method for depth completion, the task of inferring a dense depth map from a single image and associated sparse depth map, that closes the performance gap in a single pass. We first present a study on how the domain shift in each data modality affects model performance. Based on our observations that the sparse depth modality exhibits a much smaller covariate shift than the image, we design an embedding module trained in the source domain that preserves a mapping from features encoding only sparse depth to those encoding image and sparse depth. During test time, sparse depth features are projected using this map as a proxy for source domain features and are used as guidance to train a set of auxiliary parameters (i.e., adaptation layer) to align image and sparse depth features from the target test domain to that of the source domain. We evaluate our method on indoor and outdoor scenarios and show that it improves over baselines by an average of 21.1%.

Introduction

Depth completion is a critical task in computer vision, particularly for autonomous systems and augmented reality. It involves generating a dense depth map from a synchronized RGB image and a sparse set of 3D points, typically obtained from LiDAR or Visual Inertial Odometry (VIO). While deep learning models have achieved high accuracy in this domain, they suffer from significant performance degradation when deployed in environments that differ from their training data—a phenomenon known as domain shift.

Traditional solutions like Domain Adaptation (DA) often require access to the original source training data or multiple passes over the target data, which is impractical for real-time applications. This paper introduces ProxyTTA, an online, source-free test-time adaptation (TTA) method that bridges the domain gap in a single pass.

Methodology: The ProxyTTA Approach

The core innovation of ProxyTTA lies in the observation that different input modalities respond differently to domain shifts. While RGB images undergo massive "covariate shifts" due to changes in lighting, weather, or camera sensors, the underlying geometry captured by sparse depth remains relatively stable.

Three-Stage Framework

  1. Initialization: A small "adaptation layer" (a single convolutional layer) is inserted into the image encoder branch of a pretrained depth completion model.
  2. Preparation (Source Domain): A Proxy Embedding module is trained to map sparse-depth-only features to the joint image+depth features of the source domain. This module essentially learns the expected internal feature representation for a given geometry based on the source distribution.
  3. Adaptation (Target Domain): During inference on new data, the network is frozen except for the adaptation layer. The proxy module generates a "source-like" feature from the stable sparse depth. The adaptation layer is then updated online to align the actual test-time image features with this proxy using cosine similarity.

This process is guided by a loss function that combines Proxy Consistency, Sparse Depth Consistency (ensuring the output matches input points), and Local Smoothness.

Key Insights and Results

A pivotal finding of this research is that in a new domain, a model often performs better if the RGB image is removed entirely, relying only on sparse depth. This indicates that the image branch can introduce "visual noise" that distracts the model when the visual style is unfamiliar.

Comparison of depth completion performance and error maps across source and target domains with different input modalities.

Quantitative and Qualitative Performance

ProxyTTA was evaluated across diverse indoor (VOID to NYUv2/ScanNet) and outdoor (KITTI to Waymo/nuScenes) datasets. Key results include:

  • Performance Gain: ProxyTTA improved depth completion accuracy by an average of 21.1% over non-adapted baselines, outperforming other TTA methods like BN Adapt and CoTTA.
  • Robustness: The method showed superior performance in adverse conditions, such as heavy rain or low-light night scenes, where standard models typically fail.
  • Efficiency: A variant called "ProxyTTA-fast" was introduced, which improves runtime by ~25% by skipping certain updates while maintaining significant performance gains.

Conclusion

ProxyTTA provides a robust framework for adapting depth completion models to new environments in real-time. By leveraging the geometric stability of sparse depth as a proxy for source-domain visual features, it effectively mitigates the impact of covariate shifts in RGB imagery. This approach opens new possibilities for multi-modal sensor fusion in dynamic, real-world applications.

Summary updated

BibTeX
@inproceedings{park2024test,
  author = {Hyoungseob Park and Anjali Gupta and Alex Wong},
  title = {{Test-Time Adaptation for Depth Completion}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  url = {https://openreview.net/forum?id=9CBpVPa4HO},
}
Figure