> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# InstructPixToPixConditioning - ComfyUI Built-in Node Documentation

> Complete documentation for the InstructPixToPixConditioning node in ComfyUI. Learn its inputs, outputs, parameters and usage.

InstructPixToPixConditioning 节点通过将正向和负向文本提示与图像数据结合，为 InstructPix2Pix 图像编辑准备条件数据。它通过 VAE 编码器处理输入图像以创建潜在表示，并将这些潜在数据附加到正向和负向条件数据中。该节点会自动处理图像尺寸，将其裁剪为 8 像素的倍数，以确保与 VAE 编码过程兼容。

## 输入

| 参数     | 描述                      | 数据类型         | 是否必填 | 范围 |
| ------ | ----------------------- | ------------ | ---- | -- |
| `正面条件` | 包含文本提示和所需图像特征设置的正向条件数据  | CONDITIONING | 是    | -  |
| `负面条件` | 包含文本提示和不需要图像特征设置的负向条件数据 | CONDITIONING | 是    | -  |
| `vae`  | 用于将输入图像编码为潜在表示的 VAE 模型  | VAE          | 是    | -  |
| `像素`   | 待处理并编码到潜在空间的输入图像        | IMAGE        | 是    | -  |

**注意：** 输入图像尺寸会自动调整，通过将宽度和高度裁剪到最接近的 8 像素倍数，以确保与 VAE 编码过程兼容。

## 输出

| 输出名称     | 描述               | 数据类型         |
| -------- | ---------------- | ------------ |
| `正面条件`   | 附加了潜在图像表示的正向条件数据 | CONDITIONING |
| `负面条件`   | 附加了潜在图像表示的负向条件数据 | CONDITIONING |
| `Latent` | 与编码图像尺寸相同的空潜在张量  | LATENT       |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/InstructPixToPixConditioning/zh.md)

***

**Source fingerprint (SHA-256):** `4b2383c9d64efdb558758359bf544fc5a1be65c12b23b54152e2df79a6dd8d79`
