Copy the cropped guide audio latent instead of keeping a view
This commit is contained in:
parent
6830434ea3
commit
5c040ebe8d
|
|
@ -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", []))
|
||||
|
|
|
|||
Loading…
Reference in New Issue