Skip to content

Commit

Permalink
Flux onetrainer lora.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Sep 2, 2024
1 parent f1c2301 commit d043997
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 @@ -324,6 +324,7 @@ def model_lora_keys_unet(model, key_map={}):
to = diffusers_keys[k]
key_map["transformer.{}".format(k[:-len(".weight")])] = to #simpletrainer and probably regular diffusers flux lora format
key_map["lycoris_{}".format(k[:-len(".weight")].replace(".", "_"))] = to #simpletrainer lycoris
key_map["lora_transformer_{}".format(k[:-len(".weight")].replace(".", "_"))] = to #onetrainer

return key_map

Expand Down

0 comments on commit d043997

Please sign in to comment.