Fix typo in setting IP-Adapter scales.

This commit is contained in:
Ryan Dick 2023-10-06 17:43:11 -04:00 committed by Kent Keirsey
parent 4df1cdb34d
commit 43a3c3c7ea

View File

@ -541,7 +541,7 @@ class StableDiffusionGeneratorPipeline(StableDiffusionPipeline):
attn_ctx.scales[i] = weight
else:
# Otherwise, set the IP-Adapter's scale to 0, so it has no effect.
attn_ctx.scales[i] = weight
attn_ctx.scales[i] = 0.0
# Handle ControlNet(s) and T2I-Adapter(s)
down_block_additional_residuals = None