DeMoN: Depth and Motion Network for Learning Monocular Stereo

Benjamin Ummenhofer, Huizhong Zhou, Jonas Uhrig, Nikolaus Mayer, Eddy Ilg, Alexey Dosovitskiy, Thomas Brox

TL;DR

DeMoN (Depth and Motion Network) is the first end-to-end deep learning architecture that jointly estimates scene depth and camera motion from a single pair of unconstrained images. By combining the geometric principles of "monocular stereo" with the pattern-recognition power of convolutional neural networks, it outperforms both traditional geometric pipelines and modern single-image depth estimators.

The Challenge of Monocular Stereo

In computer vision, "Structure from Motion" (SfM) is the task of determining the 3D shape of a scene and the path of the camera from a sequence of images. Traditionally, this is a hand-engineered pipeline involving keypoint matching and geometric calculations. However, these methods often fail in two specific scenarios:

  1. The Texture Gap: Blank walls or shiny floors prevent reliable keypoint matching, causing the geometry to collapse.
  2. The Degenerate Case: Small camera translations make the underlying mathematics of traditional geometry unstable.

While single-image depth networks can learn object-specific priors (e.g., "chairs are usually this size"), they lack an understanding of parallax. DeMoN bridges this gap by learning the fundamental concept of matching between two frames.

DeMoN jointly estimates depth and camera motion (R, t) from an unconstrained image pair.

Architecture: A Progressive Pipeline

The authors propose a "chain" of encoder-decoder networks that solve the problem progressively through three main stages:

  1. Bootstrap Net: Generates an initial, low-resolution estimate for optical flow, depth, and camera motion from the image pair.
  2. Iterative Net: The core innovation of the paper. This network is applied recursively (typically 3 times) to refine estimates. It warps the second image based on current predictions to identify matching errors, effectively allowing the network to "check its own work."
  3. Refinement Net: Upsamples the low-resolution results (64x48) to a higher resolution (256x192), sharpening edges and adding fine detail.
The DeMoN architecture: a chain of Bootstrap, Iterative, and Refinement networks.

Key Technical Innovations

  • Scale Invariant Gradient Loss: To handle scale ambiguity (the inability to distinguish a toy house from a mansion), the loss function focuses on relative depth differences.
  • Inverse Depth Parameterization: Predicting $1/z$ (inverse depth) allows the network to represent distant points, like the sky, more effectively.

Datasets and Training

DeMoN was trained on a diverse mix of real-world and synthetic data to balance object priors with geometric principles:

  • SUN3D & RGB-D SLAM: Indoor video with ground-truth depth.
  • MVS (Multi-View Stereo): Outdoor cityscapes.
  • Scenes11 & Blendswap: Synthetic datasets providing diverse, photorealistic 3D scenes to improve generalization.

Key Insights

  • Joint Estimation: Unlike traditional SfM which estimates motion then depth, DeMoN estimates them together. This allows depth estimation to "correct" motion errors during iterative steps.
  • Warping as a Feature: By using the difference between the first image and the warped second image, the network receives a strong signal regarding geometric inaccuracies.
  • Generalization: Because it relies on matching, DeMoN generalizes to unseen objects better than single-image networks. It understands how pixels shift due to camera movement rather than just recognizing shapes.

Results and Performance

  • Accuracy: DeMoN outperformed traditional SIFT-based SfM baselines by 1.5x to 2x across most datasets.
  • Robustness: In degenerate cases with minimal camera movement, DeMoN remains stable by falling back on learned priors, whereas traditional methods often fail.
  • Speed: With a forward pass of approximately 110ms on an Nvidia GTX Titan X, the system is viable for near-real-time applications.

Limitations

Despite its success, DeMoN is currently limited to two-frame estimation, whereas full SLAM systems integrate hundreds of frames. Additionally, the output resolution remains relatively low, and the network shows sensitivity to camera intrinsics (field of view) based on its training data.

Summary updated

BibTeX
@inproceedings{ummenhofer2017demon,
  author = {Benjamin Ummenhofer and Huizhong Zhou and Jonas Uhrig and Nikolaus Mayer and Eddy Ilg and Alexey Dosovitskiy and Thomas Brox},
  title = {{DeMoN: Depth and Motion Network for Learning Monocular Stereo}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  doi = {10.1109/cvpr.2017.596},
}
Figure