From 5c363a9d86827d194e3a8e5dd6085a67f65c7ee6 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Fri, 1 Sep 2023 02:01:08 -0400 Subject: [PATCH] Fix controlnet bug. --- comfy/controlnet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/controlnet.py b/comfy/controlnet.py index f62dd9c8..490be6bb 100644 --- a/comfy/controlnet.py +++ b/comfy/controlnet.py @@ -143,7 +143,7 @@ class ControlNet(ControlBase): if control_prev is not None: return control_prev else: - return {} + return None output_dtype = x_noisy.dtype 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]: