Add downscale ratio to empty ltxv latent. (#13999)
This commit is contained in:
parent
7ec7b6ffe9
commit
72e3f6081c
|
|
@ -77,7 +77,7 @@ class EmptyLTXVLatentVideo(io.ComfyNode):
|
|||
@classmethod
|
||||
def execute(cls, width, height, length, batch_size=1) -> io.NodeOutput:
|
||||
latent = torch.zeros([batch_size, 128, ((length - 1) // 8) + 1, height // 32, width // 32], device=comfy.model_management.intermediate_device())
|
||||
return io.NodeOutput({"samples": latent})
|
||||
return io.NodeOutput({"samples": latent, "downscale_ratio_spacial": 32})
|
||||
|
||||
generate = execute # TODO: remove
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue