Skip to main content
QUICK REVIEW

[论文解读] Transformer-Based Model for Monocular Visual Odometry: A Video Understanding Approach

André O. Françani, Marcos R. O. A. Máximo|arXiv (Cornell University)|May 10, 2023
Advanced Vision and ImagingComputer Science被引用 8
一句话总结

本文提出 TSformer-VO,一种将单目视觉里程计视为视频理解任务的端到端 Transformer 架构,通过剪辑估计 6-DoF 相机位姿,在 KITTI 数据集上相较几何方法及其他深度学习 VO 方法具有竞争力的结果。

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.

研究动机与目标

  • 通过利用 Transformer 的视频理解能力,在不使用手工几何模块的情况下实现端到端单目 VO 的动机。
  • 开发 TSformer-VO,以提取时空特征并从图像剪辑中回归 6-DoF 位姿。
  • 在 KITTI 数据集上展示相对于几何基线与深度学习 VO 方法的竞争性能。
  • 分享代码和预训练模型,以促进可重复性与社区采用。)

提出的方法

  • 将单目标 VO 视为视频理解任务,并从帧序列中估计 6-DoF 位姿。
  • 使用 TimeSformer 启发的划分的时空自注意力,高效建模时间和空间依赖。
  • 对 Nf 帧剪辑应用 MSE 回归损失以预测相对位姿(产生 Nf-1 个位姿)。
  • 通过将绝对位姿转换为相对变换并对旋转进行欧拉角编码进行预处理。
  • 通过去归一化、将欧拉角转换回旋转表示,以及对来自重叠剪辑的重复位姿估计进行平均来进行后处理。
  • 在 KITTI 序列上进行端到端监督训练,使用 Nf 帧滑动窗口,并在评估阶段进行 7-DoF 对齐。
Figure 1: Traditional pipeline for visual odometry.
Figure 1: Traditional pipeline for visual odometry.

实验结果

研究问题

  • RQ1一个基于 Transformer 的视频理解模型是否能够从单目视频剪辑中准确回归 6-DoF 相机位姿?
  • RQ2划分的时空注意力相较于联合时空注意力在单目 VO 的准确性和效率方面有何差异?
  • RQ3剪辑长度(Nf)和重叠窗口对位姿估计和尺度漂移有何影响?
  • RQ4相较于 KITTI 序列上带真实地面轨迹的基线方法(如 ORB-SLAM2、DeepVO),TSformer-VO 的表现如何?

主要发现

  • TSformer-VO 在 KITTI 里程计基准上相较几何基线和端到端深度学习方法具有竞争力的表现。
  • 在端到端方法中,TSformer-VO 变体在大多数指标和序列上优于 DeepVO,凸显变换器在 VO 任务中的优势。
  • 划分的时空注意力在保持接近联合注意力变体的准确性的同时提供了计算效率。
  • 时空注意力的可视化显示模型关注静止场景区域,忽略移动对象,更偏向 blob 式区域而非关键点。
  • 推断时间随剪辑长度增加而增加:TSformer-VO-1 约 20.3 ms/clip,TSformer-VO-2 约 28.8 ms/clip,TSformer-VO-3 约 37.9 ms/clip,表明经优化后具备潜在的实时性。
  • 该模型自然处理单目 VO 中的尺度漂移,在高速度场景下端到端学习相比经典特征基方法更具优势。
Figure 2: TSformer-VO pipeline. The input clips with $N_{f}$ frames are processed into $N$ patches. Each patch is embedded into tokens and is sent to the sequence of Tranformer blocks. A special vector called class token (cls) gathers the information from all patches and passes through the final MLP
Figure 2: TSformer-VO pipeline. The input clips with $N_{f}$ frames are processed into $N$ patches. Each patch is embedded into tokens and is sent to the sequence of Tranformer blocks. A special vector called class token (cls) gathers the information from all patches and passes through the final MLP

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。