Skip to main content
Wan22ImageToVideoLatent creates video latent representations from images. It generates a blank video latent space with the specified width, height, frame length, and batch size, and can optionally encode a starting image sequence into the beginning frames. When a start image is provided, the node encodes it into the latent space and creates a corresponding noise mask that marks which regions should be denoised during generation.

Inputs

Note: When start_image is provided, the image sequence is upscaled to the target width and height, encoded with the VAE, and placed into the first frames of the latent. The noise mask for those frames is set to 0 (preserved), while the remaining frames have a mask value of 1 (to be denoised). The latent always has 48 channels, spatial dimensions of height / 16 by width / 16, and a temporal dimension of ((length - 1) // 4) + 1. width and height must be divisible by 16 (enforced by the step of 32), and length increases the temporal dimension in steps of 4.

Outputs

Both fields are returned together inside a single LATENT output.
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 3d05980641eeef2e86df7a845aa8b2bd703882db98fe71adef2746ab34a9d717