Introduction
Monocular depth estimation—the task of predicting 3D scene geometry from a single 2D image—is a cornerstone of computer vision with critical applications in autonomous driving, robotics, and augmented reality. While supervised methods have historically dominated the field, the high cost and logistical difficulty of obtaining dense LiDAR ground truth have shifted research focus toward self-supervised learning. These methods leverage geometric constraints between consecutive video frames to learn depth without explicit labels.
Despite significant progress, most self-supervised frameworks rely on Convolutional Neural Networks (CNNs). While effective at capturing local textures, CNNs suffer from inherently limited receptive fields. This "local reasoning" bottleneck often results in structural errors, such as "bleeding" artifacts where the boundaries of small foreground objects blur into the background. MonoViT addresses this by introducing a hybrid architecture that combines the local precision of CNNs with the global context of Vision Transformers (ViTs).
The MonoViT Architecture
The core innovation of MonoViT is its hybrid encoder-decoder design, which aims to reconcile local detail with global scene structure.
1. The Hybrid Encoder
Rather than using a standard ResNet backbone, MonoViT employs a multi-path hybrid encoder. This component is designed to process visual information through two distinct channels:
- Convolutional Path: This path focuses on fine-grained local details and neighbor relationships, ensuring that high-frequency information like edges and textures is preserved.
- Transformer Paths: Three parallel Transformer blocks process visual tokens at multiple scales. These blocks allow the model to model long-range interactions across the entire image, providing the global context necessary to understand the relationship between distant objects and the scene's horizon.
2. Feature Fusion and Decoding
Features from the local and global paths are concatenated and fused using 1x1 convolutions. This ensures that the resulting representation is both spatially precise and contextually aware. The decoder further enhances this by using "Atten Blocks," which apply both spatial and channel attention during the upsampling process. This mechanism helps maintain sharp object boundaries, preventing the common "bleeding" artifacts found in pure CNN-based models.
3. Self-Supervised Training
MonoViT follows the standard "depth-from-video" paradigm. During training, the network predicts a depth map for a target frame, while a separate PoseNet (based on ResNet-18) estimates the camera's ego-motion between frames. The primary training signal is derived from the photometric reprojection error—the difference between the actual target frame and a synthesized version generated by warping adjacent frames using the predicted depth and pose.
Experimental Results
KITTI Benchmark
MonoViT was evaluated on the industry-standard KITTI benchmark using the Eigen split. It achieved state-of-the-art performance among self-supervised methods. At a standard resolution of 640x192, MonoViT achieved an Absolute Relative Error (Abs Rel) of 0.099, surpassing previous leading models like DIFFNet (0.102). When scaled to a higher resolution of 1280x384, the performance improved further to an Abs Rel of 0.094, setting a new high-water mark for the field.
Zero-Shot Generalization
To test the model's ability to generalize beyond its training data, the authors conducted zero-shot testing on the Make3D dataset. Despite being trained exclusively on the KITTI autonomous driving environment, MonoViT demonstrated significantly better performance on Make3D than traditional CNN-based architectures. This suggests that by learning global structural relationships rather than just local textures, the model develops a more robust understanding of 3D geometry that is not overfitted to a specific dataset.
Robustness to Adverse Weather
The model's robustness was further tested using the DrivingStereo dataset, which includes subsets for foggy, cloudy, rainy, and sunny conditions. In the challenging "Rainy" subset, MonoViT achieved an Abs Rel of 0.169, significantly outperforming DIFFNet's 0.191. This indicates that the global reasoning provided by the Transformer blocks allows the model to "see through" environmental noise and maintain a coherent understanding of the scene layout.
Discussion and Limitations
The success of MonoViT highlights that global context is not just a luxury but a necessity for high-fidelity depth estimation. By integrating Transformers, the model effectively resolves the ambiguity of small or low-contrast objects by relating them to the broader scene structure.
However, these gains come with computational costs. Vision Transformers are more memory-intensive and computationally demanding than standard CNNs. The base MonoViT model operates at approximately 15-18 frames per second (FPS) on an NVIDIA RTX 3090. While this is acceptable for many applications, it may pose a challenge for real-time deployment on low-power edge devices. Furthermore, the training process for high-resolution models requires significant hardware resources, typically involving multiple high-end GPUs.
Conclusion
MonoViT represents a significant step forward in self-supervised monocular depth estimation. By successfully bridging the gap between CNNs and Vision Transformers, it provides a blueprint for architectures that are both locally precise and globally aware. Its superior performance on benchmarks and its robustness in diverse weather conditions make it a powerful framework for future research in autonomous perception.
Summary updated