The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Add better error message for common error. (#10846)
comfyanonymouscbd68e3d587a
diff --git a/comfy/cldm/cldm.py b/comfy/cldm/cldm.pyindex ec01665e2..c93c2e909 100644--- a/comfy/cldm/cldm.py+++ b/comfy/cldm/cldm.py@@ -413,7 +413,8 @@ class ControlNet(nn.Module):out_middle = []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)h = x