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

DS-Depth: Dynamic and Static Depth Estimation via a Fusion Cost Volume

Xingyu Miao, Yang Bai, Haoran Duan, Yawen Huang, Fan Wan, Xinxing Xu, Yang Long, Yefeng Zheng · DOI

Abstract

Self-supervised monocular depth estimation has traditionally relied on the "static world" assumption, where scene changes are attributed solely to camera ego-motion. This assumption fails in dynamic urban environments containing moving vehicles and pedestrians, leading to significant depth errors and occlusion artifacts. We present DS-Depth, a framework that explicitly models moving objects by incorporating a "dynamic cost volume" driven by residual optical flow. By adaptively fusing static and dynamic geometric cues, DS-Depth achieves state-of-the-art performance on the KITTI and Cityscapes benchmarks, particularly in complex traffic scenarios.

Introduction

Most contemporary self-supervised depth estimation methods learn by reconstructing a target video frame from adjacent reference frames using camera motion (ego-motion). While effective for static backgrounds, this approach breaks down when objects in the scene move independently. This failure manifests in two primary ways: feature mismatch, where the model cannot geometrically locate moving objects in subsequent frames, and occlusion artifacts, which appear as "ghosting" or blurred boundaries where background elements are covered or uncovered.

Previous attempts to mitigate these issues often involved masking out moving objects, effectively ignoring them during training. In contrast, DS-Depth treats object motion as a vital geometric feature. By modeling both static and dynamic components of a scene, the proposed method provides a more robust and accurate depth representation in real-world autonomous driving contexts.

Methodology

Multi-Frame Pipeline and Cost Volumes

DS-Depth utilizes a multi-frame depth estimation pipeline that constructs two distinct cost volumes to represent scene geometry. The Static Cost Volume follows standard practices, accounting for camera motion to match features across frames. To handle dynamic elements, the authors introduce a Dynamic Cost Volume that incorporates residual optical flow—the motion of objects independent of the camera. This allows the network to "track" moving pixels even when their displacement contradicts the global ego-motion.

The DS-Depth architecture overview, highlighting the dual cost volume construction and the Adaptive Fusion Module.

Adaptive Fusion and Loss Functions

Neither cost volume is universally superior; static volumes excel at background depth but fail on moving cars, while dynamic volumes can be noisy in static regions. The Adaptive Fusion Module employs a two-branch approach—concatenation and complementary logic—to allow these volumes to compensate for each other's weaknesses. This results in a fused cost volume that maintains sharp boundaries for both static and dynamic objects.

To further refine the model, two novel loss functions are employed:

  1. Adaptive Photometric Loss: This function adaptively selects the most accurate synthesized view to minimize errors at the high-gradient edges of moving objects, where occlusions are most prevalent.
  2. Pyramid Distillation Loss: To combat the unreliability of photometric loss at low resolutions, the model uses its own final high-resolution depth map as a "pseudo-label" to supervise lower-resolution stages during training, ensuring consistency across scales.

Experiments and Results

Quantitative Performance

The model was rigorously evaluated on the KITTI and Cityscapes benchmarks. On the KITTI Improved Ground Truth dataset, DS-Depth achieved an Absolute Relative Error (AbsRel) of 0.067, surpassing the previous state-of-the-art baseline, ManyDepth (0.070). The improvements were even more pronounced on the Cityscapes dataset, which features higher densities of dynamic objects; here, DS-Depth showed a 12.3% improvement over the baseline.

Qualitative Analysis

Visual comparisons demonstrate that DS-Depth significantly reduces the "bleeding" effect common in other self-supervised methods, where foreground objects appear to melt into the background. As shown in the error maps, the proposed fusion approach effectively handles regions that were previously prone to high error due to independent object motion.

Qualitative comparison of depth maps and error maps between a baseline method and DS-Depth. Note the significant reduction in error around moving vehicles.

Conclusion

DS-Depth demonstrates that explicitly modeling dynamic objects through residual flow and fused cost volumes is a superior alternative to masking them out. By treating motion as a feature rather than a bug, the framework achieves high-fidelity depth maps in challenging urban environments. Future work will focus on optimizing the single-frame "teacher" networks that supervise these multi-frame systems to further reduce error propagation and computational overhead.

Summary updated

BibTeX
@article{miao2023ds,
  author = {Xingyu Miao and Yang Bai and Haoran Duan and Yawen Huang and Fan Wan and Xinxing Xu and Yang Long and Yefeng Zheng},
  title = {{DS-Depth: Dynamic and Static Depth Estimation via a Fusion Cost Volume}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2023},
  doi = {10.1109/tcsvt.2023.3305776},
}
Figure