Copy the cropped guide audio latent instead of keeping a view

This commit is contained in:
drozbay 2026-08-10 20:05:19 -06:00
parent 6830434ea3
commit 5c040ebe8d
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ class MiniMaxH3AddGuide(io.ComfyNode):
if max_rt < 1:
raise ValueError("frame_idx {} is past the end of the video's audio track".format(frame_idx))
if audio_rt > max_rt:
audio_latent = audio_latent[..., :max_rt]
audio_latent = audio_latent[..., :max_rt].clone()
keyframe["audio_latent"] = audio_latent
keyframes = list(positive[0][1].get("minimax_keyframes", []))