mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-15 00:30:55 +08:00
allow tcfg node to skip shorter unconditional prediction
This commit is contained in:
parent
e73a9dbe30
commit
aef957683c
@ -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]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user