Skip to content

Commit bbe2c13

Browse files
Make empty hunyuan latent 1.0 work with the 1.5 model. (#12171)
1 parent 3aace5c commit bbe2c13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

comfy_extras/nodes_hunyuan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def define_schema(cls):
5656
@classmethod
5757
def execute(cls, width, height, length, batch_size=1) -> io.NodeOutput:
5858
latent = torch.zeros([batch_size, 16, ((length - 1) // 4) + 1, height // 8, width // 8], device=comfy.model_management.intermediate_device())
59-
return io.NodeOutput({"samples":latent})
59+
return io.NodeOutput({"samples": latent, "downscale_ratio_spacial": 8})
6060

6161
generate = execute # TODO: remove
6262

@@ -73,7 +73,7 @@ def define_schema(cls):
7373
def execute(cls, width, height, length, batch_size=1) -> io.NodeOutput:
7474
# Using scale factor of 16 instead of 8
7575
latent = torch.zeros([batch_size, 32, ((length - 1) // 4) + 1, height // 16, width // 16], device=comfy.model_management.intermediate_device())
76-
return io.NodeOutput({"samples": latent})
76+
return io.NodeOutput({"samples": latent, "downscale_ratio_spacial": 16})
7777

7878

7979
class HunyuanVideo15ImageToVideo(io.ComfyNode):

0 commit comments

Comments
 (0)