arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.13918cs.CV
收藏

基于一维注意力和关联的高分辨率光流

High-Resolution Optical Flow from 1D Attention and Correlation

University of Science and Technology of China(中国科学技术大学);Microsoft Research Asia(微软亚洲研究院);Monash University(莫纳什大学)

Haofei Xu, Jiaolong Yang, Jianfei Cai, Juyong Zhang, Xin Tong

摘要:

光流本质上是一个2D搜索问题,因此计算复杂性相对于搜索窗口成二次方增长,使得大位移匹配对于高分辨率图像不可行。在本文中,我们从Transformers的启发,并提出了一种新的方法,高分辨率的光流估计与显着更少的计算。具体地,首先在目标图像的垂直方向上应用1D关注操作,然后在关注图像的水平方向上进行简单的1D相关就能够实现2D对应建模效果。注意力和相关性的方向也可以交换,从而产生两个3D成本体积,其被连接用于光流估计。新颖的1D公式使我们的方法能够扩展到非常高分辨率的输入图像,同时保持有竞争力的性能。在Sintel、KITTI和真实世界4K($2160 \times 3840$)分辨率图像上的实验证明了该方法的有效性和优越性。代码和型号可在\url{https://github.com/haofeixu/flow1d}上找到。

英文摘要:

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. 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}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑