DeepV2D: Video to Depth with Differentiable Structure from Motion

Zachary Teed, Jia Deng

Estimating 3D structure from a 2D video is a cornerstone of computer vision, essential for robotics and augmented reality. Traditionally, this was solved using Structure from Motion (SfM), which relies on geometric optimization but often fails in low-texture areas or under changing light. Conversely, recent deep learning approaches can predict depth from single images by learning visual cues, but they often ignore the strict geometric rules of the physical world. This leads to poor generalization when the network encounters novel environments.

To bridge this gap, researchers propose DeepV2D, an end-to-end differentiable architecture that recovers 3D scene depth from video by "differentializing" classical geometric algorithms. By interleaving a motion estimation module and a depth estimation module in an iterative loop, DeepV2D combines the pattern-recognition strengths of deep learning with the rigorous constraints of multi-view geometry.

The DeepV2D Architecture

DeepV2D decomposes the video-to-depth problem into two trainable modules that communicate in a loop, functioning similarly to a block coordinate descent algorithm:

DeepV2D Architecture Pipeline
  1. The Depth Module: This module takes a set of images and their estimated camera poses. It extracts 2D features, backprojects them into a 3D "cost volume," and uses a series of 3D Hourglass networks to perform stereo matching, ultimately outputting a high-resolution depth map.
  2. The Motion Module (Flow-SE3): Taking the current depth estimate and pairs of images, this module updates the camera's trajectory. Instead of simply regressing the pose, it unrolls a differentiable Gauss-Newton solver to minimize geometric reprojection error, effectively "differentializing" the classical Perspective-n-Point (PnP) problem.

During inference, the system alternates: it uses the current motion to improve the depth, then uses that improved depth to refine the motion. This iterative process typically converges to an accurate solution in about eight iterations.

Key Insights

  • Geometry as a Generalizer: By embedding geometric constraints (like the cost volume and PnP solver) into the architecture, the model generalizes incredibly well. A model trained only on indoor NYU data can outperform other models on ScanNet without any additional training.
  • Differentiable Optimization: Treating pose estimation not as a black-box regression task, but as a differentiable classical optimization algorithm (Gauss-Newton), allows the network to learn better feature representations specifically tailored for matching.
  • 3D over 2D for Matching: Using 3D convolutions to process cost volumes proves significantly more accurate than using 2D correlation layers, as the 3D structure better captures the spatial relationships of the scene.

Performance and Results

The model was rigorously evaluated across major benchmarks, including NYUv2 (indoor), ScanNet & SUN3D (cross-dataset generalization), KITTI (outdoor driving), and TUM-RGBD (SLAM tracking).

  • State-of-the-Art Accuracy: On the NYUv2 dataset, DeepV2D achieved an Absolute Relative Error (Abs Rel) of 0.061, significantly outperforming both state-of-the-art single-view networks (0.103) and previous multi-view deep learning methods like DeMoN (0.144).
  • Superior Generalization: When tested on ScanNet without prior training on it, DeepV2D outperformed BA-Net, even though BA-Net was explicitly trained on ScanNet data.
  • Robust Tracking: In SLAM-style tracking experiments on the TUM-RGBD benchmark, DeepV2D achieved a lower translational RMSE (0.033 m/s) than DeepTAM, despite DeepTAM relying on extra supervision from optical flow.

Limitations and Future Work

While highly effective, DeepV2D has a few limitations. First, it requires known and calibrated camera intrinsics, meaning it cannot currently handle uncalibrated web videos with unknown focal lengths. Second, the use of 3D Hourglass networks and iterative loops makes the system computationally heavier than simple feed-forward single-image networks. Finally, like most SfM-based methods, its geometric constraints assume a mostly static scene; moving objects can still introduce errors into the motion estimation process.

Summary updated

BibTeX
@inproceedings{teed2020deepv,
  author = {Zachary Teed and Jia Deng},
  title = {{DeepV2D: Video to Depth with Differentiable Structure from Motion}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
  url = {https://openreview.net/forum?id=rScvRtKIGLJD},
}
Figure