FlashDepth: Real-time Streaming Video Depth Estimation at 2K Resolution

Gene Chou, Wenqi Xian, Guandao Yang, Mohamed Abdelfattah, Bharath Hariharan, Noah Snavely, Ning Yu, Paul Debevec

TL;DR

This paper introduces FlashDepth, a novel method for real-time, high-resolution (2K) video depth estimation. It achieves this by cleverly combining a powerful single-image depth model with a lightweight temporal consistency module and a hybrid architecture, enabling sharp and accurate depth maps for streaming video applications.

What Problem Does This Paper Address?

Estimating depth from video is crucial for applications like augmented reality, robotics, and video editing. The ideal solution needs to be accurate, consistent across frames, produce high-resolution depth maps, and operate in real-time for streaming video. Existing methods struggle to meet all these demands simultaneously. Some offer high accuracy but are slow and require post-processing or batch optimization, making them unsuitable for real-time streaming. Others are fast and stream-friendly but produce low-resolution, inconsistent, or blurry depth maps. This paper aims to bridge this gap by providing a method that delivers all desired characteristics.

Methods

FlashDepth builds upon the state-of-the-art single-image depth model, Depth Anything v2 (DAv2). The core innovations are:

  • Temporal Consistency Module: A lightweight recurrent neural network (Mamba) is introduced to align intermediate features from individual frames on-the-fly. This module helps maintain consistent depth across frames without needing to process entire video batches, and it operates on downsampled features to minimize computational overhead.
  • Hybrid Architecture for High-Resolution: To achieve both real-time performance and high resolution, FlashDepth employs a hybrid approach. A lightweight "small" stream (FlashDepth-S) processes the full 2K resolution video, preserving sharp details. Simultaneously, a more powerful "large" stream (FlashDepth-L) processes a lower-resolution version of the video. Features from the large stream are fused into the small stream using cross-attention, allowing the high-resolution stream to benefit from the accuracy of the larger model without a significant speed penalty.
  • Two-Stage Training: To overcome the scarcity of high-resolution video depth datasets, the model is trained in two stages. The first stage uses existing low-resolution datasets to train the temporal consistency module. The second stage fine-tunes the hybrid model using a smaller amount of high-resolution data.

Datasets

The paper utilizes several datasets for training and evaluation:

  • Training (Stage 1): MVS-Synth, Spring, TartanAir, PointOdyssey, and Dynamic Replica. These datasets are used to train the temporal consistency module.
  • Training (Stage 2): MVS-Synth and Spring (high-resolution 2K data) are used to train the hybrid model.
  • Evaluation: ETH3D, Sintel, Waymo, Unreal4K, and UrbanSyn. These datasets cover a range of scenarios, including real-world and synthetic scenes with varying camera motion and object complexity.

Key Insights and Ideas

  • Temporal consistency is achievable with lightweight modules: The paper demonstrates that a simple recurrent module (Mamba) is sufficient to enforce temporal consistency in depth estimation, even for streaming inputs, without requiring expensive video diffusion models or batch processing.
  • Hybrid architecture is key for high-resolution real-time performance: By combining a high-resolution stream for detail preservation with a lower-resolution, high-accuracy stream and fusing their features, FlashDepth achieves a compelling balance between resolution, accuracy, and speed.
  • Leveraging pretrained single-image models is efficient: Building on strong single-image depth models like DAv2 significantly reduces the need for massive amounts of video-specific training data, making the approach more practical.
  • Resolution is paramount for boundary sharpness: The results strongly suggest that higher input resolution directly translates to sharper depth map boundaries, a critical factor for many applications.

Key Results

  • Real-time 2K Depth Estimation: FlashDepth achieves 24 FPS at 2044x1148 resolution on an A100 GPU, a significant improvement over existing methods.
  • Superior Boundary Sharpness: Qualitative and quantitative results (F1 score) show that FlashDepth produces noticeably sharper depth maps, especially for thin structures and distant objects, compared to baselines.
  • Competitive Accuracy: While VidDepthAny (which processes batches) achieves slightly higher accuracy on average, FlashDepth (Full) is very competitive, outperforming other streaming methods and even some batch-processing methods.
  • Efficiency Trade-off: The hybrid model (FlashDepth Full) achieves the same speed as the smaller FlashDepth-S model but with only a minor drop in accuracy, validating the effectiveness of the feature fusion strategy.

Limitations and Future Work

  • Residual Flickering: The authors acknowledge that some residual flickering can still occur, a common challenge for online methods compared to offline optimization.
  • Future Work: They suggest exploring hybrid approaches that combine online processing with concurrent optimization for specific applications, similar to Simultaneous Localization and Mapping (SLAM) systems.

Summary updated

BibTeX
@inproceedings{chou2025flashdepth,
  author = {Gene Chou and Wenqi Xian and Guandao Yang and Mohamed Abdelfattah and Bharath Hariharan and Noah Snavely and Ning Yu and Paul Debevec},
  title = {{FlashDepth: Real-time Streaming Video Depth Estimation at 2K Resolution}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure