Surface Normals in the Wild

Weifeng Chen, Donglai Xiang, Jia Deng

Abstract

Estimating metric depth from a single image remains a fundamental challenge in computer vision, particularly for "in the wild" images that fall outside the narrow domains of hardware-captured datasets. While relative depth annotations have been used to bridge this gap, they suffer from geometric ambiguities. This paper introduces SNOW (Surface Normals in the Wild), a large-scale dataset of 60,000+ diverse internet images with crowdsourced surface normal annotations. We propose a novel depth-based loss function that leverages these annotations to provide strong geometric constraints. Our approach significantly improves depth estimation accuracy and generalization, outperforming existing "in the wild" models on standard benchmarks.

Introduction

Single-image depth estimation models often fail to generalize because they are typically trained on datasets like NYU Depth or KITTI, which are limited to specific indoor or automotive environments. To handle the infinite variety of real-world scenes, researchers have turned to "relative depth" (e.g., asking if point A is closer than point B). However, relative depth is mathematically insufficient to fully recover surface geometry.

Relative depth is ambiguous; different surface geometries (bend, wiggle, tilt) can satisfy the same relative depth constraints between points A and B.

As shown in Figure 1, a surface can be bent, wiggled, or tilted without changing the relative order of two points. Surface normals—the orientation of a surface at a specific point—provide the necessary constraints to resolve these ambiguities and reconstruct continuous shapes.

The SNOW Dataset

The authors present SNOW, containing 60,052 Flickr images. Unlike previous datasets, SNOW captures a vast array of subjects, from complex architecture to natural landscapes. To collect this data, a custom crowdsourcing interface was developed where users adjust a virtual tangent plane and arrow to match the perceived surface orientation. Human annotators proved remarkably consistent, with a mean disagreement of only 7.4°, suggesting that human perception is a high-quality signal for training geometric models.

Methodology

The core of the proposed method is a deep neural network trained on a combination of data sources, including metric depth from sensors, relative depth, and the new surface normal annotations.

The training pipeline integrates diverse data sources—RGB-D, relative depth, and surface normals—to train a deep network for pixel-wise metric depth prediction.

A key technical contribution is the Depth-Based Surface Normal Loss. Traditional losses minimize the angular difference between predicted and ground-truth normals. However, a small angular error on a steep slope (relative to the camera) can lead to massive depth discrepancies. The proposed loss calculates the implied depth of neighboring pixels based on the annotated normal and penalizes the model if its predicted depth deviates from this geometric expectation. This aligns the training objective directly with the goal of metric accuracy.

Results and Discussion

The model was evaluated using a new metric, Least-Square RMSE (LS-RMSE), which accounts for the scale and translation ambiguity inherent in single-image depth. On the NYU Depth v2 benchmark, the model achieved an LS-RMSE of 0.50, a significant improvement over the previous state-of-the-art "in the wild" baseline of 0.58.

Qualitatively, the model demonstrates a superior ability to capture fine-grained details, such as the curvature of human faces and complex rooflines, which are often smoothed over by models trained only on relative depth. Furthermore, the normals derived from the predicted depth were found to be more accurate than those from models specifically trained to predict normals directly.

Conclusion

By leveraging human-perceived surface normals, this work provides a scalable path toward universal single-image depth estimation. While challenges remain—such as the requirement for camera focal length and handling depth discontinuities at object boundaries—the SNOW dataset and the depth-based loss represent a major step forward in translating qualitative human insights into quantitative geometric predictions.

Summary updated

BibTeX
@inproceedings{chen2017surface,
  author = {Weifeng Chen and Donglai Xiang and Jia Deng},
  title = {{Surface Normals in the Wild}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  doi = {10.1109/iccv.2017.173},
}
Figure