无需微调,实现精准区域控制的文生图方法
Region-Aware Text-to-Image Generation via Hard Binding and Soft Refinement
- 分两步生成:先硬绑定区域内容,再软优化整体细节
- 支持多区域修改而不影响其他部分,可直接重绘特定区域
- 无需额外模型,兼容主流文生图框架,适合需要精细布局的用户
区域提示(即组合生成)能实现细粒度空间控制,在实际应用中备受关注。然而,现有方法要么引入可训练模块,仅适用于特定模型;要么通过注意力掩码在交叉注意力层操作得分图,当区域数量增加时控制力受限。为此,我们提出RAG(区域感知文生图),基于区域描述实现精确布局生成。RAG将多区域生成分解为两个子任务:区域硬绑定,确保每个区域提示被正确执行;以及区域软精修,忽略视觉边界,增强相邻区域间的互动。此外,RAG首次实现无需依赖额外修复模型即可进行重绘,用户可在最终生成后修改不满意区域,其余保持不变。该方法无需微调,可作为提升提示遵循能力的通用模块适配多种框架。定量与定性实验表明,RAG在属性绑定和对象关系建模方面优于现有无微调方法。
原文摘要 · Abstract (English)
Regional prompting, or compositional generation, which enables fine-grained spatial control, has gained increasing attention for its practicality in real-world applications. However, previous methods either introduce additional trainable modules, thus only applicable to specific models, or manipulate on score maps within cross-attention layers using attention masks, resulting in limited control strength when the number of regions increases. To handle these limitations, we present RAG, a Regional-Aware text-to-image Generation method conditioned on regional descriptions for precise layout composition. RAG decouple the multi-region generation into two sub-tasks, the construction of individual region (Regional Hard Binding) that ensures the regional prompt is properly executed, and the overall detail refinement (Regional Soft Refinement) over regions that dismiss the visual boundaries and enhance adjacent interactions. Furthermore, RAG novelly makes repainting feasible, where users can modify specific unsatisfied regions in the last generation while keeping all other regions unchanged, without relying on additional inpainting models. Our approach is tuning-free and applicable to other frameworks as an enhancement to the prompt following property. Quantitative and qualitative experiments demonstrate that RAG achieves superior performance over attribute binding and object relationship than previous tuning-free methods.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。