arXiv:2509.21938cs.CVcs.AI2025-09

无需训练即可用不精准的视觉条件生成更符合文本描述的图像。

SemanticControl: A Training-Free Approach for Handling Loosely Aligned Visual Conditions in ControlNet

  • 用辅助提示生成注意力掩码,动态调节视觉条件影响。
  • 在深度图、边缘图等条件下,文本一致性提升显著。
  • 适合处理想象场景或罕见姿势的图像生成任务。

ControlNet 通过引入深度图、边缘图等视觉条件,在文生图扩散模型中实现了精细的空间控制。然而其效果严重依赖于视觉条件与文本提示的精确对齐,这在罕见或想象场景中难以实现。例如,生成一只猫以特定姿势烹饪的图像,因缺乏合适的视觉条件而困难。相比之下,人类烹饪的姿势在常见场景中广泛存在,可作为粗略引导。但现有 ControlNet 难以有效利用此类松散对齐的条件,常导致文本忠实度下降或视觉伪影。为此,我们提出 SemanticControl,一种无需训练的方法,可有效利用语义相关但未对齐的视觉条件。核心思想是:先用与视觉条件匹配的辅助提示(如‘人类弹吉他’)进行辅助去噪,提取有信息量的注意力掩码;再将这些掩码用于真实目标提示(如‘猫弹吉他’)的去噪过程,从而抑制冲突区域的视觉干扰,增强文本引导。实验表明,该方法在深度图、边缘图和人体骨骼等多种条件下均优于现有基线。代码已公开于 https://mung3477.github.io/semantic-control。

原文摘要 · Abstract (English)

ControlNet has enabled detailed spatial control in text-to-image diffusion models by incorporating additional visual conditions such as depth or edge maps. However, its effectiveness heavily depends on the availability of visual conditions that are precisely aligned with the generation goal specified by text prompt-a requirement that often fails in practice, especially for uncommon or imaginative scenes. For example, generating an image of a cat cooking in a specific pose may be infeasible due to the lack of suitable visual conditions. In contrast, structurally similar cues can often be found in more common settings-for instance, poses of humans cooking are widely available and can serve as rough visual guides. Unfortunately, existing ControlNet models struggle to use such loosely aligned visual conditions, often resulting in low text fidelity or visual artifacts. To address this limitation, we propose SemanticControl, a training-free method for effectively leveraging misaligned but semantically relevant visual conditions. Our approach adaptively suppresses the influence of the visual condition where it conflicts with the prompt, while strengthening guidance from the text. The key idea is to first run an auxiliary denoising process using a surrogate prompt aligned with the visual condition (e.g., "a human playing guitar" for a human pose condition) to extract informative attention masks, and then utilize these masks during the denoising of the actual target prompt (e.g., cat playing guitar). Experimental results demonstrate that our method improves performance under loosely aligned conditions across various conditions, including depth maps, edge maps, and human skeletons, outperforming existing baselines. Our code is available at https://mung3477.github.io/semantic-control.

ControlNet图像生成语义对齐无训练

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。