一石二鸟:面向文本引导图像修复的空文本-空频率感知扩散模型
One Stone with Two Birds: A Null-Text-Null Frequency-Aware Diffusion Models for Text-Guided Image Inpainting
AI总结:
提出NTN-Diff扩散模型,通过频率感知分解和两阶段去噪,同时保持未掩码区域并实现文本引导修复的语义一致性,优于现有方法。
摘要:
文本引导的图像修复旨在根据文本提示重建掩码区域,其长期挑战在于保持未掩码区域的完整性,同时实现未掩码区域与修复后掩码区域之间的语义一致性。以往的方法未能同时解决这两个问题,往往只能补救其中之一。我们观察到,这些问题的根源在于编码不同图像属性的混合(例如中低频)频带的纠缠,这些频带在去噪过程中对文本提示表现出不同的鲁棒性。在本文中,我们提出了一种空文本-空频率感知扩散模型,称为NTN-Diff,用于文本引导的图像修复,通过将掩码区域与未掩码区域之间的语义一致性分解为每个频带的一致性,同时保持未掩码区域,从而依次规避这两个挑战。基于扩散过程,我们进一步将去噪过程分为早期(高噪声)和晚期(低噪声)阶段,在去噪过程中将中频和低频带解耦。如观察所示,稳定的中频带在文本引导的去噪过程中逐步去噪以实现语义对齐,同时作为空文本去噪过程的引导,对掩码区域的低频带进行去噪,随后在晚期阶段进行文本引导去噪,以实现掩码区域与未掩码区域之间中低频带的语义一致性,同时保持未掩码区域。大量实验验证了NTN-Diff相对于最先进的文本引导扩散模型的优越性。我们的代码可在https://github.com/htyjers/NTN-Diff获取。
英文摘要:
Text-guided image inpainting aims at reconstructing the masked regions as per text prompts, where the longstanding challenges lie in the preservation for unmasked regions, while achieving the semantics consistency between unmasked and inpainted masked regions. Previous arts failed to address both of them, always with either of them to be remedied. Such facts, as we observed, stem from the entanglement of the hybrid (e.g., mid-and-low) frequency bands that encode varied image properties, which exhibit different robustness to text prompts during the denoising process. In this paper, we propose a null-text-null frequency-aware diffusion models, dubbed \textbf{NTN-Diff}, for text-guided image inpainting, by decomposing the semantics consistency across masked and unmasked regions into the consistencies as per each frequency band, while preserving the unmasked regions, to circumvent two challenges in a row. Based on the diffusion process, we further divide the denoising process into early (high-level noise) and late (low-level noise) stages, where the mid-and-low frequency bands are disentangled during the denoising process. As observed, the stable mid-frequency band is progressively denoised to be semantically aligned during text-guided denoising process, which, meanwhile, serves as the guidance to the null-text denoising process to denoise low-frequency band for the masked regions, followed by a subsequent text-guided denoising process at late stage, to achieve the semantics consistency for mid-and-low frequency bands across masked and unmasked regions, while preserve the unmasked regions. Extensive experiments validate the superiority of NTN-Diff over the state-of-the-art diffusion models to text-guided diffusion models. Our code can be accessed from https://github.com/htyjers/NTN-Diff.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。