Transformer based Pluralistic Image Completion with Reduced Information Loss

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Liu, Qiankun, Jiang, Yuqi, Tan, Zhentao, Chen, Dongdong, Fu, Ying, Chu, Qi, Hua, Gang, Yu, Nenghai
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910409402875904
author Liu, Qiankun
Jiang, Yuqi
Tan, Zhentao
Chen, Dongdong
Fu, Ying
Chu, Qi
Hua, Gang
Yu, Nenghai
author_facet Liu, Qiankun
Jiang, Yuqi
Tan, Zhentao
Chen, Dongdong
Fu, Ying
Chu, Qi
Hua, Gang
Yu, Nenghai
contents Transformer based methods have achieved great success in image inpainting recently. However, we find that these solutions regard each pixel as a token, thus suffering from an information loss issue from two aspects: 1) They downsample the input image into much lower resolutions for efficiency consideration. 2) They quantize $256^3$ RGB values to a small number (such as 512) of quantized color values. The indices of quantized pixels are used as tokens for the inputs and prediction targets of the transformer. To mitigate these issues, we propose a new transformer based framework called "PUT". Specifically, to avoid input downsampling while maintaining computation efficiency, we design a patch-based auto-encoder P-VQVAE. The encoder converts the masked image into non-overlapped patch tokens and the decoder recovers the masked regions from the inpainted tokens while keeping the unmasked regions unchanged. To eliminate the information loss caused by input quantization, an Un-quantized Transformer is applied. It directly takes features from the P-VQVAE encoder as input without any quantization and only regards the quantized tokens as prediction targets. Furthermore, to make the inpainting process more controllable, we introduce semantic and structural conditions as extra guidance. Extensive experiments show that our method greatly outperforms existing transformer based methods on image fidelity and achieves much higher diversity and better fidelity than state-of-the-art pluralistic inpainting methods on complex large-scale datasets (e.g., ImageNet). Codes are available at https://github.com/liuqk3/PUT.
format Preprint
id arxiv_https___arxiv_org_abs_2404_00513
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Transformer based Pluralistic Image Completion with Reduced Information Loss
Liu, Qiankun
Jiang, Yuqi
Tan, Zhentao
Chen, Dongdong
Fu, Ying
Chu, Qi
Hua, Gang
Yu, Nenghai
Computer Vision and Pattern Recognition
Transformer based methods have achieved great success in image inpainting recently. However, we find that these solutions regard each pixel as a token, thus suffering from an information loss issue from two aspects: 1) They downsample the input image into much lower resolutions for efficiency consideration. 2) They quantize $256^3$ RGB values to a small number (such as 512) of quantized color values. The indices of quantized pixels are used as tokens for the inputs and prediction targets of the transformer. To mitigate these issues, we propose a new transformer based framework called "PUT". Specifically, to avoid input downsampling while maintaining computation efficiency, we design a patch-based auto-encoder P-VQVAE. The encoder converts the masked image into non-overlapped patch tokens and the decoder recovers the masked regions from the inpainted tokens while keeping the unmasked regions unchanged. To eliminate the information loss caused by input quantization, an Un-quantized Transformer is applied. It directly takes features from the P-VQVAE encoder as input without any quantization and only regards the quantized tokens as prediction targets. Furthermore, to make the inpainting process more controllable, we introduce semantic and structural conditions as extra guidance. Extensive experiments show that our method greatly outperforms existing transformer based methods on image fidelity and achieves much higher diversity and better fidelity than state-of-the-art pluralistic inpainting methods on complex large-scale datasets (e.g., ImageNet). Codes are available at https://github.com/liuqk3/PUT.
title Transformer based Pluralistic Image Completion with Reduced Information Loss
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2404.00513