Abstract
Self-supervised monocular depth estimation has achieved significant per-frame accuracy but often suffers from temporal inconsistency, manifesting as "flickering" in video sequences. This instability is detrimental to downstream applications like 3D reconstruction and SLAM. We present TC-Depth, a novel pipeline that integrates geometry-guided spatial-temporal attention with a cycle-consistency loss to enforce geometric stability. By leveraging 3D Euclidean distances for attention and a robust cycle-masking strategy, TC-Depth achieves state-of-the-art accuracy on KITTI and Cityscapes benchmarks while improving temporal consistency by approximately 60% compared to existing strong baselines.
Introduction
Monocular depth estimation—predicting 3D structure from a single 2D image—is a cornerstone of computer vision for autonomous driving and robotics. While self-supervised methods have become highly accurate by learning from video without expensive LiDAR labels, they often lack sequence-wide stability. Standard accuracy metrics evaluate frames in isolation, failing to penalize the slight depth variations of static objects across frames. This paper aims to bridge the gap between per-frame accuracy and the stable geometry required for real-world 3D applications.
Methods
TC-Depth introduces several innovations to enforce geometric "sanity" during the learning process through a three-stage pipeline: Feature Extraction, Spatial-Temporal Feature Aggregation, and Depth Decoding.
Geometry-Guided Spatial-Temporal Attention
Unlike standard transformers that use appearance-based attention, TC-Depth utilizes a coarse initial depth estimate to back-project pixels into 3D space. Spatial Attention is then calculated based on 3D Euclidean distance, ensuring the model aggregates information from points that are physically proximal in the 3D scene. Temporal Attention processes triplets of frames (past, current, and future) to aggregate features across time, ensuring feature representation remains consistent as objects move through the sequence.
Geometric Consistency and Masking
To handle occlusions that typically break self-supervised photometric loss, the authors propose cycle-masking. Instead of the standard "minimum error" mask, which often discards useful data, cycle-masking checks if a pixel can be successfully projected to a neighbor and back. If the projection fails, the pixel is masked as an occlusion. Additionally, a Motion Consistency Loss employs a "weak teacher" model to help the network identify and handle independently moving objects.
Key Results
TC-Depth was evaluated on the KITTI and Cityscapes datasets, demonstrating superior performance in both accuracy and stability.
- Temporal Stability: The model improves the newly proposed Temporal Consistency Metric (TCM) by approximately 60% compared to baselines like ManyDepth and MonoDepth2.
- Accuracy: TC-Depth sets new state-of-the-art benchmarks for accuracy on KITTI, outperforming even some semi-supervised methods.
- Qualitative 3D Reconstruction: The resulting 3D point clouds are significantly cleaner, with a marked reduction in "flying pixels" and ghosting effects compared to previous methods.
Conclusion
TC-Depth demonstrates that integrating geometric priors into the attention mechanism significantly enhances the temporal stability of monocular depth estimation without sacrificing per-frame accuracy. While the current ball-query approach for spatial attention can face challenges in highly repetitive scenes, the overall framework provides a robust foundation for stable 3D scene understanding from video.
Summary updated