Skip to content

Commit

Permalink
Fix SD3 trained lora loading and merging
Browse files Browse the repository at this point in the history
  • Loading branch information
Dango233 committed Nov 7, 2024
1 parent 40ed54b commit e54462a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion networks/lora_sd3.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ def merge_to(self, text_encoders, mmdit, weights_sd, dtype=None, device=None):
or key.startswith(LoRANetwork.LORA_PREFIX_TEXT_ENCODER_T5)
):
apply_text_encoder = True
elif key.startswith(LoRANetwork.LORA_PREFIX_MMDIT):
elif key.startswith(LoRANetwork.LORA_PREFIX_SD3):
apply_unet = True

if apply_text_encoder:
Expand Down

0 comments on commit e54462a

Please sign in to comment.