Skip to main content
The WanVaceToVideo node prepares video conditioning data for video generation models. It takes positive and negative conditioning inputs along with an optional control video, masks, and reference image, and encodes them into latent representations that guide video generation. The node handles upscaling, padding, masking, and VAE encoding to build the appropriate conditioning structure for video models.

Inputs

Note: When control_video is provided, it is truncated to length frames and upscaled to the specified width and height; if it has fewer frames than length, the missing frames are padded with neutral gray (value 0.5). When it is not provided, a neutral gray video of length frames is created automatically. control_masks are upscaled to the specified width and height, truncated to length frames, and padded with value 1.0 if shorter. The mask separates the control video into inactive and reactive parts, each VAE-encoded and concatenated along the channel dimension; the mask is also downsampled to latent resolution. When reference_image is provided, it is VAE-encoded and prepended to the latent sequence. The latent frame count is calculated as ((length - 1) // 4) + 1, and the latent spatial dimensions are height / 8 and width / 8.

Outputs

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): 2039b7509ce5b731e9e41d9cd2dad022d4c5004751f571a4cf88c1ba0cae405b