CRAFT: Cross-Attentional Flow Transformer for Robust Optical Flow

Xiuchao Sui, Shaohua Li, Xue Geng, Yan Wu, Xinxing Xu +3 more
3/31/2022
cs.CV
transformer-attention

Official code: askerlee/craft (86 stars, Python, WTFPL, last commit 2024-10-20).

Abstract

Optical flow estimation aims to find the 2D motion field by identifying corresponding pixels between two images. Despite the tremendous progress of deep learning-based optical flow methods, it remains a challenge to accurately estimate large displacements with motion blur.

Show full abstract

This is mainly because the correlation volume, the basis of pixel matching, is computed as the dot product of the convolutional features of the two images. The locality of convolutional features makes the computed correlations susceptible to various noises. On large displacements with motion blur, noisy correlations could cause severe errors in the estimated flow. To overcome this challenge, we propose a new architecture "CRoss-Attentional Flow Transformer" (CRAFT), aiming to revitalize the correlation volume computation. In CRAFT, a Semantic Smoothing Transformer layer transforms the features of one frame, making them more global and semantically stable. In addition, the dot-product correlations are replaced with transformer Cross-Frame Attention. This layer filters out feature noises through the Query and Key projections, and computes more accurate correlations. On Sintel (Final) and KITTI (foreground) benchmarks, CRAFT has achieved new state-of-the-art performance. Moreover, to test the robustness of different models on large motions, we designed an image shifting attack that shifts input images to generate large artificial motions. Under this attack, CRAFT performs much more robustly than two representative methods, RAFT and GMA. The code of CRAFT is is available at https://github.com/askerlee/craft.

View on arXivView PDF

Code Implementations(1)

askerlee/craftOfficial100%
WTFPL

CRAFT: Cross-Attentional Flow Transformers for Optical Flow Estimation

868Python, ShellAug 20, 20212 years agoWTFPL

Similar Papers

Cite this paper

@article{sui2022craft,
  title  = {CRAFT: Cross-Attentional Flow Transformer for Robust Optical Flow},
  author = {Xiuchao Sui and Shaohua Li and Xue Geng and Yan Wu and Xinxing Xu and Yong Liu and Rick Goh and Hongyuan Zhu},
  year   = {2022},
  eprint = {2203.16896},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.16896}
}

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/2203.16896.svg)](https://codeofpaper.com/paper/2203.16896)

Discussion