Spaces:
Running
on
Zero
Running
on
Zero
Leimingkun
commited on
Commit
•
123f4ac
1
Parent(s):
c7a40ad
stylestudio
Browse files- ip_adapter/ip_adapter.py +2 -4
ip_adapter/ip_adapter.py
CHANGED
@@ -976,9 +976,7 @@ class StyleStudio_Adapter(CSGO):
|
|
976 |
attn_procs[name] = IPAttnProcessor_cross_modal(
|
977 |
hidden_size=hidden_size,
|
978 |
cross_attention_dim=cross_attention_dim,
|
979 |
-
|
980 |
-
style=True,
|
981 |
-
num_style_tokens=self.num_style_tokens,
|
982 |
fuAttn=self.fuAttn,
|
983 |
fuIPAttn=self.fuIPAttn,
|
984 |
adainIP=self.adainIP,
|
@@ -988,7 +986,7 @@ class StyleStudio_Adapter(CSGO):
|
|
988 |
attn_procs[name] = IPAttnProcessor_cross_modal(
|
989 |
hidden_size=hidden_size,
|
990 |
cross_attention_dim=cross_attention_dim,
|
991 |
-
|
992 |
skip=True,
|
993 |
fuAttn=self.fuAttn,
|
994 |
fuIPAttn=self.fuIPAttn,
|
|
|
976 |
attn_procs[name] = IPAttnProcessor_cross_modal(
|
977 |
hidden_size=hidden_size,
|
978 |
cross_attention_dim=cross_attention_dim,
|
979 |
+
num_tokens=self.num_style_tokens,
|
|
|
|
|
980 |
fuAttn=self.fuAttn,
|
981 |
fuIPAttn=self.fuIPAttn,
|
982 |
adainIP=self.adainIP,
|
|
|
986 |
attn_procs[name] = IPAttnProcessor_cross_modal(
|
987 |
hidden_size=hidden_size,
|
988 |
cross_attention_dim=cross_attention_dim,
|
989 |
+
num_tokens=self.num_style_tokens,
|
990 |
skip=True,
|
991 |
fuAttn=self.fuAttn,
|
992 |
fuIPAttn=self.fuIPAttn,
|