arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.01223cs.CVcs.AI
收藏

PainterNet:基于实际 Token 注意力与多样化掩码控制的自适应图像修复

PainterNet: Adaptive Image Inpainting with Actual-Token Attention and Diverse Mask Control

OPPO AI Center(OPPO AI中心)

Ruichen Wang, Junliang Zhang, Qingsong Xie, Chen Chen, Haonan Lu

AI总结:

针对扩散模型图像修复中的文本语义一致性与用户掩码习惯问题,提出可插拔的 PainterNet,通过局部提示、ACP、ATAL 及 PainterData/PainterBench 提升修复质量与文本一致性。

摘要:

近年来,扩散模型在图像修复领域展现出卓越性能。基于扩散模型的修复方法通常能够为掩码区域生成逼真、高质量的图像内容。然而,受扩散模型自身限制,现有方法往往在图像与文本之间的语义一致性以及用户编辑习惯方面存在问题。为解决这些问题,我们提出 PainterNet,这是一种可灵活嵌入各类扩散模型的插件。为在掩码区域生成与用户输入提示高度一致的图像内容,我们提出局部提示输入、注意力控制点(ACP)和实际 Token 注意力损失(ATAL),以增强模型对局部区域的关注。此外,我们重新设计了训练和测试数据集中的 MASK 生成算法,以模拟用户施加 MASK 的习惯,并引入定制的新训练数据集 PainterData 与基准数据集 PainterBench。大量实验分析表明,PainterNet 在图像质量以及全局/局部文本一致性等关键指标上超越了现有最先进模型。

英文摘要:

Recently, diffusion models have exhibited superior performance in the area of image inpainting. Inpainting methods based on diffusion models can usually generate realistic, high-quality image content for masked areas. However, due to the limitations of diffusion models, existing methods typically encounter problems in terms of semantic consistency between images and text, and the editing habits of users. To address these issues, we present PainterNet, a plugin that can be flexibly embedded into various diffusion models. To generate image content in the masked areas that highly aligns with the user input prompt, we proposed local prompt input, Attention Control Points (ACP), and Actual-Token Attention Loss (ATAL) to enhance the model's focus on local areas. Additionally, we redesigned the MASK generation algorithm in training and testing dataset to simulate the user's habit of applying MASK, and introduced a customized new training dataset, PainterData, and a benchmark dataset, PainterBench. Our extensive experimental analysis exhibits that PainterNet surpasses existing state-of-the-art models in key metrics including image quality and global/local text consistency.

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

↑