For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /nodes/04/LatentApplyOperationCFG.md.

Latent应用操作CFG(LatentApplyOperationCFG)

LatentApplyOperationCFGmodel/latent/advanced/operations角色:模型补丁

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

参数

参数类型默认 / 范围说明
modelMODEL · 扩散模型—(连线输入)已将 CFG 操作应用于其采样过程的修改后模型
operationLATENT_OPERATION—(连线输入)add / subtract / and / or / xor 等布尔运算。
start_percent(选填)FLOAT0.0 ~ 1.0,步长 0.001操作开始应用时的去噪调度比例;0 表示调度的起点(默认值:0.0)
end_percent(选填)FLOAT0.0 ~ 1.0,步长 0.001操作停止应用时的去噪调度比例;1 表示调度的终点(默认值:1.0)

输出

输出类型说明
MODELMODEL扩散模型

怎么接

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

使用案例

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

端口与连线示意

LatentApplyOperationCFG 端口与连线示意

同类节点

Latent应用操作 · Latent Operation Blend · Latent操作锐化 · Latent操作色调映射Reinhard