mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-10 05:17:04 +08:00
Proper latent scaling
This commit is contained in:
parent
447ad0442a
commit
47041cc91b
@ -877,8 +877,8 @@ class HunyuanVideo(BaseModel):
|
|||||||
if image is not None:
|
if image is not None:
|
||||||
padding_shape = (noise.shape[0], 16, noise.shape[2] - 1, noise.shape[3], noise.shape[4])
|
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)
|
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
|
image_latents = torch.cat([image.to(noise), latent_padding], dim=2)
|
||||||
out['c_concat'] = comfy.conds.CONDNoiseShape(image_latents)
|
out['c_concat'] = comfy.conds.CONDNoiseShape(self.process_latent_in(image_latents))
|
||||||
|
|
||||||
guidance = kwargs.get("guidance", 6.0)
|
guidance = kwargs.get("guidance", 6.0)
|
||||||
if guidance is not None:
|
if guidance is not None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user