mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-16 00:23:30 +00:00
Compare commits
2 Commits
adc6c1ad0d
...
6b2fc129bb
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6b2fc129bb | ||
![]() |
945a8aa963 |
@ -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