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.

Support ModelScope-Trainer DiffSynth lora for Z Image. (#11805)

kelseyeea3b5d4996abc
diff --git a/comfy/lora.py b/comfy/lora.py
index 2ed0acb9d..e8246bd66 100644
--- a/comfy/lora.py
+++ b/comfy/lora.py
@@ -322,6 +322,7 @@ def model_lora_keys_unet(model, key_map={}):
key_map["diffusion_model.{}".format(key_lora)] = to
key_map["transformer.{}".format(key_lora)] = to
key_map["lycoris_{}".format(key_lora.replace(".", "_"))] = to
+ key_map[key_lora] = to
if isinstance(model, comfy.model_base.Kandinsky5):
for k in sdk: