用两阶段方法提升文本引导物体修复的准确性和可控性。
Improving Text-guided Object Inpainting with Semantic Pre-inpainting
- 先用多模态模型预测目标物体语义特征,再生成高质量图像。
- 在OpenImages-V6和MSCOCO上优于现有方法,修复更精准。
- 适合需要精细控制图像生成的视觉编辑任务使用。
近年来,大型文生图扩散模型取得显著成功,展现出生成高质量图像的巨大潜力。进一步提升图像可编辑性,推动了在图像指定区域中根据文本提示修复新物体这一下游任务的发展。然而,该问题面临两大挑战:1)仅依赖单一U-Net在所有去噪步骤中对齐文本与视觉对象,难以生成理想物体;2)扩散模型复杂采样空间中,物体生成的可控性无法保证。本文提出将传统的单阶段物体修复分解为两个级联过程:1)语义预修复,在多模态特征空间中推断目标物体的语义特征;2)基于这些语义特征,在扩散潜在空间中进行高保真度物体生成。为此,我们级联一个基于Transformer的语义修复器与一个物体修复扩散模型,构建新型级联式Transformer-扩散(CAT-Diffusion)框架。技术上,语义修复器在未遮挡上下文和文本提示条件下训练以预测目标物体语义特征,其输出作为信息丰富的视觉提示,通过参考适配层引导高保真度物体生成,实现可控修复。在OpenImages-V6和MSCOCO上的大量实验验证了CAT-Diffusion相比当前最优方法的优越性。代码已公开于\url{https://github.com/Nnn-s/CATdiffusion}。
原文摘要 · Abstract (English)
Recent years have witnessed the success of large text-to-image diffusion models and their remarkable potential to generate high-quality images. The further pursuit of enhancing the editability of images has sparked significant interest in the downstream task of inpainting a novel object described by a text prompt within a designated region in the image. Nevertheless, the problem is not trivial from two aspects: 1) Solely relying on one single U-Net to align text prompt and visual object across all the denoising timesteps is insufficient to generate desired objects; 2) The controllability of object generation is not guaranteed in the intricate sampling space of diffusion model. In this paper, we propose to decompose the typical single-stage object inpainting into two cascaded processes: 1) semantic pre-inpainting that infers the semantic features of desired objects in a multi-modal feature space; 2) high-fieldity object generation in diffusion latent space that pivots on such inpainted semantic features. To achieve this, we cascade a Transformer-based semantic inpainter and an object inpainting diffusion model, leading to a novel CAscaded Transformer-Diffusion (CAT-Diffusion) framework for text-guided object inpainting. Technically, the semantic inpainter is trained to predict the semantic features of the target object conditioning on unmasked context and text prompt. The outputs of the semantic inpainter then act as the informative visual prompts to guide high-fieldity object generation through a reference adapter layer, leading to controllable object inpainting. Extensive evaluations on OpenImages-V6 and MSCOCO validate the superiority of CAT-Diffusion against the state-of-the-art methods. Code is available at \url{https://github.com/Nnn-s/CATdiffusion}.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。