DynamicStereo: Consistent Dynamic Depth from Stereo Videos

Nikita Karaev, Ignacio Rocco, Benjamin Graham, Natalia Neverova, Andrea Vedaldi, Christian Rupprecht

TL;DR

This paper introduces DynamicStereo, a novel transformer-based architecture that reconstructs consistent 3D depth from stereo videos by leveraging temporal information. To facilitate this, they also release Dynamic Replica, a new synthetic dataset featuring dynamic scenes with people and animals, which significantly improves training for temporally consistent depth estimation.

What Problem Does This Paper Address?

Estimating depth from stereo images is a well-established computer vision task, crucial for applications like 3D reconstruction and AR/VR. However, traditional methods often process stereo frames independently, leading to flickering and inconsistent depth predictions over time. This temporal inconsistency is particularly detrimental to immersive experiences. The challenge lies in developing methods that can effectively utilize information across multiple frames to produce smooth, temporally coherent depth maps for dynamic scenes.

Methods

The core of the paper is the DynamicStereo architecture, which tackles temporal consistency through a transformer-based approach.

  • Encoder: A standard CNN encoder extracts features from individual stereo frames. Crucially, a Space-Stereo-Time (SST) attention block is applied to the lowest-resolution features. This block uses "divided attention" to efficiently exchange information across spatial, temporal, and stereo dimensions, a key innovation for handling high-dimensional video data.
  • Decoder: A coarse-to-fine decoder iteratively refines disparity predictions. It uses a 3D CNN-based GRU that incorporates information from a computed correlation volume, the current disparity estimate, and feature maps. This update mechanism leverages space and time attention to propagate information and improve temporal consistency.
  • Information Propagation: The architecture explicitly addresses the need to exchange information across time, space, and stereo views. The SST block in the encoder and the attention mechanisms within the decoder's update blocks are designed for this purpose.

Datasets

The paper introduces a new synthetic dataset:

  • Dynamic Replica (DR): This dataset features diverse indoor scenes with animated people and animals, rendered from scanned environments. It contains 524 videos with ground-truth depth, optical flow, and segmentation masks. DR aims to provide more realistic training data for dynamic scenes compared to existing synthetic datasets like SceneFlow, which often feature abstract objects. The authors demonstrate that training with DR significantly improves temporal consistency and generalization for both their proposed method and existing ones.

The paper also uses existing datasets for evaluation and comparison:

  • SceneFlow: A large-scale synthetic dataset for disparity and optical flow.
  • KITTI: A real-world dataset for stereo and optical flow.
  • Sintel: A dataset commonly used for optical flow and stereo evaluation.
  • Middlebury: A classic stereo dataset.
  • ETH3D: A dataset for multi-view stereo.

Key Insights and Ideas

  • Temporal consistency is paramount for immersive AR/VR: Flickering depth maps severely degrade user experience, motivating the need for methods that explicitly address temporal coherence.
  • Transformers are powerful for spatio-temporal reasoning: The paper leverages transformer architectures (specifically attention mechanisms) to effectively fuse information across time, space, and stereo views, which is crucial for dynamic scenes.
  • "Divided attention" is key for efficiency: Applying attention across all dimensions simultaneously is computationally prohibitive. The authors' "divided attention" strategy in the SST block allows for efficient information exchange without prohibitive costs.
  • Realistic synthetic data matters: The Dynamic Replica dataset, with its focus on dynamic human and animal subjects in realistic environments, proves more effective for training temporally consistent depth estimators than abstract datasets. Combining DR with existing datasets like SceneFlow yields the best generalization.

Key Results

  • Improved Temporal Consistency: DynamicStereo significantly reduces temporal variance (flickering) compared to state-of-the-art methods like RAFT-Stereo, as shown by lower TEPE (Temporal End-Point Error) scores and qualitative visualizations. For example, on the Sintel Clean dataset, DynamicStereo achieved a TEPE of 0.779, compared to RAFT-Stereo's 0.92.
  • Enhanced Accuracy: When trained on Dynamic Replica (DR+SF), DynamicStereo achieves competitive accuracy on various benchmarks, outperforming other methods in temporal consistency metrics.
  • Dataset Generalization: Training on Dynamic Replica improves the generalization of existing stereo methods to other datasets, suggesting its value in bridging the domain gap.
  • Efficiency: The architecture is designed for efficient processing, utilizing divided attention and a coarse-to-fine decoding strategy.

Limitations and Future Work

  • Limited Window Size: The current method's temporal consistency is evaluated within a sliding window of 20 frames. Extending this window size is limited by memory constraints, leading to potential low-frequency oscillations at the window boundaries.
  • Untextured/Large Surfaces: Like most stereo methods, DynamicStereo struggles with predicting accurate depth for large, untextured surfaces (e.g., walls). While Dynamic Replica helps, it doesn't fully solve this issue.
  • Synthetic Data Reliance: The reliance on synthetic datasets like Dynamic Replica for training and evaluation means that generalization to truly unseen real-world scenes might not be perfectly captured. Future work could focus on improving real-world performance and exploring unsupervised or self-supervised learning approaches.

Summary updated

BibTeX
@inproceedings{karaev2023dynamicstereo,
  author = {Nikita Karaev and Ignacio Rocco and Benjamin Graham and Natalia Neverova and Andrea Vedaldi and Christian Rupprecht},
  title = {{DynamicStereo: Consistent Dynamic Depth from Stereo Videos}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=WJa28lBB44},
}
Figure