Nodes/ComfyUI-HunyuanImageLatentToVideoLatent/Hunyuan Image Latent To Video Latent
ComfyUI Node

Hunyuan Image Latent To Video Latent

Copies the given latent's samples tensor along the time axis ((length - 1) // 4) + 1 times to form a longer latent (see EmptyHunyuanLatentVideo's implementation for why this specific number of copies is used). Then, prepares a noise_mask tensor of the same shape such that the value of the mask for a given time step is given by the function shown at https://www.desmos.com/calculator/vhw74mr1vh.

By philiprodriguez·Created 2 years ago·Updated 2 years ago· 1
Hunyuan Image Latent To Video Latent
  • latent
  • LATENT
length49
use_noise_masktrue
noise_s20.00
noise_o0.25
noise_w0.05
Categorylatent

Inputs (6)

NameTypeDefaultDescription
lengthINT491–40000The number of frames desired
latentLATENTThe Hunyuan image latent to convert into a Hunyuan video latent
use_noise_maskBOOLEANtrueWhether to include a noise mask
noise_sFLOAT20.000–100The s (scale) parameter in the noise intensity function (see https://www.desmos.com/calculator/vhw74mr1vh)
noise_oFLOAT0.25-2–2The o parameter (offset) in the noise intensity function (see https://www.desmos.com/calculator/vhw74mr1vh)
noise_wFLOAT0.050–2The w parameter (width) in the noise intensity function (see https://www.desmos.com/calculator/vhw74mr1vh)

Outputs (1)

NameTypeDescription
LATENTLATENT