mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-03-16 11:37:06 +08:00
Merge 945a8aa9632a33b05d50f6a00242a3193e737036 into 33aa808713f7c36cd9476c53b8b67c745e9bc107
This commit is contained in:
commit
76299af7bc
@ -367,6 +367,8 @@ def apply_control(h, control, name):
|
||||
ctrl = control[name].pop()
|
||||
if ctrl is not None:
|
||||
try:
|
||||
if ctrl.shape[2] != h.shape[2] or ctrl.shape[3] != h.shape[3]:
|
||||
ctrl = F.interpolate(ctrl.float(), size=(h.shape[2], h.shape[3]), mode="bicubic", align_corners=False).to(h.dtype)
|
||||
h += ctrl
|
||||
except:
|
||||
logging.warning("warning control could not be applied {} {}".format(h.shape, ctrl.shape))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user