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

# InstructPixToPixConditioning - ComfyUI Built-in Node Documentation

> InstructPixToPixConditioning 节点通过将正向和负向文本提示与图像数据相结合，为 InstructPix2Pix 图像编辑准备条件数据。

InstructPixToPixConditioning 节点通过将正向和负向文本提示与图像数据相结合，为 InstructPix2Pix 图像编辑准备条件数据。它通过 VAE 将输入图像编码为潜在表示，并将该潜在表示附加到正向和负向条件数据上，同时返回一个匹配的空潜在表示。图像尺寸会自动裁剪为 8 像素的倍数，以便 VAE 能够处理它们。

## 输入

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

**注意：** 输入图像的尺寸会自动调整，通过在宽度和高度上中心裁剪为 8 像素的倍数，以确保兼容 VAE 编码过程。

## 输出

| 输出名称       | 描述                                           | 数据类型         |
| ---------- | -------------------------------------------- | ------------ |
| `positive` | 已附加编码图像潜在表示（作为 `concat_latent_image`）的正向条件数据 | CONDITIONING |
| `negative` | 已附加编码图像潜在表示（作为 `concat_latent_image`）的负向条件数据 | 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):** `e9a5a05cdeafe9337ca2033111f1ad4f7314fa33d71a4764f62919857efc79f4`
