Skip to content

Commit

Permalink
Add simpletuner lycoris format for SD unet.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Sep 30, 2024
1 parent a9e459c commit b4626ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions comfy/lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b4626ab

Please sign in to comment.