HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

GMFlow: Learning Optical Flow via Global Matching

Haofei Xu Jing Zhang Jianfei Cai Hamid Rezatofighi Dacheng Tao

GMFlow: Learning Optical Flow via Global Matching

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.

Code Repositories

haofeixu/gmflow
Official
pytorch
Mentioned in GitHub
hpcforge/gmflow
pytorch
Mentioned in GitHub
autonomousvision/unimatch
pytorch
Mentioned in GitHub
raymondwang987/nvds
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
optical-flow-estimation-on-springGMFlow
1px total: 10.355

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp