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

# VOIDInpaintConditioning（VOIDInpaintConditioning）

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

VOIDInpaintConditioning 节点用于准备使用 CogVideoX 模型进行局部重绘所需的 conditioning 数据。它接收源视频和预处理后的 quadmask，通过 VAE 对其进行编码，并将二者组合成一个 32 通道的 conditioning 信号（其中 16 个通道来自遮罩，16 个通道来自被遮罩的视频），模型使用该信号来填充被遮罩的区域。

## 参数

| 参数           | 类型                | 默认 / 范围          | 说明                                                                                                           |
| ------------ | ----------------- | ---------------- | ------------------------------------------------------------------------------------------------------------ |
| `positive`   | CONDITIONING · 条件 | —（连线输入）          | 已加入局部重绘 latent 信息的正向 conditioning                                                                            |
| `negative`   | CONDITIONING · 条件 | —（连线输入）          | 已加入局部重绘 latent 信息的负向 conditioning                                                                            |
| `vae`        | VAE · 自编码器        | —（连线输入）          | 用于将遮罩和被遮罩的视频编码到 latent 空间的 VAE 模型                                                                            |
| `video`      | IMAGE · 图像        | —（连线输入）          | 源视频帧 \[T, H, W, 3]                                                                                           |
| `quadmask`   | MASK · 遮罩         | —（连线输入）          | 来自 VOIDQuadmaskPreprocess 的预处理 quadmask \[T, H, W]                                                           |
| `width`      | INT               | 16 \~ 16384，步长 8 | 将视频和遮罩调整到的宽度（默认值：672）                                                                                        |
| `height`     | INT               | 16 \~ 16384，步长 8 | 将视频和遮罩调整到的高度（默认值：384）                                                                                        |
| `length`     | INT               | 1 \~ 16384       | 要处理的像素帧数量。对于 CogVideoX-Fun-V1.5（patch_size_t=2），latent_t 必须为偶数——会产生奇数 latent_t 的长度会被向下取整（例如 49 → 45）（默认值：45） |
| `batch_size` | INT               | 1 \~ 64          | 输出噪声 latent 的批次大小（默认值：1）                                                                                     |

## 输出

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

## 怎么接

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

## 使用案例

属于「条件修饰」类节点，向下游提供条件，最终进采样器的 positive 或 negative。从 `positive`、`negative`、`vae` 开始填就能跑起来。典型接法：`CLIPTextEncode` → 本节点 → `KSampler.positive`。注意：宽高必须是 8 的倍数；SDXL 建议总像素约 1024²，Flux 建议 1MP 左右。

## 端口与连线示意

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

## 实战提示

- 宽高必须是 8 的倍数；SDXL 建议总像素约 1024²，Flux 建议 1MP 左右。
- 批量出图显存占用线性增长，爆显存时优先降 batch 而不是降分辨率。
