Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Flux onetrainer lora.

comfyanonymousd043997d30d9
diff --git a/comfy/lora.py b/comfy/lora.py
index 3590496cc..d770d9b40 100644
--- a/comfy/lora.py
+++ b/comfy/lora.py
@@ -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