Abstract
Estimating depth and camera motion from monocular video is a fundamental challenge in computer vision, traditionally requiring extensive labeled data or specialized CNN architectures. This paper presents a novel, entirely self-supervised two-stage pipeline for simultaneous monocular depth estimation and visual odometry (DVO). By replacing standard object-centric pretraining with a geometry-aware pretext task called Cross-view Completion (CroCo) and utilizing a standard Vision Transformer (ViT) backbone, the proposed method achieves state-of-the-art results across diverse benchmarks. The findings suggest that the nature of pretraining is more critical than architectural complexity for dense geometric tasks.
Introduction
Monocular depth estimation and visual odometry (VO) are essential components for autonomous navigation and robotics. While supervised learning has yielded impressive results, the high cost of acquiring ground-truth depth and pose data at scale remains a significant bottleneck. Self-supervised methods, which leverage geometric constraints between consecutive video frames, offer a scalable alternative.
However, most existing self-supervised DVO frameworks rely on backbones pretrained on ImageNet. While effective for classification, ImageNet pretraining is inherently "object-centric," focusing on semantic features rather than the 3D structural relationships necessary for geometric tasks. Furthermore, many current state-of-the-art (SOTA) methods rely on increasingly complex, task-specific CNN architectures. This research explores whether a unified Transformer-based architecture, combined with geometry-aware self-supervised pretraining, can overcome these limitations.
Methodology
The proposed approach consists of a two-stage self-supervised pipeline: generic pretraining followed by task-specific finetuning.
1. Geometry-Aware Pretraining (CroCo)
Instead of using ImageNet, the authors employ the Cross-view Completion (CroCo) pretext task. In this setup, the model is presented with two different views of the same scene. One view is heavily masked, and the model must reconstruct the missing patches by leveraging visible patches and spatial information from the second view. This process forces the encoder to internalize the underlying 3D geometry and spatial relationships of the environment before any task-specific training begins.
2. Self-supervised Finetuning for DVO
The pretrained CroCo encoder is integrated into a dual-branch DVO framework:
- Depth Decoder: Utilizes a Dense Prediction Transformer (DPT) to fuse features from multiple transformer layers at varying resolutions, resulting in high-fidelity, sharp depth maps.
- VO Decoder: A lightweight MLP-based branch that estimates the 6-degree-of-freedom (6-DoF) relative pose between frames.
The system is finetuned on unlabeled video sequences using a composite loss function. This includes photometric loss (measuring the accuracy of warping one frame to another), geometric consistency loss (ensuring depth predictions from different viewpoints agree in 3D space), and edge-aware smoothness to refine object boundaries.
3. Parameter-Efficient Transfer with Adapters
To facilitate efficient learning, the authors incorporate "Adapters"—small, trainable bottleneck layers inserted into the frozen pretrained backbone. This allows the model to adapt to specific environments (such as indoor vs. outdoor) without retraining the entire ViT backbone, significantly reducing computational overhead.
Experimental Results
The method was evaluated on six diverse benchmarks, including KITTI and Ddad (outdoor driving), NYUv2 (indoor static), and Bonn, Tum, and Gibson (dynamic/synthetic environments).
Performance Benchmarks
The proposed model, CroCo-DVO+DPT+Ad, established new SOTA benchmarks:
- KITTI: Achieved an Absolute Relative Error (AbsRel) of 0.098, outperforming previous leaders like MonoViT (0.099) and significantly surpassing traditional CNN-based architectures.
- NYUv2: Achieved an AbsRel of 0.095, a substantial improvement over the previous best of 0.123, demonstrating the model's strong performance in indoor settings.
- Visual Odometry: On the Gibson dataset, the model’s predicted trajectories closely aligned with ground truth, confirming that the learned geometric representations translate effectively to motion estimation.
Discussion and Key Insights
The Importance of Pretraining
The primary takeaway is that how a model is pretrained is more impactful than the complexity of its architecture. CroCo-based pretraining provides a fundamental understanding of 3D space that ImageNet pretraining lacks. This allows a "vanilla" ViT to outperform highly specialized CNNs like PackNet or HRDepth.
Efficiency and Scalability
The use of adapters allowed for a 65% reduction in finetuning time while maintaining or improving performance, particularly in indoor environments. This suggests a path forward for deploying large-scale Transformer models in resource-constrained robotics applications.
Limitations
While the model performs exceptionally well, the authors noted that adapters were less effective for outdoor driving datasets compared to indoor scenes. This suggests that the initial CroCo pretraining data may require more diversity to fully capture the nuances of street-level geometry without full-backbone finetuning. Additionally, while the model handles dynamic objects via self-discovered masking, extremely crowded scenes remain a challenge for maintaining geometric consistency.
Conclusion
This work demonstrates that a fully self-supervised pipeline—from pretraining to task-specific finetuning—can achieve state-of-the-art results in monocular depth and visual odometry. By shifting the focus from architectural complexity to geometry-aware pretraining and leveraging the scalability of Vision Transformers, the authors provide a robust framework for future research in self-supervised spatial perception.
Summary updated