mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-12 18:33:35 +00:00
Merge 945a8aa963
into 22ad513c72
This commit is contained in:
commit
adc6c1ad0d
@ -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…
Reference in New Issue
Block a user