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 ace step 1.5 base model loras. (#12252)

comfyanonymousab1050bec3ec
diff --git a/comfy/lora.py b/comfy/lora.py
index 7b31d055c..44030bcab 100644
--- a/comfy/lora.py
+++ b/comfy/lora.py
@@ -332,6 +332,12 @@ def model_lora_keys_unet(model, key_map={}):
key_map["{}".format(key_lora)] = k
key_map["transformer.{}".format(key_lora)] = k
+ if isinstance(model, comfy.model_base.ACEStep15):
+ for k in sdk:
+ if k.startswith("diffusion_model.decoder.") and k.endswith(".weight"):
+ key_lora = k[len("diffusion_model.decoder."):-len(".weight")]
+ key_map["base_model.model.{}".format(key_lora)] = k # Official base model loras
+
return key_map