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

TransRef:用于参考引导图像修复的多尺度参考嵌入Transformer

TransRef: Multi-Scale Reference Embedding Transformer for Reference-Guided Image Inpainting

National Tsing Hua University(国立清华大学);National Institute of Informatics(信息学研究所)

Taorong Liu, Liang Liao, Delin Chen, Jing Xiao, Zheng Wang, Chia-Wen Lin, Shin'ichi Satoh

AI总结:

针对复杂语义环境和多样破损区域的图像修复挑战,提出基于Transformer的TransRef网络,通过参考嵌入过程结合参考补丁对齐与细化模块,构建含50K图像对的基准数据集,在定量和定性评估中优于现有方法。

摘要:

即使是在大规模数据上训练的最先进的基于学习的修复方法,完成具有复杂语义环境和多样破损区域模式的图像修复也具有挑战性。捕捉破损图像相同场景的参考图像为完成破损图像提供了丰富的指导,因为它与破损图像的破损区域共享相似的纹理和结构先验。在这项工作中,我们提出了一个基于Transformer的编码器-解码器网络,名为TransRef,用于参考引导的图像修复。具体而言,引导通过参考嵌入过程逐步进行,其中参考特征随后与破损图像的特征对齐并融合。为了精确利用参考特征进行引导,我们提出了参考补丁对齐(Ref-PA)模块,用于对齐参考图像和破损图像的补丁特征并协调它们的风格差异,同时提出了参考补丁Transformer(Ref-PT)模块来细化嵌入的参考特征。此外,为了促进参考引导图像恢复任务的研究,我们构建了一个包含50K对输入和参考图像的可公开访问的基准数据集。定量和定性评估均表明,参考信息和所提出的方法在完成复杂破损区域方面优于最先进的方法。代码和数据集可在https://github.com/Cameltr/TransRef获取。

英文摘要:

Image inpainting for completing complicated semantic environments and diverse hole patterns of corrupted images is challenging even for state-of-the-art learning-based inpainting methods trained on large-scale data. A reference image capturing the same scene of a corrupted image offers informative guidance for completing the corrupted image as it shares similar texture and structure priors to that of the holes of the corrupted image. In this work, we propose a transformer-based encoder-decoder network, named TransRef, for reference-guided image inpainting. Specifically, the guidance is conducted progressively through a reference embedding procedure, in which the referencing features are subsequently aligned and fused with the features of the corrupted image. For precise utilization of the reference features for guidance, a reference-patch alignment (Ref-PA) module is proposed to align the patch features of the reference and corrupted images and harmonize their style differences, while a reference-patch transformer (Ref-PT) module is proposed to refine the embedded reference feature. Moreover, to facilitate the research of reference-guided image restoration tasks, we construct a publicly accessible benchmark dataset containing 50K pairs of input and reference images. Both quantitative and qualitative evaluations demonstrate the efficacy of the reference information and the proposed method over the state-of-the-art methods in completing complex holes. Code and dataset can be accessed at https://github.com/Cameltr/TransRef.

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

↑