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

# 应用ControlNet（阿里妈妈局部重绘）（ControlNetInpaintingAliMamaApply）

<div class="node-meta"><code>ControlNetInpaintingAliMamaApply</code><span>model/conditioning/controlnet</span><span>角色：条件修饰</span></div>

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

## 参数

| 参数              | 类型                       | 默认 / 范围             | 说明                             |
| --------------- | ------------------------ | ------------------- | ------------------------------ |
| `positive`      | CONDITIONING · 条件        | —（连线输入）             | 应用了 ControlNet 进行图像修复后的修改版正向条件 |
| `negative`      | CONDITIONING · 条件        | —（连线输入）             | 应用了 ControlNet 进行图像修复后的修改版负向条件 |
| `control_net`   | CONTROL_NET · ControlNet | —（连线输入）             | 由 ControlNetLoader 加载后的对象。     |
| `vae`           | VAE · 自编码器               | —（连线输入）             | 用于编码和解码图像的 VAE（变分自编码器）         |
| `image`         | IMAGE · 图像               | —（连线输入）             | RGB 图像输入；尺寸不一致会被缩放或裁切。         |
| `mask`          | MASK · 遮罩                | —（连线输入）             | 白色区域参与运算。                      |
| `strength`      | FLOAT                    | 0.0 \~ 10.0，步长 0.01 | 该节点作用的整体强度，1.0 为默认，0 相当于旁路。    |
| `start_percent` | FLOAT                    | 0.0 \~ 1.0，步长 0.001 | 从采样进度的该比例开始生效，0 为起点。           |
| `end_percent`   | FLOAT                    | 0.0 \~ 1.0，步长 0.001 | 到该比例停止生效，1 为终点。                |

## 输出

| 输出       | 类型           | 说明 |
| -------- | ------------ | -- |
| positive | CONDITIONING | 条件 |
| negative | CONDITIONING | 条件 |

## 怎么接

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

## 使用案例

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

## 端口与连线示意

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

## 实战提示

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

## 同类节点

[应用ControlNet（旧版）](/nodes/03/ControlNetApply.md) · [应用ControlNet（旧版高级）](/nodes/03/ControlNetApplyAdvanced.md) · [设置UnionControlNet类型](/nodes/03/SetUnionControlNetType.md) · [应用ControlNet](/nodes/03/ControlNetApplySD3.md)
