Skip to content

Commit 1598a57

Browse files
make style
1 parent 63805f8 commit 1598a57

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

scripts/convert_lora_safetensor_to_diffusers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525

2626
def convert(base_model_path, checkpoint_path, LORA_PREFIX_UNET, LORA_PREFIX_TEXT_ENCODER, alpha):
27-
2827
# load base model
2928
pipeline = StableDiffusionPipeline.from_pretrained(base_model_path, torch_dtype=torch.float32)
3029

@@ -35,7 +34,6 @@ def convert(base_model_path, checkpoint_path, LORA_PREFIX_UNET, LORA_PREFIX_TEXT
3534

3635
# directly update weight in diffusers model
3736
for key in state_dict:
38-
3937
# it is suggested to print out the key, it usually will be something like below
4038
# "lora_te_text_model_encoder_layers_0_self_attn_k_proj.lora_down.weight"
4139

0 commit comments

Comments
 (0)