Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix t2i adapter issue.

comfyanonymousa0690f9df9e7
diff --git a/comfy/controlnet.py b/comfy/controlnet.py
index 73a40acfa..f1355e64e 100644
--- a/comfy/controlnet.py
+++ b/comfy/controlnet.py
@@ -416,7 +416,7 @@ class T2IAdapter(ControlBase):
if control_prev is not None:
return control_prev
else:
- return {}
+ return None
if self.cond_hint is None or x_noisy.shape[2] * 8 != self.cond_hint.shape[2] or x_noisy.shape[3] * 8 != self.cond_hint.shape[3]:
if self.cond_hint is not None: