High-Resolution Optical Flow from 1D Attention and Correlation

Haofei Xu, Jiaolong Yang, Jianfei Cai, Juyong Zhang, Xin Tong
4/28/2021
cs.CV

Official code: haofeixu/flow1d (117 stars, Python, MIT, last commit 2022-11-15).

Abstract

Optical flow is inherently a 2D search problem, and thus the computational complexity grows quadratically with respect to the search window, making large displacements matching infeasible for high-resolution images. In this paper, we take inspiration from Transformers and propose a new method for high-resolution optical flow estimation with significantly less computation.

Show full abstract

Specifically, a 1D attention operation is first applied in the vertical direction of the target image, and then a simple 1D correlation in the horizontal direction of the attended image is able to achieve 2D correspondence modeling effect. The directions of attention and correlation can also be exchanged, resulting in two 3D cost volumes that are concatenated for optical flow estimation. The novel 1D formulation empowers our method to scale to very high-resolution input images while maintaining competitive performance. Extensive experiments on Sintel, KITTI and real-world 4K ($2160 \times 3840$) resolution images demonstrated the effectiveness and superiority of our proposed method. Code and models are available at \url{https://github.com/haofeixu/flow1d}.

View on arXivView PDF

Code Implementations(1)

haofeixu/flow1dOfficial100%
MIT

[ICCV'21 Oral] High-Resolution Optical Flow from 1D Attention and Correlation

1176Python, ShellAug 31, 20214 years agoMIT
attentioncorrelationhigh-resolutioniccv2021optical-flow

Similar Papers

Cite this paper

@article{xu2021highresolution,
  title  = {High-Resolution Optical Flow from 1D Attention and Correlation},
  author = {Haofei Xu and Jiaolong Yang and Jianfei Cai and Juyong Zhang and Xin Tong},
  year   = {2021},
  eprint = {2104.13918},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.13918}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.13918.svg)](https://codeofpaper.com/paper/2104.13918)

Discussion