Flux onetrainer lora.

This commit is contained in:
comfyanonymous 2024-09-02 08:22:15 -04:00
parent f1c2301697
commit d043997d30
1 changed files with 1 additions and 0 deletions

View File

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