Exploiting Optical Flow Guidance for Transformer-Based Video Inpainting

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhang, Kaidong, Peng, Jialun, Fu, Jingjing, Liu, Dong
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909140511621120
author Zhang, Kaidong
Peng, Jialun
Fu, Jingjing
Liu, Dong
author_facet Zhang, Kaidong
Peng, Jialun
Fu, Jingjing
Liu, Dong
contents Transformers have been widely used for video processing owing to the multi-head self attention (MHSA) mechanism. However, the MHSA mechanism encounters an intrinsic difficulty for video inpainting, since the features associated with the corrupted regions are degraded and incur inaccurate self attention. This problem, termed query degradation, may be mitigated by first completing optical flows and then using the flows to guide the self attention, which was verified in our previous work - flow-guided transformer (FGT). We further exploit the flow guidance and propose FGT++ to pursue more effective and efficient video inpainting. First, we design a lightweight flow completion network by using local aggregation and edge loss. Second, to address the query degradation, we propose a flow guidance feature integration module, which uses the motion discrepancy to enhance the features, together with a flow-guided feature propagation module that warps the features according to the flows. Third, we decouple the transformer along the temporal and spatial dimensions, where flows are used to select the tokens through a temporally deformable MHSA mechanism, and global tokens are combined with the inner-window local tokens through a dual perspective MHSA mechanism. FGT++ is experimentally evaluated to be outperforming the existing video inpainting networks qualitatively and quantitatively.
format Preprint
id arxiv_https___arxiv_org_abs_2301_10048
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Exploiting Optical Flow Guidance for Transformer-Based Video Inpainting
Zhang, Kaidong
Peng, Jialun
Fu, Jingjing
Liu, Dong
Computer Vision and Pattern Recognition
Transformers have been widely used for video processing owing to the multi-head self attention (MHSA) mechanism. However, the MHSA mechanism encounters an intrinsic difficulty for video inpainting, since the features associated with the corrupted regions are degraded and incur inaccurate self attention. This problem, termed query degradation, may be mitigated by first completing optical flows and then using the flows to guide the self attention, which was verified in our previous work - flow-guided transformer (FGT). We further exploit the flow guidance and propose FGT++ to pursue more effective and efficient video inpainting. First, we design a lightweight flow completion network by using local aggregation and edge loss. Second, to address the query degradation, we propose a flow guidance feature integration module, which uses the motion discrepancy to enhance the features, together with a flow-guided feature propagation module that warps the features according to the flows. Third, we decouple the transformer along the temporal and spatial dimensions, where flows are used to select the tokens through a temporally deformable MHSA mechanism, and global tokens are combined with the inner-window local tokens through a dual perspective MHSA mechanism. FGT++ is experimentally evaluated to be outperforming the existing video inpainting networks qualitatively and quantitatively.
title Exploiting Optical Flow Guidance for Transformer-Based Video Inpainting
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2301.10048