mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-09 11:07:05 +08:00
Fix T2V
oops
This commit is contained in:
parent
7d9f51753b
commit
447ad0442a
@ -874,15 +874,11 @@ class HunyuanVideo(BaseModel):
|
||||
image = kwargs.get("concat_latent_image", None)
|
||||
noise = kwargs.get("noise", None)
|
||||
|
||||
if image is None:
|
||||
image_latents = torch.zeros_like(noise)
|
||||
else:
|
||||
if image is not None:
|
||||
padding_shape = (noise.shape[0], 16, noise.shape[2] - 1, noise.shape[3], noise.shape[4])
|
||||
latent_padding = torch.zeros(padding_shape, device=noise.device, dtype=noise.dtype)
|
||||
image_latents = torch.cat([image.to(noise), latent_padding], dim=2) * 0.476986
|
||||
|
||||
process_image_in = lambda image: image
|
||||
out['c_concat'] = comfy.conds.CONDNoiseShape(process_image_in(image_latents))
|
||||
out['c_concat'] = comfy.conds.CONDNoiseShape(image_latents)
|
||||
|
||||
guidance = kwargs.get("guidance", 6.0)
|
||||
if guidance is not None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user