通过去噪实现粘贴、修复与协调:基于预训练扩散模型的主体驱动图像编辑
Paste, Inpaint and Harmonize via Denoising: Subject-Driven Image Editing with Pre-Trained Diffusion Model
AI总结:
针对文本描述编辑图像易损害主体身份或需额外微调的问题,提出PhD框架,结合示例图像与文本,通过分割粘贴、修复协调模块引导冻结的预训练扩散模型编辑,在两项任务上达SOTA。
摘要:
文本到图像生成模型因可通过用户指定描述实现灵活的图像编辑,正受到越来越多的关注。然而,仅靠文本描述不足以详尽呈现主体的细节,往往会损害主体的身份特征,或是需要针对每个主体额外进行微调。我们提出了一个名为\textit{Paste, Inpaint and Harmonize via Denoising}(PhD,基于去噪的粘贴、修复与协调)的新框架,该框架除文本描述外,还利用一张示例图像来明确用户的编辑意图。在粘贴步骤中,采用现成的分割模型识别示例图像中用户指定的主体,随后将该主体插入背景图像,作为同时捕捉场景上下文与主体身份的初始化结果。为保证生成或编辑图像的视觉连贯性,我们引入了一个修复与协调模块,引导预训练扩散模型将插入的主体自然无缝地融入场景。由于我们保持预训练扩散模型的参数冻结,保留了其强大的图像合成能力与文本驱动能力,因此能实现高质量的编辑效果,并支持通过多样化文本进行灵活编辑。在实验中,我们将PhD应用于两类任务:主体驱动的图像编辑任务,以及探索给定参考主体的文本驱动场景生成任务。与基线方法的定量和定性对比均表明,我们的方法在两项任务中都达到了当前最优性能。更多定性结果可访问网址:https://sites.google.com/view/phd-demo-page。
英文摘要:
Text-to-image generative models have attracted rising attention for flexible image editing via user-specified descriptions. However, text descriptions alone are not enough to elaborate the details of subjects, often compromising the subjects' identity or requiring additional per-subject fine-tuning. We introduce a new framework called \textit{Paste, Inpaint and Harmonize via Denoising} (PhD), which leverages an exemplar image in addition to text descriptions to specify user intentions. In the pasting step, an off-the-shelf segmentation model is employed to identify a user-specified subject within an exemplar image which is subsequently inserted into a background image to serve as an initialization capturing both scene context and subject identity in one. To guarantee the visual coherence of the generated or edited image, we introduce an inpainting and harmonizing module to guide the pre-trained diffusion model to seamlessly blend the inserted subject into the scene naturally. As we keep the pre-trained diffusion model frozen, we preserve its strong image synthesis ability and text-driven ability, thus achieving high-quality results and flexible editing with diverse texts. In our experiments, we apply PhD to both subject-driven image editing tasks and explore text-driven scene generation given a reference subject. Both quantitative and qualitative comparisons with baseline methods demonstrate that our approach achieves state-of-the-art performance in both tasks. More qualitative results can be found at \url{https://sites.google.com/view/phd-demo-page}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。