mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-30 00:00:26 +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, ...]
|
# Assume [cond, uncond, ...]
|
||||||
x = args["input"]
|
x = args["input"]
|
||||||
conds_out = args["conds_out"]
|
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
|
# Skip when either cond or uncond is None
|
||||||
return conds_out
|
return conds_out
|
||||||
cond_pred = conds_out[0]
|
cond_pred = conds_out[0]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user