Skip to content

Commit 591e717

Browse files
committed
Fix typo in setting IP-Adapter scales.
1 parent 589bc20 commit 591e717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invokeai/backend/stable_diffusion/diffusers_pipeline.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ def step(
541541
attn_ctx.scales[i] = weight
542542
else:
543543
# Otherwise, set the IP-Adapter's scale to 0, so it has no effect.
544-
attn_ctx.scales[i] = weight
544+
attn_ctx.scales[i] = 0.0
545545

546546
# Handle ControlNet(s) and T2I-Adapter(s)
547547
down_block_additional_residuals = None

0 commit comments

Comments
 (0)