mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-06-14 20:09:24 +08:00
Merge aef957683c into 19f2192d69
This commit is contained in:
commit
807c6ad687
@ -51,7 +51,7 @@ class TCFG(io.ComfyNode):
|
||||
# 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