NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Consistent video depth estimation

Xuan Luo, Jia-Bin Huang, Richard Szeliski, Kevin Matzen, Johannes Kopf

TL;DR

This paper introduces a novel method for estimating dense, geometrically consistent depth maps from monocular videos, even in the presence of moderate dynamic object motion. By combining traditional Structure-from-Motion (SfM) geometric constraints with a fine-tuned single-image depth estimation network, they achieve stable and accurate 3D scene reconstructions that enable advanced video effects.

What Problem Does This Paper Address?

Estimating accurate and consistent 3D depth from video is a long-standing challenge. Traditional multi-view stereo (MVS) methods often produce incomplete depth maps with holes, especially in areas with moving objects or poor texture. Conversely, learning-based single-image depth estimation methods can produce dense depth for each frame but often result in flickering and geometrically inconsistent reconstructions over time, making objects appear to "swim" in the scene. Existing video-based depth estimation methods struggle with dynamic scenes or have limited temporal consistency. This paper aims to bridge this gap by producing depth maps that are both dense and globally consistent across an entire video, even when capturing challenging hand-held footage with dynamic elements.

Methods

The core of the proposed method lies in a two-stage process:

  1. Pre-processing:
    • Camera Registration: They employ the COLMAP SfM pipeline to estimate intrinsic and extrinsic camera parameters for each frame. To handle dynamic objects (primarily people), they use Mask R-CNN for segmentation and exclude these regions from keypoint extraction, leading to more robust camera pose estimation.
  2. Dense Correspondence: Optical flow is computed between sampled pairs of frames to establish correspondences.
  3. Scale Calibration: Since monocular depth estimation is scale-ambiguous, they calibrate the SfM reconstruction's scale to match the learning-based depth output using a median-based alignment.
  4. Test-time Training:
    • This is the paper's main contribution. They fine-tune a pre-trained single-image depth estimation network specifically for each input video.
  5. The fine-tuning process uses a geometric loss derived from the pre-processed camera poses and optical flow. This loss comprises two terms:
  6. Spatial Loss: Penalizes the difference between the depth-reprojected point and the flow-displaced point in image space.
  7. Disparity Loss: Penalizes the difference in depth (disparity) between the flow-displaced and depth-reprojected points in 3D space.
  8. By backpropagating this combined loss, the network learns to produce depth maps that are geometrically consistent with the scene's structure and motion, minimizing flickering and drift over time. The network retains its ability to synthesize plausible details in less constrained areas.

Datasets

  • Custom Stereo Video Datasets: The authors captured their own datasets for evaluation, consisting of both static and dynamic scenes with gentle object motion. These were captured using stereo fisheye cameras and then rectified.
  • Public Benchmarks: For quantitative comparison, they also evaluated their method on established datasets:
  • TUM-RGBD dataset (3D Object Reconstruction category)
    • ScanNet dataset
    • KITTI dataset (Eigen split)

Key Insights and Ideas

  • Leveraging Geometric Constraints for Learning: The key insight is that traditional geometric methods (like SfM) provide valuable, albeit sometimes sparse, scene structure information. By using this information to guide the learning process of a dense depth predictor during test-time, they can achieve the best of both worlds: dense predictions and geometric consistency.
  • Test-time Fine-tuning is Crucial: Fine-tuning a pre-trained network on the specific video data is essential. This allows the network to adapt its learned priors to the unique geometry and motion of the target scene, rather than relying solely on general, pre-learned patterns.
  • Long-term Temporal Constraints Matter: The paper emphasizes the importance of using constraints from temporally distant frames, not just consecutive ones, for achieving stable and consistent depth estimation. This helps prevent drift over longer sequences.
  • Dynamic Objects are a Major Hurdle: The paper explicitly addresses the difficulty posed by dynamic objects, which break the assumptions of many traditional and even some learning-based methods. Their approach, by carefully handling these regions during pre-processing and using robust geometric losses, shows significant improvement in this area.

Key Results

  • Quantitative Performance: The method consistently outperforms state-of-the-art methods in terms of instability and drift metrics across various datasets, demonstrating superior temporal consistency. Photometric error is also competitive. For example, on their custom dataset, their method achieves an instability score of 0.44 and drift of 2.12, significantly better than other video-based methods.
  • Qualitative Results: Visual comparisons show that their method produces dense, flicker-free depth maps with sharp object boundaries, even for challenging hand-held videos with moderate motion. This is a significant improvement over COLMAP's sparse outputs and the flickering results of single-frame methods.
  • Enabling Applications: The consistent depth maps enable new video special effects, such as realistic scene reconstruction and advanced visual effects that seamlessly integrate virtual elements with real scenes.

Limitations and Future Work

  • Pose Estimation Dependency: The method relies heavily on the accuracy of the COLMAP SfM pipeline for camera pose estimation. In scenarios with significant motion blur or limited camera translation, COLMAP can produce erroneous poses, which degrade the depth estimation. Integrating learned pose estimation methods is suggested as a future direction.
  • Extreme Dynamic Motion: While the method handles moderate dynamic motion, it breaks down for extreme object motion.
  • Optical Flow Reliability: The method's reliance on optical flow means that unreliable flow estimations can lead to incorrect depth.
  • Online Processing: The current test-time training approach is not real-time, requiring significant computation (e.g., 40 minutes for a 244-frame video on multiple GPUs). Developing faster, online variants is a key future goal.

Summary updated

BibTeX
@article{luo2020consistent,
  author = {Xuan Luo and Jia-Bin Huang and Richard Szeliski and Kevin Matzen and Johannes Kopf},
  title = {{Consistent video depth estimation}},
  journal = {ACM Trans. Graphics},
  year = {2020},
  doi = {10.1145/3386569.3392377},
}
Figure