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

# InstructPixToPixConditioning - ComfyUI Built-in Node Documentation

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

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

## 输入

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

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

## 输出

| 输出名称     | 描述                            | 数据类型         |
| -------- | ----------------------------- | ------------ |
| `正面条件`   | 附加了潜空间图像表示的正向 conditioning 数据 | CONDITIONING |
| `负面条件`   | 附加了潜空间图像表示的负向 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):** `e9a5a05cdeafe9337ca2033111f1ad4f7314fa33d71a4764f62919857efc79f4`
