Skip to content

Commit f789325

Browse files
committed
conditioning_scale
1 parent 0d8c3f1 commit f789325

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diffusers/models/controlnets/controlnet_z_image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def forward(
451451
else:
452452
c = layer(c, **new_kwargs)
453453

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)}
454+
hints = torch.unbind(c)[:-1]
455+
controlnet_block_samples = {layer_idx: hints[idx] * conditioning_scale for idx, layer_idx in enumerate(self.control_layers_places)}
456456

457457
return controlnet_block_samples

0 commit comments

Comments
 (0)