Skip to main content
QUICK REVIEW

[论文解读] GMFlow: Learning Optical Flow via Global Matching

Haofei Xu, Jing Zhang|arXiv (Cornell University)|Nov 26, 2021
Advanced Vision and ImagingComputer Science被引用 18
一句话总结

GMFlow 提出了一种新颖的光流估计框架,通过基于 Transformer 的架构将光流预测重新构型为全局匹配问题,取代传统的代价体积回归方法。通过利用相关性和 Softmax 匹配层进行全局特征对比,以及利用自注意力层实现光流传播,GMFlow 仅通过一次优化步骤就在 Sintel 数据集上实现了最先进(SOTA)的精度表现,优于采用 31 次优化步骤的 RAFT,且推理速度更快。

ABSTRACT

Learning-based optical flow estimation has been dominated with the pipeline of cost volume with convolutions for flow regression, which is inherently limited to local correlations and thus is hard to address the long-standing challenge of large displacements. To alleviate this, the state-of-the-art framework RAFT gradually improves its prediction quality by using a large number of iterative refinements, achieving remarkable performance but introducing linearly increasing inference time. To enable both high accuracy and efficiency, we completely revamp the dominant flow regression pipeline by reformulating optical flow as a global matching problem, which identifies the correspondences by directly comparing feature similarities. Specifically, we propose a GMFlow framework, which consists of three main components: a customized Transformer for feature enhancement, a correlation and softmax layer for global feature matching, and a self-attention layer for flow propagation. We further introduce a refinement step that reuses GMFlow at higher feature resolution for residual flow prediction. Our new framework outperforms 31-refinements RAFT on the challenging Sintel benchmark, while using only one refinement and running faster, suggesting a new paradigm for accurate and efficient optical flow estimation. Code is available at https://github.com/haofeixu/gmflow.

研究动机与目标

  • 解决光流估计中长期位移问题的长期挑战,该问题在传统代价体积方法中受限于局部相关性。
  • 克服类似 RAFT 的迭代优化框架的效率瓶颈,后者需要大量顺序步骤,导致推理时间线性增加。
  • 将光流估计重新构型为全局匹配问题,以实现在整幅图像上直接、具有判别性的对应关系学习。
  • 通过利用特征自相似性的自注意力机制传播光流预测,提升遮挡区域和边界区域的性能。
  • 证明单次优化的全局匹配框架可在准确性和效率上超越多轮优化的基线方法。

提出的方法

  • 使用自定义的 Transformer 编码器,结合自注意力和交叉注意力机制,增强卷积主干网络提取的特征表示。
  • 用可微分的相关性和 Softmax 层替代传统代价体积,以计算全局成对特征相似性用于匹配。
  • 引入自注意力层,将高质量的光流预测从匹配像素传播到未匹配像素,尤其在遮挡或边界区域表现更优。
  • 应用一个优化头,以更高分辨率的特征重用 GMFlow 架构预测残差光流,从而提升精度。
  • 在合成数据集(如 FlyingChairs、FlyingThings3D、Sintel)上使用标准光流损失端到端训练模型,并在 KITTI 和 Virtual KITTI 2 上进行微调。
  • 利用 Softmax 匹配层的可微性,实现整个网络的反向传播与联合优化。

实验结果

研究问题

  • RQ1光流估计能否被有效重构为全局匹配问题,而非局部回归任务?
  • RQ2用全局相关性和 Softmax 匹配层替代代价体积是否能提升在大位移和复杂场景下的性能?
  • RQ3单次优化的全局匹配框架是否能在准确性和推理速度上超越 RAFT 等多轮迭代方法?
  • RQ4在存在与合成训练数据之间域差距的真实世界数据集(如 KITTI)上,全局匹配方法表现如何?
  • RQ5自注意力机制在遮挡和边界区域中能在多大程度上提升光流预测性能?

主要发现

  • 在 Sintel 清晰测试集上,GMFlow 的最终光流误差为 1.74,在最终测试集上为 2.90,优于 RAFT 的 1.94 和 3.18,且仅使用一次优化步骤。
  • 在 Sintel 的未匹配区域,GMFlow 的误差为 10.56,显著优于 RAFT 的 25.40,表明其在大位移场景下具有更强的性能。
  • 在相同硬件上,GMFlow 的推理速度比 RAFT 快 1.87 倍,推理时间从 170ms 降低至 91ms,显示出显著的效率优势。
  • 在 KITTI 上,GMFlow 的 F1-all 误差为 9.32,高于 RAFT 的 5.10,但经过在 Virtual KITTI 2 上微调后,差距明显缩小,表明通过领域自适应数据可进一步提升泛化能力。
  • 在 Sintel 和 DAVIS 上的定性结果表明,GMFlow 生成的光流场更准确、更连贯,尤其在大运动和遮挡区域表现更优。
  • 消融实验确认,全局匹配机制和自注意力传播对性能至关重要,任一组件的移除都会导致精度显著下降。

阅读本论文

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

在 Nubint 中阅读本论文

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