mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2025-12-10 14:34:25 +08:00
Add better error message for common error. (#10846)
This commit is contained in:
parent
d89c29f259
commit
cbd68e3d58
@ -413,7 +413,8 @@ class ControlNet(nn.Module):
|
|||||||
out_middle = []
|
out_middle = []
|
||||||
|
|
||||||
if self.num_classes is not None:
|
if self.num_classes is not None:
|
||||||
assert y.shape[0] == x.shape[0]
|
if y is None:
|
||||||
|
raise ValueError("y is None, did you try using a controlnet for SDXL on SD1?")
|
||||||
emb = emb + self.label_emb(y)
|
emb = emb + self.label_emb(y)
|
||||||
|
|
||||||
h = x
|
h = x
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user