Skip to content

Commit 6fcb40b

Browse files
committed
fix-copies
1 parent 9d7e3a2 commit 6fcb40b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/diffusers/loaders/lora_pipeline.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -691,13 +691,10 @@ def lora_state_dict(
691691
allow_pickle=allow_pickle,
692692
)
693693
is_dora_scale_present = any("dora_scale" in k for k in state_dict)
694-
print(f"{is_dora_scale_present=}")
695694
if is_dora_scale_present:
696695
warn_msg = "It seems like you are using a DoRA checkpoint that is not compatible in Diffusers at the moment. So, we are going to filter out the keys associated to 'dora_scale` from the state dict. If you think this is a mistake please open an issue https://github.com/huggingface/diffusers/issues/new."
697696
logger.warning(warn_msg)
698697
state_dict = {k: v for k, v in state_dict.items() if "dora_scale" not in k}
699-
is_dora_scale_present = any("dora_scale" in k for k in state_dict)
700-
print(f"{is_dora_scale_present=}")
701698

702699
network_alphas = None
703700
# TODO: replace it with a method from `state_dict_utils`

0 commit comments

Comments
 (0)