Flow-Motion and Depth Network for Monocular Stereo and Beyond

Kaixuan Wang, Shaojie Shen · DOI

In the world of computer vision, Structure-from-Motion (SfM) is the art of turning a sequence of 2D images into a 3D map. Traditionally, this has been a slow, iterative process of matching sparse points and solving complex geometric equations. While deep learning has recently stepped in to speed things up, many existing models still struggle with efficiency or are limited to looking at just two images at a time.

In their paper, "Flow-Motion and Depth Network for Monocular Stereo and Beyond," Kaixuan Wang and Shaojie Shen from HKUST present a framework that not only makes two-view depth estimation faster and more accurate but also scales elegantly to handle multiple images simultaneously.

TL;DR

The authors propose a deep learning architecture that jointly estimates camera motion and optical flow, using the former to constrain the search space of the latter. By introducing a novel "triangulation layer" and a multiview fusion strategy, the system achieves state-of-the-art depth accuracy in just 42ms, making it significantly faster and more robust than previous iterative methods.

What Problem Does This Paper Address?

Estimating depth from a moving monocular camera (monocular stereo) is a "chicken and egg" problem: to know the depth of a pixel, you need to know exactly how the camera moved; but to calculate the camera's motion accurately, it helps to know the depth of the scene.

Existing deep learning methods like DeMoN or BA-Net try to solve this by iterating back and forth between flow, motion, and depth. However, these iterations are computationally expensive. Furthermore, many of these models are "two-view" specialists—they don't have a clean way to incorporate information from a third or fourth image, which is a waste of valuable data in real-world applications like drone navigation or autonomous driving.

Methods

The authors break the problem down into two specialized sub-networks:

  1. The Flow-Motion Network: Instead of treating optical flow (how pixels move) and camera motion as separate tasks, this network solves them jointly in a coarse-to-fine manner. As the network estimates the camera's rotation and translation, it uses epipolar geometry to restrict the search for matching pixels to a single line. This drastically reduces the "search space," making the flow estimation both faster and less prone to errors.
  2. The Depth Network & Triangulation Layer: Standard geometric triangulation becomes mathematically unstable (producing "infinite" or noisy values) near the camera's direction of travel. To fix this, the authors created a triangulation layer. Instead of outputting a raw depth map, this layer encodes the geometric relationship between flow and motion into an 8-channel feature map. A subsequent CNN then "interprets" this map to produce a smooth, accurate depth estimate.
  3. Multiview Fusion: To go "beyond" two views, the authors use a "depth code" approach. Each pair of images (source + target) is encoded into a feature volume. These volumes are then fused using mean-pooling, allowing the network to ingest an arbitrary number of target images to refine the final depth map of the source image.

Datasets

  • DeMoN Dataset: A standard benchmark containing a mix of indoor, outdoor, and synthetic image pairs.
  • GTA-SfM Dataset (New): The authors introduced a new dataset generated from the game Grand Theft Auto V. Unlike older synthetic datasets, this provides high-resolution, photorealistic environments with perfect ground truth for camera poses and depth, specifically designed to mimic the large-scale movements found in real SfM applications.
  • Real-World Testing: The model was evaluated on footage from a DJI Phantom 4 drone, handheld cameras, and Google Earth imagery to prove its generalization ability.

Key Insights and Ideas

  • Geometry as a Constraint, Not Just a Result: Most networks try to learn geometry implicitly. This paper forces the network to obey the laws of physics by using the estimated camera motion to narrow down the optical flow search. This "domain knowledge" is what allows the model to outperform purely data-driven approaches.
  • The "Triangulation Layer" bypasses numerical instability: By feeding the raw geometric components into a CNN rather than a fixed mathematical formula, the network learns to handle the "noisy" areas near the epipolar point where traditional math fails.
  • Scalability via Pooling: The use of mean-pooling for depth codes is a clever architectural choice. It means the network doesn't care if you give it two images or ten; it simply averages the "evidence" from all pairs to reach a consensus.

Key Results

  • State-of-the-Art Performance: On the DeMoN benchmark, the proposed method outperformed previous leaders (like BA-Net and LS-Net) across almost all metrics, including rotation error and depth accuracy.
  • Speed: The system runs in approximately 42ms, compared to 95ms for BA-Net. This is a crucial threshold for real-time robotics.
  • The Power of More Views: The authors demonstrated that depth error consistently drops as more target images are added. For example, on the GTA-SfM dataset, the L1-relative error dropped from 0.145 (2 views) to 0.114 (6 views).
  • Generalization: Even though it was trained largely on synthetic data, the model produced clean, sharp depth maps and point clouds from Google Earth and real-world drone footage.

Limitations and Future Work

The primary limitation acknowledged is occlusion. Because the method relies on triangulation (matching a pixel in one image to a pixel in another), it struggles when an object is visible in the source image but hidden in the target image. The authors note that "supervision is missing" for these complex occluded areas in current datasets.

For future work, the authors suggest moving toward graph-based networks that can simultaneously optimize the poses and depths of an entire collection of images at once, rather than focusing on one "source" image at a time.

Summary updated

BibTeX
@article{wang2020flow,
  author = {Kaixuan Wang and Shaojie Shen},
  title = {{Flow-Motion and Depth Network for Monocular Stereo and Beyond}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2020},
  doi = {10.1109/lra.2020.2975750},
}
Figure