mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-06 13:47:06 +00:00
Fix SD3 trained lora loading and merging
This commit is contained in:
@@ -601,7 +601,7 @@ class LoRANetwork(torch.nn.Module):
|
|||||||
or key.startswith(LoRANetwork.LORA_PREFIX_TEXT_ENCODER_T5)
|
or key.startswith(LoRANetwork.LORA_PREFIX_TEXT_ENCODER_T5)
|
||||||
):
|
):
|
||||||
apply_text_encoder = True
|
apply_text_encoder = True
|
||||||
elif key.startswith(LoRANetwork.LORA_PREFIX_MMDIT):
|
elif key.startswith(LoRANetwork.LORA_PREFIX_SD3):
|
||||||
apply_unet = True
|
apply_unet = True
|
||||||
|
|
||||||
if apply_text_encoder:
|
if apply_text_encoder:
|
||||||
|
|||||||
Reference in New Issue
Block a user