We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d8c3f1 commit f789325Copy full SHA for f789325
src/diffusers/models/controlnets/controlnet_z_image.py
@@ -451,7 +451,7 @@ def forward(
451
else:
452
c = layer(c, **new_kwargs)
453
454
- hints = torch.unbind(c)[:-1] * conditioning_scale
455
- controlnet_block_samples = {layer_idx: hints[idx] for idx, layer_idx in enumerate(self.control_layers_places)}
+ hints = torch.unbind(c)[:-1]
+ controlnet_block_samples = {layer_idx: hints[idx] * conditioning_scale for idx, layer_idx in enumerate(self.control_layers_places)}
456
457
return controlnet_block_samples
0 commit comments