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/03/ControlNetInpaintingAliMamaApply.md.

应用ControlNet(阿里妈妈局部重绘)(ControlNetInpaintingAliMamaApply)

ControlNetInpaintingAliMamaApplymodel/conditioning/controlnet角色:条件修饰

ControlNetInpaintingAliMamaApply 节点通过将正向和负向条件与控制图像和遮罩相结合,为图像修复任务应用 ControlNet 条件。它处理输入图像和遮罩以创建修改后的条件,从而引导生成过程,允许控制图像中哪些区域被修复。该节点支持强度调整和时间控制,以微调 ControlNet 在生成过程不同阶段的影响。

参数

参数类型默认 / 范围说明
positiveCONDITIONING · 条件—(连线输入)应用了 ControlNet 进行图像修复后的修改版正向条件
negativeCONDITIONING · 条件—(连线输入)应用了 ControlNet 进行图像修复后的修改版负向条件
control_netCONTROL_NET · ControlNet—(连线输入)由 ControlNetLoader 加载后的对象。
vaeVAE · 自编码器—(连线输入)用于编码和解码图像的 VAE(变分自编码器)
imageIMAGE · 图像—(连线输入)RGB 图像输入;尺寸不一致会被缩放或裁切。
maskMASK · 遮罩—(连线输入)白色区域参与运算。
strengthFLOAT0.0 ~ 10.0,步长 0.01该节点作用的整体强度,1.0 为默认,0 相当于旁路。
start_percentFLOAT0.0 ~ 1.0,步长 0.001从采样进度的该比例开始生效,0 为起点。
end_percentFLOAT0.0 ~ 1.0,步长 0.001到该比例停止生效,1 为终点。

输出

输出类型说明
positiveCONDITIONING条件
negativeCONDITIONING条件

怎么接

  • 上游:CLIPTextEncode / 条件节点
  • 下游:KSampler.positive / negative
  • 接线:上游接 CLIPTextEncode 出来的条件,输出继续接 KSampler 的 positive/negative;多个条件修饰可以串联,后面的会覆盖或叠加前面的区域/强度设置。

使用案例

属于「条件修饰」类节点,向下游提供条件,最终进采样器的 positive 或 negative。从 positive、negative、control_net 开始填就能跑起来。典型接法:CLIPTextEncode → 本节点 → KSampler.positive。注意:ControlNet 强度过高会「糊住」画面失去生成感,一般从 0.6-0.8 起调。

端口与连线示意

ControlNetInpaintingAliMamaApply 端口与连线示意

实战提示

  • ControlNet 强度过高会「糊住」画面失去生成感,一般从 0.6-0.8 起调。
  • 遮罩白色为生效区、黑色为忽略区;边缘务必羽化 8-32px 避免硬边。

同类节点

应用ControlNet(旧版) · 应用ControlNet(旧版高级) · 设置UnionControlNet类型 · 应用ControlNet