Skip to main content
The CosmosImageToVideoLatent node creates a video latent representation from input images. It builds a blank video latent with the requested width, height, and number of frames, then optionally encodes a start image into the beginning frames and/or an end image into the end frames. When images are provided, it also generates a noise mask so the encoded frames remain fixed during generation.

Inputs

Note:
  • When neither start_image nor end_image is provided, the node returns a blank latent without a noise mask.
  • When start_image is provided, it is encoded into the first frames of the latent and those frames are marked with noise mask value 0 (preserved). When end_image is provided, it is encoded into the last frames and those frames are marked with noise mask value 0. The remaining frames keep a mask value of 1.
  • The latent has 16 channels and its spatial dimensions are height / 8 by width / 8. The number of latent frames is ((length - 1) // 8) + 1.
  • batch_size repeats the latent and, when present, the noise mask.

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): 0b06ccfcb14c27c81eeebbbff519da1e187970d4cfc19c8796fc3da20688245c