mirror of
https://git.datalinker.icu/kijai/ComfyUI-CogVideoXWrapper.git
synced 2026-05-07 17:01:21 +08:00
Update nodes.py
This commit is contained in:
parent
895d3b83a4
commit
6c7068b5bc
4
nodes.py
4
nodes.py
@ -361,7 +361,7 @@ class CogVideoImageEncodeFunInP:
|
|||||||
|
|
||||||
mask = torch.zeros_like(masked_image_latents[:, :, :1, :, :])
|
mask = torch.zeros_like(masked_image_latents[:, :, :1, :, :])
|
||||||
if end_image is not None:
|
if end_image is not None:
|
||||||
mask[:, -1, :, :, :] = vae_scaling_factor
|
mask[:, -1, :, :, :] = 0
|
||||||
mask[:, 0, :, :, :] = vae_scaling_factor
|
mask[:, 0, :, :, :] = vae_scaling_factor
|
||||||
|
|
||||||
final_latents = masked_image_latents * vae_scaling_factor
|
final_latents = masked_image_latents * vae_scaling_factor
|
||||||
@ -971,4 +971,4 @@ NODE_DISPLAY_NAME_MAPPINGS = {
|
|||||||
"CogVideoLatentPreview": "CogVideo LatentPreview",
|
"CogVideoLatentPreview": "CogVideo LatentPreview",
|
||||||
"CogVideoXTorchCompileSettings": "CogVideo TorchCompileSettings",
|
"CogVideoXTorchCompileSettings": "CogVideo TorchCompileSettings",
|
||||||
"CogVideoImageEncodeFunInP": "CogVideo ImageEncode FunInP",
|
"CogVideoImageEncodeFunInP": "CogVideo ImageEncode FunInP",
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user