1. VAE Encode(for inpainting)
Applicable for Partial Repainting, right-click to achieve Partial Repainting through Open in MaskEditor.
2. Set Latent Noise Mask
The second method for partial repainting involves first encoding the image through a VAE encoder to transform it into content recognizable in latent space. Then, regenerate the masked part in the latent space.
Compared to the VAE Encode (for Inpainting) method, this approach can better understand the content that needs to be regenerated, resulting in a lower probability of generating incorrect images. It will reference the image to be redrawn.
3. Rotate Latent
Rotate the image clockwise.
4. Flip Latent
Flip the image horizontally or vertically.
5. Crop Latent
Used to crop the image into a new shape.
6. VAE Encode
7. VAE Decode
8. Latent From Batch
Extract latent images from batches. The Latent From Batch node can be used to select a latent image or image segment from a batch. This is very useful in workflows where isolating specific latent images or images is required.
Parameters:
batch_index: The index of the first latent image to be selected.
length: The number of latent images to retrieve.
9. Repeat Latent Batch
Repeat a batch of images, useful for creating multiple variations of an image in an IMG2IMG workflow.
Parameters:
amount: The number of repetitions.
10. Rebatch Latents
Can be used to split or merge batches of latent space images.
11. Upscale Latent
Adjust the resolution of latent space images, with pixel filling.
Parameters:
upscale_method: The method of pixel filling.
width: The width of the adjusted latent space image.
height: The height of the adjusted latent space image.
crop: Indicates whether the image is to be cropped.
*The Upscale image in latent space may suffer from degradation when decoded through VAE. KSampler can be used for secondary sampling to repair the image.
12. Latent Composite
Overlay one image onto another.
Parameters:
x: The x-coordinate of the overlay position of the upper layer.
y: The y-coordinate of the overlay position of the upper layer.
feather: Indicates the degree of feathering at the edges.
*The image needs to be encoded (VAE Encode) into latent space.
13. Latent Composite Masked
Overlay an image with a mask onto another, only overlaying the masked part.
input:
destination: The underlying latent space image.
source: The overlaying latent space image.
Parameters:
x: The x-coordinate of the overlay region.
y: The y-coordinate of the overlay region.
resize_source: Indicates whether to adjust the resolution of the masked region.
14. Empty Latent Image
The Empty Latent Image can be used to create a set of new empty latent images. These latent images can then be used in workflows such as Text2Img by adding noise and denoising to them using sampling nodes.