Skip to main content
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
The InstructPixToPixConditioning node prepares conditioning data for InstructPix2Pix image editing by combining positive and negative text prompts with image data. It processes input images through a VAE encoder to create latent representations and attaches these latents to both positive and negative conditioning data. The node automatically handles image dimensions by cropping to multiples of 8 pixels for compatibility with the VAE encoding process.

Inputs

ParameterData TypeRequiredRangeDescription
positiveCONDITIONINGYes-Positive conditioning data containing text prompts and settings for desired image characteristics
negativeCONDITIONINGYes-Negative conditioning data containing text prompts and settings for undesired image characteristics
vaeVAEYes-VAE model used for encoding input images into latent representations
pixelsIMAGEYes-Input image to be processed and encoded into latent space
Note: The input image dimensions are automatically adjusted by cropping to the nearest multiple of 8 pixels in both width and height to ensure compatibility with the VAE encoding process.

Outputs

Output NameData TypeDescription
positiveCONDITIONINGPositive conditioning data with attached latent image representation
negativeCONDITIONINGNegative conditioning data with attached latent image representation
latentLATENTEmpty latent tensor with the same dimensions as the encoded image