ComfyUI Node
⚡| VAE Encode (for Soft Inpainting)
Encodes the input image and its inpainting mask into latent space using a VAE model.
⚡| VAE Encode (for Soft Inpainting)
- pixels
- vae
- mask
- LATENT
◄output_size▾►
◄mask_blur_pixels—►
Category⚡Z-Image
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| pixels | IMAGE | The input image to encode | |
| vae | VAE | The VAE model to use for encoding | |
| mask | MASK | Mask indicating the area of the image to apply inpainting. | |
| output_size | COMBO | Determines the size of the output latent space. | |
| mask_blur_pixels | FLOAT | 0–256 | Width in pixels for softening the mask edges. Higher values create a smoother transition with larger masked area. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| LATENT | LATENT | Latent space representation of the encoded image and mask. |