Update nodes.py

This commit is contained in:
Jukka Seppänen 2024-11-22 22:38:51 +02:00 committed by GitHub
parent 895d3b83a4
commit 6c7068b5bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -361,7 +361,7 @@ class CogVideoImageEncodeFunInP:
mask = torch.zeros_like(masked_image_latents[:, :, :1, :, :])
if end_image is not None:
mask[:, -1, :, :, :] = vae_scaling_factor
mask[:, -1, :, :, :] = 0
mask[:, 0, :, :, :] = vae_scaling_factor
final_latents = masked_image_latents * vae_scaling_factor