S2R-DepthNet: Learning a Generalizable Depth-Specific Structural Representation

Xiaotian Chen, Yuwang Wang, Xuejin Chen, Wenjun Zeng

Abstract

S2R-DepthNet addresses the "reality gap" in monocular depth estimation by learning a domain-invariant structural representation. By training on synthetic data and a diverse set of paintings, the model learns to ignore superficial styles and focus on geometry. This approach allows the model to generalize to real-world scenes without ever seeing a real image during training, achieving state-of-the-art performance in domain generalization.

Introduction

Monocular depth estimation—predicting 3D distance from a single 2D image—is a cornerstone of autonomous driving and robotics. While deep learning has significantly advanced this field, it remains constrained by "data hunger." Obtaining accurate ground-truth depth labels in the real world is expensive and time-consuming.

Synthetic data from game engines offers an alternative with perfect labels, but it introduces a massive domain gap. Models trained on "clean" synthetic images often fail when faced with the complex textures and lighting of the real world. Existing solutions, such as Unsupervised Domain Adaptation (UDA), attempt to bridge this gap by using unlabeled real-world images during training. However, this is often impractical for robots encountering novel environments. S2R-DepthNet aims for Domain Generalization: training on synthetic data such that it works on any real-world data out of the box.

Methodology

The S2R-DepthNet architecture is designed to strip away "style" and preserve "structure" through a three-part pipeline:

  1. Structure Extraction (STE) Module: This module forces the network to ignore style by training an encoder on both synthetic data and the Painter By Numbers (PBN) dataset. Because the encoder must process thousands of paintings in styles ranging from Impressionism to Cubism, it learns to extract a "Structure Map" invariant to artistic style or photo-realism.
  2. Depth-specific Attention (DSA) Module: Not all structures are relevant to depth. For instance, a lane line on a flat road is a structure but does not indicate a change in depth. The DSA module uses high-level semantic information to create an attention map that suppresses depth-irrelevant textures (like logos) while highlighting geometric boundaries (like car silhouettes).
  3. Depth Prediction (DP) Module: This prediction head takes the refined, depth-specific structure map and outputs the final continuous depth values.
The S2R-DepthNet architecture, featuring the Structure Extraction (STE), Depth-specific Attention (DSA), and Depth Prediction (DP) modules.

Key Insights

  • The "Sketch" Intuition: Humans can understand 3D layouts from simple line drawings. S2R-DepthNet posits that "structure" is the essential feature for depth, while "style" (texture, color, lighting) is noise that causes domain shift.
  • Paintings as a Regularizer: Using a dataset of paintings serves as a clever "stress test." If a model can identify structure in a Van Gogh, it is unlikely to be fooled by the stylistic differences between a synthetic simulator and a real-world camera.
  • Filtering the Noise: The distinction between general structure and "depth-specific structure" is vital. By using an attention mechanism to ignore flat textures, the model avoids hallucinating depth changes where none exist.

Experimental Results

S2R-DepthNet demonstrates remarkable robustness across both outdoor and indoor benchmarks:

  • Zero-Shot Superiority: On the KITTI benchmark, S2R-DepthNet (which saw zero real images during training) outperformed state-of-the-art UDA methods that did use real images. It achieved an Absolute Relative Error (Abs Rel) of 0.165, compared to 0.171 for the previous leader, T2Net.
  • Indoor Generalization: Moving from SUNCG to NYU Depth v2, the model reduced the Abs Rel from 0.278 (baseline) to 0.196, proving the method's efficacy for complex indoor geometry.
  • Semi-Supervised Performance: When provided with a small subset of real data (1,000 images), the model achieved a new state-of-the-art Abs Rel of 0.116 on KITTI.
Qualitative comparison of depth estimation results on the KITTI dataset. S2R-DepthNet (Ours) shows superior alignment with ground truth compared to baseline and T2Net.

Conclusion

S2R-DepthNet successfully bridges the reality gap by focusing on structural representations. While the model is style-invariant, its performance still depends on the synthetic training data containing similar object classes to the target environment. Future work may involve developing more "universal" synthetic datasets to further enhance robustness in completely novel structural layouts.

Summary updated

BibTeX
@inproceedings{chen2021s,
  author = {Xiaotian Chen and Yuwang Wang and Xuejin Chen and Wenjun Zeng},
  title = {{S2R-DepthNet: Learning a Generalizable Depth-Specific Structural Representation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00305},
}
Figure