Domain Adaptive Monocular Depth Estimation With Semantic Information

Fei Lu, Hyeonwoo Yu, Jean OharXiv 2021

Abstract

The advent of deep learning has brought an impressive advance to monocular depth estimation, e.g., supervised monocular depth estimation has been thoroughly investigated. However, the large amount of the RGB-to-depth dataset may not be always available since collecting accurate depth ground truth according to the RGB image is a time-consuming and expensive task. Although the network can be trained on an alternative dataset to overcome the dataset scale problem, the trained model is hard to generalize to the target domain due to the domain discrepancy. Adversarial domain alignment has demonstrated its efficacy to mitigate the domain shift on simple image classification tasks in previous works. However, traditional approaches hardly handle the conditional alignment as they solely consider the feature map of the network. In this paper, we propose an adversarial training model that leverages semantic information to narrow the domain gap. Based on the experiments conducted on the datasets for the monocular depth estimation task including KITTI and Cityscapes, the proposed compact model achieves state-of-the-art performance comparable to complex latest models and shows favorable results on boundaries and objects at far distances.

Introduction

Monocular Depth Estimation (MDE)—the task of predicting 3D depth from a single 2D image—is a critical component for autonomous driving and robotics. Despite its importance, MDE faces a significant data bottleneck. Supervised learning requires expensive LiDAR or RGB-D sensors for ground truth, while self-supervised methods necessitate synchronized stereo pairs or video sequences.

A common solution is Domain Adaptation (DA), where a model is trained on a "source" dataset (e.g., synthetic environments where depth data is abundant) and applied to a "target" real-world environment. However, the "Domain Gap" remains a challenge; models trained on synthetic data often fail to generalize to the noise and complexity of real-world roads. Traditional DA methods typically align general features but overlook semantic context. This paper addresses this by leveraging semantic information—such as identifying a "car" or "tree"—as a geometric guide to improve depth estimation and bridge the domain gap.

Methodology

The proposed framework is a compact, adversarial training model designed to produce domain-invariant features. It consists of four primary components:

  1. Shared Image Encoder: Utilizing a ResNet-18 backbone, this module extracts features from both synthetic (source) and real (target) images.
  2. Depth Decoder: This component regresses pixel-wise depth maps from the encoded features.
  3. Semantic Decoder (Auxiliary): Active only during training, this module predicts semantic labels. By sharing initial layers with the depth decoder, it forces the network to learn the intrinsic link between an object's semantic class and its depth profile.
  4. Domain Classifier with Gradient Reversal Layer (GRL): This adversarial component attempts to distinguish between source and target features. The GRL encourages the encoder to learn features that are indistinguishable across domains, effectively making them domain-invariant.
Detailed architecture of the proposed domain adaptive framework featuring a shared encoder, multi-scale decoders, and a domain classifier with a Gradient Reversal Layer (GRL).

The system also employs a multi-scale training loss, calculating errors at four different resolutions to capture both global scene structure and fine-grained local details.

Experiments and Results

The model was evaluated using Virtual KITTI (vKITTI) as the synthetic source and KITTI as the real-world target. Cityscapes was also used to test cross-domain adaptation between different real-world urban environments.

Quantitative Performance

On the KITTI benchmark, the proposed model achieved state-of-the-art results, outperforming larger architectures. When adapting from vKITTI to KITTI, it reached an Absolute Relative error (Abs Rel) of 0.156, surpassing previous models like AdaDepth and T²Net. Notably, the model is highly efficient, containing only 21.5 million parameters—significantly fewer than the ~55 million parameters in competing models like DESC.

Qualitative Analysis

Qualitatively, the model excels at preserving sharp object boundaries and accurately estimating the depth of small, distant objects, such as cars, which are often blurred into the background by other models.

Qualitative comparison of depth estimation results on the KITTI dataset. The proposed model (Ours) demonstrates superior boundary preservation and accuracy for distant objects compared to T²Net and DESC.

Discussion and Conclusion

The integration of semantic information as a geometric prior allows the model to gain "common sense" regarding object sizes and distances. While the semantic decoder is discarded at inference to maintain speed, its influence during training is vital for the model's accuracy.

Future work may explore utilizing semantic information during deployment or moving toward unsupervised domain adaptation where source labels are unavailable. Despite minor sensitivities in low-texture areas, this compact model demonstrates that intelligent training strategies—combining adversarial alignment with semantic guidance—can outperform raw architectural complexity in monocular depth estimation.

Summary updated

BibTeX
@misc{lu2021domain,
  author = {Fei Lu and Hyeonwoo Yu and Jean Oh},
  title = {{Domain Adaptive Monocular Depth Estimation With Semantic Information}},
  year = {2021},
  eprint = {2104.05764},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.05764},
}
Figure