Add simpletuner lycoris format for SD unet.

This commit is contained in:
comfyanonymous 2024-09-30 06:03:27 -04:00
parent a9e459c2a4
commit b4626ab93e

View File

@ -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: