arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.00513cs.CV

基于Transformer的低信息损失多元图像补全

Transformer based Pluralistic Image Completion with Reduced Information Loss

School of Computer Science and Technology, Beijing Institute of Technology(北京理工大学计算机科学与技术学院);School of Information Science and Technology, University of Science and Technology of China(中国科学技术大学信息科学技术学院);Microsoft Cloud AI(微软云人工智能部门);Wormpex AI Research LLC(Wormpex人工智能研究有限责任公司)

Qiankun Liu, Yuqi Jiang, Zhentao Tan, Dongdong Chen, Ying Fu, Qi Chu, Gang Hua, Nenghai Yu

AI总结:

针对现有Transformer图像修复方法因下采样、量化导致的信息损失问题,提出PUT框架,通过基于块的自编码器与非量化Transformer减少损失,引入条件增强可控性,在保真度和多样性上优于现有方法。

摘要:

近年来,基于Transformer的方法在图像修复领域已取得巨大成功。但我们发现,这类方案将每个像素视为一个token,因而会从两方面遭受信息损失问题:1)为提升效率,它们会将输入图像下采样到低得多的分辨率;2)它们将$256^3$种RGB值量化为少量(如512个)量化颜色值,量化后的像素索引会被用作Transformer的输入token与预测目标。为缓解这些问题,我们提出了一种名为“PUT”的新型基于Transformer的框架。具体而言,为在避免输入下采样的同时保持计算效率,我们设计了一种基于图像块的自编码器P-VQVAE(基于块的矢量量化变分自编码器):其编码器将带掩码的图像转换为互不重叠的块token,解码器则从修复后的token中恢复掩码区域,同时保持未掩码区域不变。为消除输入量化带来的信息损失,我们采用了非量化Transformer(Un-quantized Transformer),它直接将P-VQVAE编码器输出的特征作为输入,不经过任何量化,仅将量化token作为预测目标。此外,为让修复过程更具可控性,我们引入了语义与结构条件作为额外引导。大量实验表明,我们的方法在图像保真度上大幅优于现有基于Transformer的方法,并且在复杂大规模数据集(如ImageNet)上,相比当前最优的多元修复方法,实现了更高的多样性与更优的保真度。代码可在https://github.com/liuqk3/PUT 获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑