mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
Fix SD precise in patcher.
This commit is contained in:
committed by
psychedelicious
parent
9273d1629e
commit
5d192ab6e5
@@ -44,7 +44,7 @@ class UNetAttentionPatcher:
|
||||
for block in ip_adapter["target_blocks"]:
|
||||
if block in name:
|
||||
skip = False
|
||||
negative = ip_adapter["method"] == "style_precise" and block == "down_blocks.2.attentions.1"
|
||||
negative = ip_adapter["method"] == "style_precise" and (block == "down_blocks.2.attentions.1" or block == "down_blocks.2" or block == "mid_block")
|
||||
break
|
||||
ip_adapter_attention_weights: IPAdapterAttentionWeights = IPAdapterAttentionWeights(
|
||||
ip_adapter_weights=ip_adapter_weights, skip=skip, negative=negative
|
||||
|
||||
Reference in New Issue
Block a user