From 6830434ea3241e5dd8ef9ba786050ff56f5685b4 Mon Sep 17 00:00:00 2001 From: drozbay <17261091+drozbay@users.noreply.github.com> Date: Mon, 10 Aug 2026 19:45:34 -0600 Subject: [PATCH] Reject latents from other models in MiniMaxH3AddGuide --- comfy_extras/nodes_minimax_h3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy_extras/nodes_minimax_h3.py b/comfy_extras/nodes_minimax_h3.py index 3c8787736..2999cefbf 100644 --- a/comfy_extras/nodes_minimax_h3.py +++ b/comfy_extras/nodes_minimax_h3.py @@ -186,7 +186,7 @@ class MiniMaxH3AddGuide(io.ComfyNode): @classmethod def execute(cls, positive, latent, frame_idx, vae=None, audio_vae=None, image=None, audio=None) -> io.NodeOutput: samples = latent["samples"] - if not samples.is_nested: + if not samples.is_nested or len(samples.tensors) != 2 or samples.tensors[0].ndim != 5 or samples.tensors[0].shape[1] != 24: raise ValueError("MiniMaxH3AddGuide expects a MiniMax H3 AV latent") if image is None and audio is None: raise ValueError("MiniMaxH3AddGuide needs an image or an audio to anchor")