Unsupervised Learning of Geometry From Videos With Edge-Aware Depth-Normal Consistency

Zhenheng Yang, Peng Wang, Wei Xu, Liang Zhao, Ramakant NevatiaAAAI 2018

Abstract

Learning to reconstruct depths from a single image by watching unlabeled videos via deep convolutional network (DCN) is attracting significant attention in recent years. In this paper, we propose to use surface normal representation for an unsupervised depth estimation framework. Our estimated depths are constrained to be compatible with predicted normals, yielding more robust geometry results. Specifically, we formulate an edge-aware depth-normal consistency term, and solve it by constructing a depth-to-normal layer and a normal-to-depth layer inside of the DCN. The depth-to-normal layer takes estimated depths as input and computes normal directions using cross production based on neighboring pixels. Then given the estimated normals, the normal-to-depth layer outputs a regularized depth map through local planar smoothness. Both layers are computed with awareness of edges inside the image to help address the issue of depth/normal discontinuity and preserve sharp edges. Finally, to train the network, we apply the photometric error and gradient smoothness to supervise both depth and normal predictions. We conducted experiments on both outdoor (KITTI) and indoor (NYUv2) datasets, and showed that our algorithm vastly outperforms state-of-the-art, which demonstrates the benefits of our approach.

Introduction

Estimating the 3D structure of a scene from a single 2D image is a fundamental challenge in computer vision. While supervised models can perform this task well, they require massive amounts of ground-truth data (like LiDAR scans), which are expensive and difficult to collect. Unsupervised methods have emerged that learn by "watching" videos—essentially trying to predict how a scene would look from a slightly different camera angle via view synthesis. However, these methods often struggle with geometric consistency; while the predicted depth might appear correct as a 2D heatmap, the underlying 3D structure is often noisy or "blobby," failing to represent flat walls or sharp object edges correctly.

Methodology

The core contribution of this work is the Edge-Aware Depth-Normal Consistency constraint, implemented through two specialized layers within a Deep Convolutional Network (DCN). This framework treats depth and surface normals as two sides of the same coin, providing a higher-order geometric signal that simple depth-only models lack.

The proposed unsupervised learning framework, featuring motion and depth networks with integrated depth-to-normal and normal-to-depth consistency layers.

Key Components:

  1. Depth-to-Normal Layer: This layer takes the estimated depth map and computes surface normals by looking at the local neighborhood of pixels, using a cross-product approach to determine local 3D surface orientation.
  2. Normal-to-Depth Layer: This layer uses the predicted normals to refine and regularize the depth map, ensuring that depth values align with the predicted surface orientations.
  3. Edge-Awareness: To prevent the model from smoothing over sharp corners, the authors use image gradients to weight the consistency. This ensures that the mathematical constraints only enforce smoothness where the image itself is smooth, preserving sharp geometric discontinuities.
  4. Gradient Matching Loss: Beyond matching pixel colors between video frames, the model matches image gradients (edges), making the system more robust to lighting changes.

Experimental Results

The model was evaluated on the KITTI (outdoor autonomous driving) and NYUv2 (indoor) datasets. Indoor scenes are particularly challenging for unsupervised methods due to large, untextured surfaces like white walls where standard pixel-matching fails.

Qualitative comparison of depth and normal estimation. The proposed method (d) demonstrates significantly sharper boundaries and better geometric detail than the baseline (c), moving closer to the reference (b).

Key Findings:

  • Accuracy: On the KITTI dataset, the method achieved a ~20% improvement in depth estimation and a ~10% improvement in normal prediction over previous unsupervised benchmarks (e.g., Zhou et al. 2017).
  • Efficiency: The extra geometric guidance helped the model converge 3x faster than previous state-of-the-art methods, reaching optimal performance in approximately 6 hours compared to the typical 15–25 hours.
  • Qualitative Sharpness: Visual results show significantly fewer artifacts. Cars and road surfaces appear as distinct, flat planes rather than distorted shapes, and object boundaries are much cleaner.

Conclusion

By enforcing edge-aware consistency between depth and surface normals, this approach achieves state-of-the-art unsupervised 3D reconstruction. The model mimics intuitive human priors—where the orientation of a surface is often easier to perceive than its exact distance. While challenges remain in extremely low-texture environments, the integration of higher-order geometric interactions provides a powerful framework for learning 3D structure from unlabeled video.

Summary updated

BibTeX
@inproceedings{yang2018unsupervised,
  author = {Zhenheng Yang and Peng Wang and Wei Xu and Liang Zhao and Ramakant Nevatia},
  title = {{Unsupervised Learning of Geometry From Videos With Edge-Aware Depth-Normal Consistency}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  url = {https://openreview.net/forum?id=Byb_qeb_-B},
}
Figure