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 old diffusion-pipe hunyuan video loras.

comfyanonymousff2ff0216800
diff --git a/comfy/lora.py b/comfy/lora.py
index e54b3b4ff..c43a6fe47 100644
--- a/comfy/lora.py
+++ b/comfy/lora.py
@@ -384,6 +384,7 @@ def model_lora_keys_unet(model, key_map={}):
key_lora = key_lora.replace(".modulation.lin.", ".modulation.linear.")
key_lora = key_lora[len("diffusion_model."):-len(".weight")]
key_map["transformer.{}".format(key_lora)] = k
+ key_map["diffusion_model.{}".format(key_lora)] = k # Old loras
return key_map