Skip to content

Commit 6637a12

Browse files
committed
revert to zeros
1 parent fe2d3b4 commit 6637a12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diffusers/loaders/lora_pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4265,10 +4265,10 @@ def _maybe_expand_t2v_lora_for_i2v(
42654265

42664266
for i in range(num_blocks):
42674267
for o, c in zip(["k_img", "v_img"], ["add_k_proj", "add_v_proj"]):
4268-
state_dict[f"blocks.{i}.attn2.{c}.lora_A.weight"] = torch.ones_like(
4268+
state_dict[f"blocks.{i}.attn2.{c}.lora_A.weight"] = torch.zeros_like(
42694269
state_dict[f"blocks.{i}.attn2.{o.replace('_img', '')}.lora_A.weight"]
42704270
)
4271-
state_dict[f"blocks.{i}.attn2.{c}.lora_B.weight"] = torch.ones_like(
4271+
state_dict[f"blocks.{i}.attn2.{c}.lora_B.weight"] = torch.zeros_like(
42724272
state_dict[f"blocks.{i}.attn2.{o.replace('_img', '')}.lora_B.weight"]
42734273
)
42744274

0 commit comments

Comments
 (0)