> ## 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.

# LatentApplyOperationCFG - ComfyUI Built-in Node Documentation

> LatentApplyOperationCFG 节点在模型采样过程的无分类器引导（CFG）步骤中应用一个 latent 操作。

LatentApplyOperationCFG 节点在模型采样过程的无分类器引导（CFG）步骤中应用一个 latent 操作。它会拦截 CFG 之前产生的条件输出，将连接的操作应用于 latent 值，并返回具有此修改后采样行为的模型。

## 输入

| 参数   | 描述                       | 数据类型              | 必需 | 范围 |
| ---- | ------------------------ | ----------------- | -- | -- |
| `模型` | 将应用 CFG 操作的模型            | MODEL             | 是  | -  |
| `操作` | 在 CFG 采样过程中应用的 latent 操作 | LATENT\_OPERATION | 是  | -  |

注意：此节点被标记为实验性。该操作会在 CFG 采样过程中应用于模型的条件输出。当存在两个条件输出时，该操作会应用于第一个和第二个输出之间的差值，并将第二个输出加回结果。当只存在一个条件输出时，该操作会直接应用于该输出。

## 输出

| 输出名称    | 描述                      | 数据类型  |
| ------- | ----------------------- | ----- |
| `model` | 已将 CFG 操作应用于其采样过程的修改后模型 | MODEL |

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

***

**Source fingerprint (SHA-256):** `e383684a785878bfa4004c2fac78ae562d8e035fdfe081f8e4ebbb2c50161987`
