Thinking inside the Convolution for Image Inpainting: Reconstructing Texture via Structure under Global and Local Side
Haipeng Liu, Yang Wang, Biao Qian, Yong Rui, Meng Wang
TL;DR
This paper tackles image inpainting by addressing texture feature-map loss that arises during convolutional downsampling. It introduces a reconstruction-from-structure strategy in which texture feature maps are rebuilt from structure feature maps under both global and local normalization, and couples this with a cross-layer balance module to guide upsampling. Extensive experiments on PSV, CelebA, and Places2 show consistent improvements over state-of-the-art methods in PSNR, SSIM, FID, and LPIPS on variable mask ratios and resolutions, supported by ablations that validate the necessity of global/local guidance and balanced fusion. The approach demonstrates that leveraging sparse global structure and local residual structure in a reciprocal manner yields more coherent texture preservation and semantic fidelity in high-resolution inpainting tasks.
Abstract
Image inpainting has earned substantial progress, owing to the encoder-and-decoder pipeline, which is benefited from the Convolutional Neural Networks (CNNs) with convolutional downsampling to inpaint the masked regions semantically from the known regions within the encoder, coupled with an upsampling process from the decoder for final inpainting output. Recent studies intuitively identify the high-frequency structure and low-frequency texture to be extracted by CNNs from the encoder, and subsequently for a desirable upsampling recovery. However, the existing arts inevitably overlook the information loss for both structure and texture feature maps during the convolutional downsampling process, hence suffer from a non-ideal upsampling output. In this paper, we systematically answer whether and how the structure and texture feature map can mutually help to alleviate the information loss during the convolutional downsampling. Given the structure and texture feature maps, we adopt the statistical normalization and denormalization strategy for the reconstruction guidance during the convolutional downsampling process. The extensive experimental results validate its advantages to the state-of-the-arts over the images from low-to-high resolutions including 256*256 and 512*512, especially holds by substituting all the encoders by ours. Our code is available at https://github.com/htyjers/ConvInpaint-TSGL
