From aef957683cd494b6d17b07c42cf43add333c64a1 Mon Sep 17 00:00:00 2001 From: Extraltodeus Date: Thu, 21 Aug 2025 03:43:17 +0200 Subject: [PATCH] allow tcfg node to skip shorter unconditional prediction --- comfy_extras/nodes_tcfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy_extras/nodes_tcfg.py b/comfy_extras/nodes_tcfg.py index 35b89a73f..e99f38a66 100644 --- a/comfy_extras/nodes_tcfg.py +++ b/comfy_extras/nodes_tcfg.py @@ -49,7 +49,7 @@ class TCFG(ComfyNodeABC): # Assume [cond, uncond, ...] x = args["input"] conds_out = args["conds_out"] - if len(conds_out) <= 1 or None in args["conds"][:2]: + if len(conds_out) <= 1 or None in args["conds"][:2] or not args["conds_out"][1].any(): # Skip when either cond or uncond is None return conds_out cond_pred = conds_out[0]