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

# PerturbedAttentionGuidance - ComfyUI Built-in Node Documentation

> PerturbedAttentionGuidance 节点对扩散模型应用扰动注意力引导，以提升生成质量。

PerturbedAttentionGuidance 节点对扩散模型应用扰动注意力引导，以提升生成质量。在采样过程中，它会进行额外预测，其中中间块的自注意力被替换为一个简化版本，该版本直接传递值投影，然后将正常条件预测与该扰动预测之间的缩放差值添加到去噪结果中。将 `scale` 设为 0 会完全禁用该效果。

## 输入

| 参数   | 描述                                                 | 数据类型  | 是否必需 | 范围                     |
| ---- | -------------------------------------------------- | ----- | ---- | ---------------------- |
| `模型` | 要应用扰动注意力引导的扩散模型                                    | MODEL | 是    | -                      |
| `规模` | 扰动注意力引导效果的强度（默认值：3.0）。设为 0 时，该节点不产生效果，并原样返回原始去噪结果。 | FLOAT | 是    | 0.0 - 100.0 (步长: 0.01) |

## 输出

| 输出名称    | 描述                        | 数据类型  |
| ------- | ------------------------- | ----- |
| `model` | 修改后的模型，其采样过程中附加了扰动注意力引导补丁 | MODEL |

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

***

**Source fingerprint (SHA-256):** `1cf824486ae695a9e563c70a4798aaf4c9c067ae3b53172c9767e3c5093d0096`
