Skip to content

Commit

Permalink
remove left over
Browse files Browse the repository at this point in the history
  • Loading branch information
matt3o committed Nov 11, 2023
1 parent b34bbe6 commit 4cb9e97
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion IPAdapterPlus.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ def __call__(self, n, context_attn2, value_attn2, extra_options):
out = optimized_attention(q, k, v, extra_options["n_heads"])
_, _, lh, lw = extra_options["original_shape"]

k = v = []
for weight, cond, uncond, ipadapter, mask, weight_type in zip(self.weights, self.conds, self.unconds, self.ipadapters, self.masks, self.weight_type):
k_cond = ipadapter.ip_layers.to_kvs[self.number*2](cond).repeat(batch_prompt, 1, 1)
k_uncond = ipadapter.ip_layers.to_kvs[self.number*2](uncond).repeat(batch_prompt, 1, 1)
Expand Down

0 comments on commit 4cb9e97

Please sign in to comment.