> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/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.

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

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

## 输入参数

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

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

## 输出参数

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