Spaces:
Runtime error
Runtime error
Update cldm/cldm.py
Browse files- cldm/cldm.py +2 -0
cldm/cldm.py
CHANGED
@@ -336,6 +336,8 @@ class ControlNet(nn.Module):
|
|
336 |
for module, zero_conv in zip(self.input_blocks, self.zero_convs):
|
337 |
if guided_hint is not None:
|
338 |
h = module(h, emb, context)
|
|
|
|
|
339 |
h += guided_hint
|
340 |
guided_hint = None
|
341 |
else:
|
|
|
336 |
for module, zero_conv in zip(self.input_blocks, self.zero_convs):
|
337 |
if guided_hint is not None:
|
338 |
h = module(h, emb, context)
|
339 |
+
print("h shape:", h.shape)
|
340 |
+
print("guided hint shape:", guided_hint.shape)
|
341 |
h += guided_hint
|
342 |
guided_hint = None
|
343 |
else:
|