Fix SD3 trained lora loading and merging

This commit is contained in:
Dango233
2024-11-07 09:54:12 +00:00
parent 40ed54bfc0
commit e54462a4a9

View File

@@ -601,7 +601,7 @@ class LoRANetwork(torch.nn.Module):
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: