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

TFDepth: Self-Supervised Monocular Depth Estimation with Multi-Scale Selective Transformer Feature Fusion

Hongli Hu, Jun Miao, Guanghui Zhu, Jie Yan, Jun ChuImage 2024

Abstract

Existing self-supervised models for monocular depth estimation suffer from issues such as discontinuity, blurred edges, and unclear contours, particularly for small objects. We propose a self-supervised monocular depth estimation network with multi-scale selective Transformer feature fusion. To preserve more detailed features, this paper constructs a multi-scale encoder to extract features and leverages the self-attention mechanism of Transformer to capture global contextual information, enabling better depth prediction for small objects. Additionally, the multi-scale selective fusion module (MSSF) is also proposed, which can make full use of multi-scale feature information in the decoding part and perform selective fusion step by step, which can effectively eliminate noise and retain local detail features to obtain a clear depth map with clear edges. Experimental evaluations on the KITTI dataset demonstrate that the proposed algorithm achieves an absolute relative error (Abs Rel) of 0.098 and an accuracy rate (δ) of 0.983. The results indicate that the proposed algorithm not only estimates depth values with high accuracy but also predicts the continuous depth map with clear edges.

Introduction

Estimating 3D depth from a single 2D image is a fundamental challenge in computer vision. While self-supervised learning has enabled training on video sequences without manual labels, traditional Convolutional Neural Network (CNN) based models often struggle with precision. Due to their limited receptive fields, CNNs primarily focus on local pixels, leading to three major issues: depth discontinuity, blurred object edges, and the failure to accurately represent small structures like poles or distant pedestrians. TFDepth addresses these gaps by integrating global context and selective feature refinement.

Methodology

The TFDepth architecture introduces two primary innovations to improve depth estimation quality:

Lightweight Vision Transformer (LVT) Encoder

Unlike standard ResNet encoders, TFDepth utilizes a Transformer-based encoder. The self-attention mechanism allows the model to correlate information across the entire image simultaneously, providing the global context necessary to understand complex scene layouts. To ensure real-world efficiency, the authors implemented a lightweight version that reduces parameters by nearly 30% and FLOPs by 49% compared to a standard ViT-B/16 by scaling down internal Query and Value matrices.

Multi-Scale Selective Fusion (MSSF) Decoder

In typical architectures, skip connections pass features directly from the encoder to the decoder, often introducing noise that causes blurriness. The MSSF module acts as an intelligent filter, using an attention-based mechanism to selectively fuse encoder features with upsampled decoder features. By employing Hadamard products for element-wise refinement, the module retains sharp local details while suppressing noise that would otherwise degrade edge clarity.

The TFDepth architecture integrates a multi-scale Transformer encoder with a selective fusion decoder (MSSF).

Experimental Evaluation

The model was trained and evaluated on the KITTI raw dataset using the Eigen split. Quantitative results show that TFDepth achieves state-of-the-art performance, reaching an Absolute Relative Error (Abs Rel) of 0.098 and an accuracy rate (δ) of 0.983.

Qualitative comparisons highlight the model's superior ability to capture thin structures. In dense scenes, TFDepth successfully identifies triangular road signs and pedestrians that baseline models often blur or miss. The resulting depth maps are continuous and exhibit significantly cleaner contours, particularly for objects like guardrails and utility poles.

Qualitative result demonstrating TFDepth's ability to recover sharp edges and clear contours for small objects.

Conclusion

TFDepth demonstrates that combining the global reasoning of Transformers with selective feature fusion effectively solves the "blurry edge" problem in monocular depth estimation. While the depth network is highly optimized, the authors note that the current Pose Estimation Network remains a standard ResNet18. Future work will focus on developing a more sophisticated, Transformer-based pose network to provide even more accurate geometric constraints during the self-supervised training process.

Summary updated

BibTeX
@inproceedings{hu2024tfdepth,
  author = {Hongli Hu and Jun Miao and Guanghui Zhu and Jie Yan and Jun Chu},
  title = {{TFDepth: Self-Supervised Monocular Depth Estimation with Multi-Scale Selective Transformer Feature Fusion}},
  booktitle = {Image},
  year = {2024},
  doi = {10.5566/ias.2987},
}
Figure