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

# 内补模型条件（InpaintModelConditioning）

<div class="node-meta"><code>InpaintModelConditioning</code><span>model/conditioning</span><span>角色：条件修饰</span><span class="star">★ 常用节点</span></div>

InpaintModelConditioning 节点旨在简化修复模型的条件处理流程，支持集成和操作多种条件输入以定制修复输出。它涵盖从加载特定模型检查点、应用样式或控制网络模型，到编码和组合条件元素等广泛功能，是自定义修复任务的综合工具。

## 参数

| 参数           | 类型                | 默认 / 范围      | 说明                                                  |
| ------------ | ----------------- | ------------ | --------------------------------------------------- |
| `positive`   | CONDITIONING · 条件 | —（连线输入）      | 你希望出现的内容，来自 CLIPTextEncode。                         |
| `negative`   | CONDITIONING · 条件 | —（连线输入）      | 你不希望出现的内容，CFG>1 时才生效。                               |
| `vae`        | VAE · 自编码器        | —（连线输入）      | 指定条件处理过程中使用的 VAE 模型。此输入对于确定将使用的 VAE 模型的具体架构和参数至关重要。 |
| `pixels`     | IMAGE · 图像        | —（连线输入）      | IMAGE。                                              |
| `mask`       | MASK · 遮罩         | —（连线输入）      | 白色区域参与运算。                                           |
| `noise_mask` | BOOLEAN · 布尔      | true / false | 需接入 RandomNoise / DisableNoise 等噪声节点，自定义采样流程必填。     |

## 输出

| 输出       | 类型           | 说明  |
| -------- | ------------ | --- |
| positive | CONDITIONING | 条件  |
| negative | CONDITIONING | 条件  |
| latent   | LATENT       | 潜空间 |

## 怎么接

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

## 使用案例

属于「条件修饰」类节点，向下游提供条件，最终进采样器的 positive 或 negative。从 `positive`、`negative`、`vae` 开始填就能跑起来。典型接法：`CLIPTextEncode` → 本节点 → `KSampler.positive`。注意：遮罩白色为生效区、黑色为忽略区；边缘务必羽化 8-32px 避免硬边。

## 端口与连线示意

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

## 实战提示

- 遮罩白色为生效区、黑色为忽略区；边缘务必羽化 8-32px 避免硬边。

## 同类节点

[ClipSetLastLayer](/nodes/03/CLIPSetLastLayer.md) · [ClipTextEncode](/nodes/03/CLIPTextEncode.md) · [CLIP视觉编码](/nodes/03/CLIPVisionEncode.md) · [参考Latent](/nodes/03/ReferenceLatent.md) · [应用风格模型](/nodes/03/StyleModelApply.md) · [音频编码器编码](/nodes/03/AudioEncoderEncode.md) · [CLIP文本编码(ControlNet)](/nodes/03/CLIPTextEncodeControlnet.md) · [规格化视频Latent](/nodes/03/NormalizeVideoLatentStart.md) · [PiD 条件处理](/nodes/03/PiDConditioning.md) · [多参考潜空间](/nodes/03/ReferenceMultiLatent.md) · [ReferenceTimbreAudio](/nodes/03/ReferenceTimbreAudio.md) · [保存条件](/nodes/03/SaveConditioning.md)
