From b4626ab93ebac96d87d239432f49f8af44cd0744 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Mon, 30 Sep 2024 06:03:27 -0400 Subject: [PATCH] Add simpletuner lycoris format for SD unet. --- comfy/lora.py | 1 + 1 file changed, 1 insertion(+) diff --git a/comfy/lora.py b/comfy/lora.py index 83e55ec0732..2d0ed7bf54b 100644 --- a/comfy/lora.py +++ b/comfy/lora.py @@ -294,6 +294,7 @@ def model_lora_keys_unet(model, key_map={}): unet_key = "diffusion_model.{}".format(diffusers_keys[k]) key_lora = k[:-len(".weight")].replace(".", "_") key_map["lora_unet_{}".format(key_lora)] = unet_key + key_map["lycoris_{}".format(key_lora)] = unet_key #simpletuner lycoris format diffusers_lora_prefix = ["", "unet."] for p in diffusers_lora_prefix: