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

通过显式空间约束强制实现测试时可控图像生成

Test-time Controllable Image Generation by Explicit Spatial Constraint Enforcement

Hangzhou Dianzi University(杭州电子科技大学);Harbin Institute of Technology (Shenzhen)(哈尔滨工业大学(深圳));The Hong Kong University of Science and Technology(香港科技大学)

Z. Zhang, B. Liu, J. Bao, L. Chen, S. Zhu, J. Yu

AI总结:

本文提出一种测试时可控图像生成方法,将空间条件解耦为语义与几何条件并分别强制一致性,结合提示补全、注意力图统计、几何变换模块和潜在表示回填,在 Coco-stuff 上布局一致性指标相对提升 30%。

摘要:

近年来,文本到图像生成越来越青睐各种形式的空问条件,例如掩码、边界框和关键点。然而,大多数现有方法需要针对特定形式的标注来微调原始模型,导致测试时泛化能力较差。与此同时,现有的免训练方法仅在简化提示和简单空间条件下表现良好。本文提出了一种新颖且通用的测试时可控生成方法,旨在处理自然文本提示和复杂空间条件。具体来说,我们将空间条件解耦为语义条件和几何条件,并在图像生成过程中分别强制它们的一致性。对于语义条件,我们致力于弥合语义条件与文本提示之间的差距,以及该条件与扩散模型注意力图之间的差距。为此,我们提出首先根据语义条件补全提示,然后通过测量干扰提示词在注意力图中的统计量以及它们在词空间中相对于该条件的距离,来消除这些干扰提示词的负面影响。为了进一步应对复杂的几何条件,我们引入了一个几何变换模块,在该模块中,将在注意力图中识别感兴趣区域(Region-of-Interests),并进一步利用这些区域根据几何条件对类别级潜在表示进行平移。更重要的是,我们提出了一种基于扩散的潜在表示回填方法,以显式消除感兴趣区域处潜在表示的影响,从而减少生成图像上的伪影。在 Coco-stuff 数据集上的实验表明,在布局一致性评估指标上,与最先进的免训练方法相比,我们实现了 30% 的相对提升。

英文摘要:

Recent text-to-image generation favors various forms of spatial conditions, e.g., masks, bounding boxes, and key points. However, the majority of the prior art requires form-specific annotations to fine-tune the original model, leading to poor test-time generalizability. Meanwhile, existing training-free methods work well only with simplified prompts and spatial conditions. In this work, we propose a novel yet generic test-time controllable generation method that aims at natural text prompts and complex conditions. Specifically, we decouple spatial conditions into semantic and geometric conditions and then enforce their consistency during the image-generation process individually. As for the former, we target bridging the gap between the semantic condition and text prompts, as well as the gap between such condition and the attention map from diffusion models. To achieve this, we propose to first complete the prompt w.r.t. semantic condition, and then remove the negative impact of distracting prompt words by measuring their statistics in attention maps as well as distances in word space w.r.t. this condition. To further cope with the complex geometric conditions, we introduce a geometric transform module, in which Region-of-Interests will be identified in attention maps and further used to translate category-wise latents w.r.t. geometric condition. More importantly, we propose a diffusion-based latents-refill method to explicitly remove the impact of latents at the RoI, reducing the artifacts on generated images. Experiments on Coco-stuff dataset showcase 30$\%$ relative boost compared to SOTA training-free methods on layout consistency evaluation metrics.

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

↑