Fix t2i adapter issue.

This commit is contained in:
comfyanonymous 2023-10-21 20:31:24 -04:00
parent 9906e3efe3
commit a0690f9df9

View File

@ -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: