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

Seg2Any:具备精确形状与语义控制的开放集分割掩码到图像生成

Seg2Any: Open-set Segmentation-Mask-to-Image Generation with Precise Shape and Semantic Control

Shanghai Key Lab of Intell. Info. Processing, School of CS, Fudan University(上海智能信息处理关键实验室,复旦大学计算机学院);Shanghai Collaborative Innovation Center of Intelligent Visual Computing(上海智能视觉计算协同创新中心);HiThink Research(HiThink研究机构)

Danfeng Li, Hui Zhang, Sheng Wang, Jiacheng Li, Zuxuan Wu

AI总结:

本文提出Seg2Any框架,通过解耦分割掩码为语义与高频形状条件并引入属性隔离注意力机制,结合大规模数据集SACap-1M,解决了分割掩码到图像生成中语义与形状一致性及多实体属性泄漏问题,在开放集和封闭集基准上取得最优性能。

摘要:

尽管扩散模型近期取得了进展,顶尖的文本到图像(T2I)模型仍难以实现精确的空间布局控制,即准确生成具有指定属性和位置的实体。分割掩码到图像(S2I)生成通过引入像素级空间引导和区域文本提示,已成为一种有前景的解决方案。然而,现有的S2I方法无法同时保证语义一致性和形状一致性。为应对这些挑战,我们提出了Seg2Any,一个基于先进多模态扩散Transformer(例如FLUX)构建的新型S2I框架。首先,为同时实现语义和形状一致性,我们将分割掩码条件解耦为区域语义分量和高频形状分量。区域语义条件通过语义对齐注意力掩码引入,确保生成的实体遵循其指定的文本提示。代表实体边界的高频形状条件被编码为实体轮廓图,然后作为额外模态通过多模态注意力引入,以引导图像空间结构。其次,为防止多实体场景中实体间的属性泄漏,我们引入了属性隔离注意力掩码机制,该机制在图像自注意力过程中约束每个实体的图像token仅关注自身。为支持开放集S2I生成,我们构建了SACap-1M,一个包含100万张图像、590万个分割实体及详细区域描述的大规模数据集,以及用于全面S2I评估的SACap-Eval基准。大量实验表明,Seg2Any在开放集和封闭集S2I基准上均达到了最先进的性能,尤其在实体的细粒度空间和属性控制方面。

英文摘要:

Despite recent advances in diffusion models, top-tier text-to-image (T2I) models still struggle to achieve precise spatial layout control, i.e. accurately generating entities with specified attributes and locations. Segmentation-mask-to-image (S2I) generation has emerged as a promising solution by incorporating pixel-level spatial guidance and regional text prompts. However, existing S2I methods fail to simultaneously ensure semantic consistency and shape consistency. To address these challenges, we propose Seg2Any, a novel S2I framework built upon advanced multimodal diffusion transformers (e.g. FLUX). First, to achieve both semantic and shape consistency, we decouple segmentation mask conditions into regional semantic and high-frequency shape components. The regional semantic condition is introduced by a Semantic Alignment Attention Mask, ensuring that generated entities adhere to their assigned text prompts. The high-frequency shape condition, representing entity boundaries, is encoded as an Entity Contour Map and then introduced as an additional modality via multi-modal attention to guide image spatial structure. Second, to prevent attribute leakage across entities in multi-entity scenarios, we introduce an Attribute Isolation Attention Mask mechanism, which constrains each entity's image tokens to attend exclusively to themselves during image self-attention. To support open-set S2I generation, we construct SACap-1M, a large-scale dataset containing 1 million images with 5.9 million segmented entities and detailed regional captions, along with a SACap-Eval benchmark for comprehensive S2I evaluation. Extensive experiments demonstrate that Seg2Any achieves state-of-the-art performance on both open-set and closed-set S2I benchmarks, particularly in fine-grained spatial and attribute control of entities.

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

↑