Command Palette
Search for a command to run...
FuseFormer: Fusing Fine-Grained Information in Transformers for Video Inpainting
Rui Liu; Hanming Deng; Yangyi Huang; Xiaoyu Shi; Lewei Lu; Wenxiu Sun; Xiaogang Wang; Jifeng Dai; Hongsheng Li

Abstract
Transformer, as a strong and flexible architecture for modelling long-range relations, has been widely explored in vision tasks. However, when used in video inpainting that requires fine-grained representation, existed method still suffers from yielding blurry edges in detail due to the hard patch splitting. Here we aim to tackle this problem by proposing FuseFormer, a Transformer model designed for video inpainting via fine-grained feature fusion based on novel Soft Split and Soft Composition operations. The soft split divides feature map into many patches with given overlapping interval. On the contrary, the soft composition operates by stitching different patches into a whole feature map where pixels in overlapping regions are summed up. These two modules are first used in tokenization before Transformer layers and de-tokenization after Transformer layers, for effective mapping between tokens and features. Therefore, sub-patch level information interaction is enabled for more effective feature propagation between neighboring patches, resulting in synthesizing vivid content for hole regions in videos. Moreover, in FuseFormer, we elaborately insert the soft composition and soft split into the feed-forward network, enabling the 1D linear layers to have the capability of modelling 2D structure. And, the sub-patch level feature fusion ability is further enhanced. In both quantitative and qualitative evaluations, our proposed FuseFormer surpasses state-of-the-art methods. We also conduct detailed analysis to examine its superiority.
Code Repositories
Benchmarks
| Benchmark | Methodology | Metrics |
|---|---|---|
| seeing-beyond-the-visible-on-kitti360-ex | FuseFormer | Average PSNR: 18.91 |
| video-inpainting-on-davis | FuseFormer | Ewarp: 0.1362 PSNR: 32.54 SSIM: 0.9700 VFID: 0.138 |
| video-inpainting-on-hqvi-240p | FuseFormer | LPIPS: 0.0498 PSNR: 29.92 SSIM: 0.9365 VFID: 0.2727 |
| video-inpainting-on-youtube-vos | FuseFormer | Ewarp: 0.0900 PSNR: 33.29 SSIM: 0.9681 VFID: 0.053 |
Build AI with AI
From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.