GigaDepth: Learning Depth from Structured Light with Branching Neural Networks

Simon Schreiberhuber, Jean-Baptiste Weibel, Timothy Patten, Markus VinczeECCV 2022

Introduction

Structured light sensors, such as the original Microsoft Kinect, have long been a staple for depth sensing in robotics and computer vision. These systems operate by projecting a known pattern of infrared (IR) dots onto a scene and calculating depth based on the spatial displacement and distortion of these dots. However, traditional spatial neighborhood encoding methods often struggle with complex geometries, object boundaries, and hardware imperfections. GigaDepth addresses these challenges by introducing a novel neural network architecture that combines convolutional feature extraction with a hierarchical branching structure for high-precision depth estimation.

The Challenge of Pattern Distortion

The core mechanism of structured light—spatial neighborhood encoding—is inherently vulnerable when the projected pattern encounters sharp edges or intricate surfaces. In these scenarios, the pattern becomes fragmented, making it difficult for traditional algorithms to establish reliable correspondences. While stereo matching offers robustness, it often results in blurry depth maps. Conversely, direct regression methods can be accurate but are frequently fragile. Pure Convolutional Neural Networks (CNNs) also face difficulties in regressing precise coordinates across a wide image sensor because the search space is excessively large, often leading to significant noise in the final output.

Methodology: The GigaDepth Architecture

GigaDepth proposes a hybrid architecture that treats depth estimation as a coarse-to-fine classification problem followed by localized regression.

1. Backbone CNN

The process begins with a shallow CNN backbone that extracts local features from the input IR image. This network utilizes a small receptive field (21x21 pixels), ensuring that it focuses on the immediate neighborhood of each pixel to identify specific pattern structures without being overwhelmed by global scene context.

2. The MLP Tree

The defining feature of GigaDepth is its hierarchical "MLP Tree." Instead of a single monolithic regressor, the architecture employs a series of branching Multilayer Perceptrons (MLPs) to progressively narrow down the search space:

  • Stage 1: Classifies the pixel into one of 16 coarse regions.
  • Stage 2: Refines the classification into 12 subclasses per region.
  • Stage 3: Further refines into 10 categories.
  • Final Stage: A specialized regressor at the "leaf" of the tree performs high-precision coordinate estimation within a highly localized area.
The GigaDepth architecture featuring the CNN backbone and the hierarchical MLP Tree.

3. Efficient Implementation

To manage the memory footprint of 1,920 potential paths, the authors developed a custom CUDA implementation. This "Weight-Selective Layer" allows the network to dynamically select and apply the appropriate MLP weights for each pixel on the fly, maintaining computational efficiency.

Experimental Setup and Training

The model was evaluated using a combination of synthetic and real-world data, including Rendered ShapeNet and a custom Unity3D dataset featuring 15,000 sequences. For real-world validation, 967 scenes were captured with an Occipital Structure Core sensor, using an industrial-grade Photoneo MotionCam-3D M scanner for high-fidelity ground truth.

A key discovery during training was the impact of hardware "jitter." Real-world sensors are prone to slight shifts between the projector and camera due to thermal expansion or physical stress. The authors found that introducing a 4-pixel vertical jitter during training significantly enhanced the model's robustness to these practical hardware imperfections.

Results and Discussion

GigaDepth achieves state-of-the-art subpixel accuracy, particularly in reducing the "outlier ratio." At a strict 0.1-pixel error threshold, GigaDepth demonstrated nearly double the accuracy of previous methods like HyperDepth on synthetic benchmarks.

Qualitative comparison showing (a) structured light projection, (b) IR input, (c) default disparity, and (d) the refined GigaDepth output.

Beyond accuracy, the model exhibits exceptional robustness near object boundaries, where traditional methods typically fail. In terms of performance, the optimized CUDA implementation enables a runtime of approximately 60ms on a mobile GPU (RTX 2070 Max-Q), making it viable for near-real-time depth sensing applications.

Conclusion

GigaDepth represents a significant advancement in structured light depth sensing. By reframing coordinate regression as a hierarchical classification task, the architecture achieves a balance of robustness and precision that was previously unattainable. Future work will focus on reducing the reliance on full supervision through semi-supervised learning and improving generalization across different projector patterns.

Summary updated

BibTeX
@inproceedings{schreiberhuber2022gigadepth,
  author = {Simon Schreiberhuber and Jean-Baptiste Weibel and Timothy Patten and Markus Vincze},
  title = {{GigaDepth: Learning Depth from Structured Light with Branching Neural Networks}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19827-4\_13},
}
Figure