arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2205.05076cs.CVcs.GR
收藏

减少多元图像修补中Transformers的信息丢失

Reduce Information Loss in Transformers for Pluralistic Image Inpainting

University of Science and Technology of China(中国科学技术大学);Microsoft(微软)

Qiankun Liu, Zhentao Tan, Dongdong Chen, Qi Chu, Xiyang Dai, Yinpeng Chen, Mengchen Liu, Lu Yuan, Nenghai Yu

摘要:

近年来,Transformers在多元图像修补方面取得了巨大的成功。然而,我们发现现有的基于Transformer的解决方案将每个像素视为令牌,因此从两个方面遭受信息丢失问题:1)出于效率考虑,他们将输入图像下采样到低得多的分辨率,导致信息丢失和掩蔽区域边界的额外未对准。2)它们将$256^3$ RGB像素量化为少量(例如512)量化像素。量化像素的索引被用作Transformer的输入和预测目标的令牌。虽然使用额外的CNN网络对低分辨率结果进行上采样和细化,但很难将丢失的信息恢复回来。为了尽可能多地保留输入信息,我们提出了一种新的基于Transformer的框架“PUT”。具体来说,为了避免输入下采样,同时保持计算效率,我们设计了一个基于补丁的自动编码器P-VQVAE,其中编码器将掩蔽图像转换为非重叠补丁令牌,解码器从修复令牌中恢复掩蔽区域,同时保持未掩蔽区域不变。为了消除量化带来的信息损失,提出了一种未量化的Transformer(UQ-Transformer)算法,该算法直接将P-VQVAE编码器输出的特征作为输入,不进行量化,只将量化后的特征作为预测目标。大量的实验表明,PUT大大优于国家的最先进的方法对图像的保真度,特别是对大的掩蔽区域和复杂的大规模数据集。代码可在https://github.com/liuqk3/PUT上获得

英文摘要:

Transformers have achieved great success in pluralistic image inpainting recently. However, we find existing transformer based solutions regard each pixel as a token, thus suffer from information loss issue from two aspects: 1) They downsample the input image into much lower resolutions for efficiency consideration, incurring information loss and extra misalignment for the boundaries of masked regions. 2) They quantize $256^3$ RGB pixels to a small number (such as 512) of quantized pixels. The indices of quantized pixels are used as tokens for the inputs and prediction targets of transformer. Although an extra CNN network is used to upsample and refine the low-resolution results, it is difficult to retrieve the lost information back.To keep input information as much as possible, we propose a new transformer based framework "PUT". Specifically, to avoid input downsampling while maintaining the computation efficiency, we design a patch-based auto-encoder P-VQVAE, where the encoder converts the masked image into non-overlapped patch tokens and the decoder recovers the masked regions from inpainted tokens while keeping the unmasked regions unchanged. To eliminate the information loss caused by quantization, an Un-Quantized Transformer (UQ-Transformer) is applied, which directly takes the features from P-VQVAE encoder as input without quantization and regards the quantized tokens only as prediction targets. Extensive experiments show that PUT greatly outperforms state-of-the-art methods on image fidelity, especially for large masked regions and complex large-scale datasets. Code is available at https://github.com/liuqk3/PUT

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

↑