> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# Latent应用操作CFG（LatentApplyOperationCFG）

<div class="node-meta"><code>LatentApplyOperationCFG</code><span>model/latent/advanced/operations</span><span>角色：模型补丁</span></div>

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

## 参数

| 参数                  | 类型               | 默认 / 范围             | 说明                                     |
| ------------------- | ---------------- | ------------------- | -------------------------------------- |
| `model`             | MODEL · 扩散模型     | —（连线输入）             | 已将 CFG 操作应用于其采样过程的修改后模型                |
| `operation`         | LATENT_OPERATION | —（连线输入）             | add / subtract / and / or / xor 等布尔运算。 |
| `start_percent`（选填） | FLOAT            | 0.0 \~ 1.0，步长 0.001 | 操作开始应用时的去噪调度比例；0 表示调度的起点（默认值：0.0）      |
| `end_percent`（选填）   | FLOAT            | 0.0 \~ 1.0，步长 0.001 | 操作停止应用时的去噪调度比例；1 表示调度的终点（默认值：1.0）      |

## 输出

| 输出    | 类型    | 说明   |
| ----- | ----- | ---- |
| MODEL | MODEL | 扩散模型 |

## 怎么接

- **上游**：CheckpointLoaderSimple / UNETLoader
- **下游**：KSampler / 下一个补丁节点
- **接线**：串在模型链中间：上游接 CheckpointLoaderSimple / UNETLoader 的 MODEL，输出接 KSampler 的 `model` 或下一个补丁；多个补丁叠加时顺序会改变结果。

## 使用案例

属于「模型补丁」类节点，向下游提供可采样的模型对象。从 `model`、`operation` 开始填就能跑起来。典型接法：`CheckpointLoaderSimple` → 本节点 → `KSampler`。输出类型是 MODEL，只能接同类型的输入端口，颜色对不上就是接错了。

## 端口与连线示意

![LatentApplyOperationCFG 端口与连线示意](/svg/LatentApplyOperationCFG.svg)

## 同类节点

[Latent应用操作](/nodes/04/LatentApplyOperation.md) · [Latent Operation Blend](/nodes/04/LatentOperationBlend.md) · [Latent操作锐化](/nodes/04/LatentOperationSharpen.md) · [Latent操作色调映射Reinhard](/nodes/04/LatentOperationTonemapReinhard.md)
