Browse Source

Fix controlnet bug.

pull/1395/head
comfyanonymous 1 year ago
parent
commit
5c363a9d86
  1. 2
      comfy/controlnet.py

2
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]:

Loading…
Cancel
Save