The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Print warning when controlnet can't be applied instead of crashing.
comfyanonymous7ea6bb038cf4
diff --git a/comfy/ldm/modules/diffusionmodules/openaimodel.py b/comfy/ldm/modules/diffusionmodules/openaimodel.pyindex cac0dfb65..504b79ede 100644--- a/comfy/ldm/modules/diffusionmodules/openaimodel.py+++ b/comfy/ldm/modules/diffusionmodules/openaimodel.py@@ -255,7 +255,10 @@ def apply_control(h, control, name):if control is not None and name in control and len(control[name]) > 0:ctrl = control[name].pop()if ctrl is not None:- h += ctrl+ try:+ h += ctrl+ except:+ print("warning control could not be applied", h.shape, ctrl.shape)return hclass UNetModel(nn.Module):