StableDPT: Temporal Stable Monocular Video Depth Estimation

Ivan Sobko, Hayko Riemenschneider, Markus Gross, Christopher Schroers · DOI

Abstract

Applying single image Monocular Depth Estimation (MDE) models to video sequences introduces significant temporal instability and flickering artifacts. We propose a novel approach that adapts any state-of-the-art image-based (depth) estimation model for video processing by integrating a new temporal module—trainable on a single GPU in a few days. Our architecture, StableDPT, builds upon an off-the-shelf Vision Transformer (ViT) encoder and enhances the Dense Prediction Transformer (DPT) head. The core of our contribution lies in the temporal layers within the head, which use an efficient cross-attention mechanism to integrate information from keyframes sampled across the entire video sequence. This allows the model to capture global context and inter-frame relationships, leading to more accurate and temporally stable depth predictions. Furthermore, we propose a novel inference strategy for processing videos of arbitrary length, avoiding the scale misalignment and redundant computations associated with overlapping windows used in other methods. Evaluations on multiple benchmark datasets demonstrate improved temporal consistency, competitive state-of-the-art performance, and 2x faster processing in real-world scenarios.

Introduction

Monocular Depth Estimation (MDE)—the task of predicting 3D depth from a single 2D image—has reached new heights with the advent of large-scale Vision Transformer (ViT) models. However, a significant gap remains when transitioning from static images to video. Applying these powerful image-based models frame-by-frame results in severe flickering and "depth drift," where the relative scale of the scene warps over time.

Existing solutions, such as VideoDepthAnything (VDA), attempt to mitigate this by processing videos through overlapping sliding windows. While this improves local consistency, it is computationally redundant, lacks global context, and requires complex heuristic post-processing to align depth scales between windows. StableDPT solves these challenges by introducing a lightweight, cross-attention-based temporal module that anchors video predictions to global keyframes.

Methodology: The StableDPT Architecture

StableDPT is designed as a modular enhancement to existing encoder-decoder depth estimation frameworks. It consists of three primary components:

  1. Frozen Spatial Encoder: To leverage the robust spatial understanding of modern foundation models, StableDPT uses a frozen ViT encoder (e.g., from DepthAnythingV2). This ensures that the model maintains high-quality spatial features while focusing training entirely on temporal dynamics.
  2. Global Context Temporal Layers: The core innovation is the injection of temporal layers into the Dense Prediction Transformer (DPT) decoder. These layers use a cross-attention mechanism where the current frame's features (Query) attend to features from a set of global keyframes (Key and Value) sampled from across the entire video sequence.
  3. Strided Inference Strategy: To handle videos of arbitrary length, StableDPT processes non-overlapping snippets. Because every snippet attends to the same set of global keyframes, the depth scale remains naturally consistent across the entire video, eliminating the need for the affine alignment required by sliding-window methods.
The StableDPT architecture integrates Global Context Temporal Layers into a standard DPT head, utilizing a frozen ViT encoder for efficient training.

Temporal Stability via Global Anchoring

By sampling keyframes from the past, present, and future of a video sequence, StableDPT creates a "global anchor" for the scene's geometry. This approach is fundamentally more stable than local smoothing because it prevents the cumulative scale drift that often plagues recursive or window-based models.

StableDPT samples keyframes from across the entire video to provide a global context that anchors the depth prediction of the current frame.

Experimental Results

StableDPT was trained on a diverse mix of approximately 360k frames from datasets including TartanAir, Spring, and synthetic urban scenes. Despite the relatively small training set and the efficiency of the architecture, the model achieves highly competitive results:

  • Efficiency: StableDPT is 2x faster than VDA during inference, processing frames in ~22.8 ms on an RTX 5090. Furthermore, the temporal adaptation can be trained on a single consumer GPU in just three days.
  • Consistency: The model consistently ranks among the top performers in temporal consistency metrics (TGM, OPW, TCC) across benchmarks like Sintel, KITTI, and TUM RGB-D. It shows particular strength in the high-resolution Infinigen dataset, where fine-grained stability is critical.
  • Accuracy: StableDPT maintains the high spatial accuracy of its base image model, ranking second-best across multiple accuracy metrics while providing significantly better stability than per-frame baselines.

Conclusion and Future Work

StableDPT demonstrates that achieving temporal stability in video depth estimation does not require retraining massive foundation models or using computationally expensive overlapping windows. By isolating the temporal problem to a lightweight decoder module and using global keyframes as anchors, StableDPT provides a fast, consistent, and easy-to-train solution. Future work may involve scaling the number of temporal modules for even higher performance or applying this task-agnostic global context layer to other dense video prediction tasks like semantic segmentation or optical flow.

Summary updated

BibTeX
@misc{sobko2026stabledpt,
  author = {Ivan Sobko and Hayko Riemenschneider and Markus Gross and Christopher Schroers},
  title = {{StableDPT: Temporal Stable Monocular Video Depth Estimation}},
  year = {2026},
  eprint = {2601.02793},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.02793},
}
Figure