mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
(minor) Fix IP-Adapter conditional logic in CustomAttnProcessor2_0.
This commit is contained in:
parent
0bdbfd4d1d
commit
0c6dd32ece
@ -129,7 +129,7 @@ class CustomAttnProcessor2_0(AttnProcessor2_0):
|
||||
# End unmodified block from AttnProcessor2_0.
|
||||
|
||||
# Apply IP-Adapter conditioning.
|
||||
if is_cross_attention and self._is_ip_adapter_enabled():
|
||||
if is_cross_attention:
|
||||
if self._is_ip_adapter_enabled():
|
||||
assert regional_ip_data is not None
|
||||
ip_masks = regional_ip_data.get_masks(query_seq_len=query_seq_len)
|
||||
|
Loading…
Reference in New Issue
Block a user