Abstract
We present the first learning-based visual odometry (VO) model, which generalizes to multiple datasets and real-world scenarios and outperforms geometry-based methods in challenging scenes. We achieve this by leveraging the massive diversity of the TartanAir dataset, introducing a novel intrinsics layer to handle varying camera geometries, and employing an up-to-scale loss function to address monocular scale ambiguity.
Introduction
Visual Odometry (VO) is critical for autonomous navigation, yet a significant gap remains between classical geometric methods and deep learning approaches. While geometric methods like ORB-SLAM are mathematically rigorous, they often fail in "messy" real-world conditions. Conversely, deep learning models frequently fail when deployed on new hardware or in unfamiliar environments.
The primary roadblocks for learning-based VO are insufficient data diversity and the neglect of geometric fundamentals, such as camera intrinsics and scale ambiguity. TartanVO addresses these by training on a vast synthetic dataset and incorporating geometric priors directly into the network architecture.
Methods
TartanVO utilizes a two-stage architecture that replaces traditional geometric components with neural networks.
- Matching Network: A pre-trained PWC-Net estimates dense optical flow ($F_t^{t+1}$) between consecutive frames, converting pixel intensity changes into 2D motion fields.
- Pose Network: A modified ResNet50 predicts 6-DoF relative motion (translation $T$ and rotation $R$).
- Intrinsics Layer (IL): To make the model camera-agnostic, focal length and principal point information are concatenated as additional channels to the optical flow. This allows the network to interpret motion cues relative to the specific camera geometry.
- Up-to-Scale Loss: To handle monocular scale ambiguity, the loss function penalizes translation direction rather than absolute magnitude, preventing confusion across datasets with different scales.
Data Diversity and Generalization
A core contribution of TartanVO is demonstrating that extreme data diversity can bridge the sim-to-real gap. By training on the TartanAir dataset—which includes over 400,000 frames across urban, indoor, and nature environments with complex 6-DoF motion—the model achieves "zero-shot" generalization.
As shown in the loss curves, increasing the diversity of training environments (from 2 to 17) and the volume of data (from 20,000 to 400,000) leads to a substantial decrease in testing loss, indicating improved generalization to unseen scenarios.
Results
TartanVO was evaluated on standard benchmarks (KITTI, EuRoC) and real-world infrared data without any fine-tuning.
- Zero-Shot Performance: The model achieved competitive results on KITTI and EuRoC, proving that synthetic training can suffice for real-world deployment if the data is sufficiently diverse.
- Robustness: In challenging EuRoC sequences involving aggressive motion, TartanVO outperformed classical methods like ORB-SLAM and DSO, which frequently lost track.
- Sensor Agnostic: The model successfully generalized to infrared images from a RealSense camera, demonstrating its ability to extract motion cues independent of the image domain.
Conclusion and Future Work
TartanVO represents a significant step toward generalizable learning-based VO by combining massive data diversity with geometric awareness. While it currently operates on a frame-to-frame basis and requires ground-truth alignment for absolute scale, future work will explore multi-frame sequences and stereo-VO to provide absolute scale and incorporate global optimization techniques like loop closure.
Summary updated