HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Image Inpainting with Learnable Bidirectional Attention Maps

Chaohao Xie; Shaohui Liu; Chao Li; Ming-Ming Cheng; Wangmeng Zuo; Xiao Liu; Shilei Wen; Errui Ding

Image Inpainting with Learnable Bidirectional Attention Maps

Abstract

Most convolutional network (CNN)-based inpainting methods adopt standard convolution to indistinguishably treat valid pixels and holes, making them limited in handling irregular holes and more likely to generate inpainting results with color discrepancy and blurriness. Partial convolution has been suggested to address this issue, but it adopts handcrafted feature re-normalization, and only considers forward mask-updating. In this paper, we present a learnable attention map module for learning feature renormalization and mask-updating in an end-to-end manner, which is effective in adapting to irregular holes and propagation of convolution layers. Furthermore, learnable reverse attention maps are introduced to allow the decoder of U-Net to concentrate on filling in irregular holes instead of reconstructing both holes and known regions, resulting in our learnable bidirectional attention maps. Qualitative and quantitative experiments show that our method performs favorably against state-of-the-arts in generating sharper, more coherent and visually plausible inpainting results. The source code and pre-trained models will be available.

Code Repositories

Vious/LBAM_inpainting
Official
pytorch

Benchmarks

BenchmarkMethodologyMetrics
image-inpainting-on-paris-streetview-1Image Inpainting with Learnable Bidirectional Attention Maps
10-20% Mask PSNR: 28.73
20-30% Mask PSNR: 26.16
30-40% Mask PSNR: 24.26
40-50% Mask PSNR: 22.62

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.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Image Inpainting with Learnable Bidirectional Attention Maps | Papers | HyperAI