Flow-Guided Transformer for Video Inpainting

Kaidong Zhang, Jingjing Fu, Dong Liu
8/14/2022
cs.CV
transformer-attention

Official code: hitachinsk/FGT (353 stars, Jupyter Notebook, MIT, last commit 2024-02-07).

Abstract

We propose a flow-guided transformer, which innovatively leverage the motion discrepancy exposed by optical flows to instruct the attention retrieval in transformer for high fidelity video inpainting. More specially, we design a novel flow completion network to complete the corrupted flows by exploiting the relevant flow features in a local temporal window.

Show full abstract

With the completed flows, we propagate the content across video frames, and adopt the flow-guided transformer to synthesize the rest corrupted regions. We decouple transformers along temporal and spatial dimension, so that we can easily integrate the locally relevant completed flows to instruct spatial attention only. Furthermore, we design a flow-reweight module to precisely control the impact of completed flows on each spatial transformer. For the sake of efficiency, we introduce window partition strategy to both spatial and temporal transformers. Especially in spatial transformer, we design a dual perspective spatial MHSA, which integrates the global tokens to the window-based attention. Extensive experiments demonstrate the effectiveness of the proposed method qualitatively and quantitatively. Codes are available at https://github.com/hitachinsk/FGT.

View on arXivView PDF

Code Implementations(1)

hitachinsk/FGTOfficial100%
MIT

[ECCV 2022] Flow-Guided Transformer for Video Inpainting

35333Jupyter Notebook, PythonJul 20, 20222 years agoMIT
eccv2022video-inpainting

Similar Papers

Cite this paper

@article{zhang2022flowguided,
  title  = {Flow-Guided Transformer for Video Inpainting},
  author = {Kaidong Zhang and Jingjing Fu and Dong Liu},
  year   = {2022},
  eprint = {2208.06768},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2208.06768}
}

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

Discussion