MCPcopy
hub / github.com/Lightricks/ComfyUI-LTXVideo / execute

Method execute

iclora.py:589–603  ·  view source on GitHub ↗
(cls, positive, negative, audio_latent)

Source from the content-addressed store, hash-verified

587
588 @classmethod
589 def execute(cls, positive, negative, audio_latent) -> io.NodeOutput:
590 latent = audio_latent["samples"]
591 ref_audio = _patchify_audio_latent(latent)
592 positive = node_helpers.conditioning_set_values(
593 positive, {"ref_audio": ref_audio}
594 )
595 negative = node_helpers.conditioning_set_values(
596 negative, {"ref_audio": ref_audio}
597 )
598
599 frozen = audio_latent.copy()
600 b, c, t, f = latent.shape
601 frozen["noise_mask"] = torch.zeros((b, 1, t, 1), dtype=torch.float32)
602
603 return io.NodeOutput(positive, negative, frozen)

Callers 5

sampleMethod · 0.45
blur_internalFunction · 0.45
generateMethod · 0.45
generateMethod · 0.45
generateMethod · 0.45

Calls 1

_patchify_audio_latentFunction · 0.85

Tested by

no test coverage detected