> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SelfAttentionGuidance - ComfyUI Built-in Node Documentation

> Complete documentation for the SelfAttentionGuidance node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/SelfAttentionGuidance/zh.md)

> 本文档由 AI 生成，如果您发现任何错误或有改进建议，请随时贡献！[在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/SelfAttentionGuidance/en.md)

自注意力引导节点通过在采样过程中修改注意力机制，为扩散模型施加引导。它从无条件去噪步骤中捕获注意力分数，并使用这些分数创建影响最终输出的模糊引导图。此技术通过利用模型自身的注意力模式来引导生成过程。

## 输入参数

| 参数        | 数据类型  | 必需 | 取值范围       | 描述                    |
| --------- | ----- | -- | ---------- | --------------------- |
| `模型`      | MODEL | 是  | -          | 要应用自注意力引导的扩散模型        |
| `缩放`      | FLOAT | 否  | -2.0 到 5.0 | 自注意力引导效果的强度（默认值：0.5）  |
| `模糊Sigma` | FLOAT | 否  | 0.0 到 10.0 | 用于创建引导图的模糊程度（默认值：2.0） |

## 输出结果

| 输出名称 | 数据类型  | 描述              |
| ---- | ----- | --------------- |
| `模型` | MODEL | 应用了自注意力引导的修改后模型 |

**注意：** 此节点目前处于实验阶段，在处理分块批次时存在限制。它只能保存一次 UNet 调用的注意力分数，可能无法正确处理较大的批次大小。
