Transformer-Based Model for Monocular Visual Odometry: A Video Understanding Approach
André O. Françani, Marcos R. O. A. Maximo
TL;DR
We address monocular visual odometry by reframing it as a video-understanding problem and propose TSformer-VO, a Transformer-based model that uses divided space-time self-attention to estimate the camera's $6$-DoF poses from RGB clips in an end-to-end fashion. The method converts absolute ground-truth poses to relative motions, represents rotations with Euler angles, and regresses $(N_f-1)$ poses per clip with a TimeSformer-inspired encoder and an MLP head. On KITTI odometry, TSformer-VO achieves competitive performance against both geometry-based and end-to-end DL baselines, notably outperforming DeepVO and approaching ORB-SLAM3 on several metrics. The results demonstrate that space-time attention can effectively capture the spatio-temporal cues needed for VO without hand-engineered modules, with real-time inference and robustness to dynamic scenes when focusing attention on static structures.
Abstract
Estimating the camera's pose given images from a single camera is a traditional task in mobile robots and autonomous vehicles. This problem is called monocular visual odometry and often relies on geometric approaches that require considerable engineering effort for a specific scenario. Deep learning methods have been shown to be generalizable after proper training and with a large amount of available data. Transformer-based architectures have dominated the state-of-the-art in natural language processing and computer vision tasks, such as image and video understanding. In this work, we deal with the monocular visual odometry as a video understanding task to estimate the 6 degrees of freedom of a camera's pose. We contribute by presenting the TSformer-VO model based on spatio-temporal self-attention mechanisms to extract features from clips and estimate the motions in an end-to-end manner. Our approach achieved competitive state-of-the-art performance compared with geometry-based and deep learning-based methods on the KITTI visual odometry dataset, outperforming the DeepVO implementation highly accepted in the visual odometry community. The code is publicly available at https://github.com/aofrancani/TSformer-VO.
