Skip to content

Commit 819dd3e

Browse files
committed
Revert "Removing old check of ip_adapter scale"
This reverts commit a87895e.
1 parent 4ba374a commit 819dd3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/models/attention_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5144,7 +5144,7 @@ def __call__(
51445144
encoder_hidden_states = attn.to_add_out(encoder_hidden_states)
51455145

51465146
# IP Adapter
5147-
if ip_hidden_states is not None:
5147+
if self.scale != 0 and ip_hidden_states is not None:
51485148
# Norm image features
51495149
norm_ip_hidden_states = self.norm_ip(ip_hidden_states, temb=temb)
51505150

0 commit comments

Comments
 (0)