DynamicStereo: Consistent Dynamic Depth from Stereo Videos

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

TL;DR

DynamicStereo introduces a transformer-based architecture designed to estimate depth from stereo videos by jointly processing information across space, time, and stereo views. By moving beyond frame-by-frame estimation, the model significantly reduces temporal "flickering," while the accompanying Dynamic Replica dataset provides a much-needed realistic benchmark for training models on complex, non-rigid motions like those of humans and animals.

What Problem Does This Paper Address?

Estimating depth from stereo cameras is a cornerstone of computer vision, yet most state-of-the-art methods treat video as a sequence of independent images. This "frame-by-frame" approach ignores the massive amount of redundant information available across time. The result is temporal inconsistency: small errors in individual frames manifest as distracting flickering in 3D reconstructions.

For applications like Augmented Reality (AR) or Virtual Reality (VR), this flickering isn't just a technical flaw—it's a dealbreaker for user immersion. The challenge lies in the high dimensionality of the data; trying to attend to every pixel across two views and multiple timestamps simultaneously is computationally explosive.

Methods

The authors propose DynamicStereo, an encoder-decoder architecture that treats stereo video as a single multi-dimensional volume.

The DynamicStereo architecture uses an encoder-decoder structure with specialized attention blocks to handle the space-time-stereo volume.

1. The SST-Block (Space-Stereo-Time)

To handle the computational complexity, the model uses divided attention. Instead of a single massive attention operation, the SST-Block applies attention to each dimension—space, then stereo-view, then time—individually. This allows the model to find matches across frames and views without the quadratic memory cost of full joint attention.

2. Iterative 3D GRU Updates

Building on the success of architectures like RAFT, the decoder refines disparity maps iteratively. However, DynamicStereo replaces standard 2D convolutions with 3D CNN-based Gated Recurrent Units (GRUs). This enables the refinement process to propagate information temporally, ensuring that the depth estimate for a pixel at time t is informed by its neighbors at time t-1 and t+1.

Detailed view of the Update block and the Space-Stereo-Time (SST) attention mechanism.

Datasets

A major contribution of this work is the Dynamic Replica (DR) dataset. The authors argue that existing synthetic datasets like SceneFlow are too abstract (random flying shapes), while real-world datasets like KITTI are too sparse or lack non-rigid motion.

  • Dynamic Replica: Contains 524 high-resolution (1280x720) videos of virtual humans and animals moving through realistic digital scans of indoor environments.
  • Other Datasets used: The model was also evaluated on standard benchmarks including SceneFlow, KITTI, Middlebury, ETH3D, and Sintel.
A comparison of Dynamic Replica against existing datasets, highlighting its focus on realistic indoor scenes and non-rigid objects.

Key Insights and Ideas

  • Temporal Context Improves Spatial Accuracy: One of the "aha" moments is that looking at neighboring frames doesn't just make the video smoother; it actually helps resolve spatial ambiguities (like occlusions or untextured regions) by using information from a time when that area was visible or better lit.
  • Divided Attention is Sufficient: The results suggest that you don't need full joint attention across all dimensions to achieve high-quality consistency. Processing them sequentially is efficient and effective.
  • Realism Matters for Generalization: Training on the realistic motions in Dynamic Replica allowed the model to generalize significantly better to real-world footage than models trained solely on abstract synthetic data.

Key Results

DynamicStereo sets a new state-of-the-art for temporal consistency in stereo depth estimation.

  • Consistency: The model achieved significantly lower Temporal End-Point Error (TEPE) compared to previous leaders like RAFT-Stereo and CRE-Stereo.
  • Dataset Impact: Training existing models (like RAFT-Stereo) on the new Dynamic Replica dataset improved their performance across the board, proving the dataset's value as a general-purpose training tool.
  • Qualitative Stability: In real-world tests, the model produced point clouds with drastically reduced flickering, making them suitable for immersive 3D applications.
Figure 1. Dynamic Replica and DynamicStereo. In this work, we (a) introduce a new synthetic stereo video dataset (Dynamic Replica) to train and benchmark temporally consistent disparity estimators for dynamic scenes with people and animals, and (b) propose a method (DynamicStereo) exploiting recent advances in transformer architectures that performs efficient stereo matching at the level of videos.

Limitations and Future Work

  • Sliding Window Artifacts: Because the model processes video in chunks (sliding windows), there can be subtle low-frequency oscillations at the boundaries of these windows.
  • Memory Constraints: The current architecture is memory-intensive, limiting the size of the temporal window the model can "see" at once.
  • Untextured Surfaces: Like all stereo methods, perfectly flat, untextured walls remain a challenge, though the temporal priors help mitigate this.
  • Future Directions: The authors suggest exploring ways to extend the temporal window and further bridging the gap between synthetic training and real-world deployment.

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