The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Add LoRA key mapping for LTXV/LTXAV models (#14349)
kelseyee07c53f8f0fa6
diff --git a/comfy/lora.py b/comfy/lora.pyindex 4e0ea29e0..2c8d0f0bf 100644--- a/comfy/lora.py+++ b/comfy/lora.py@@ -357,6 +357,12 @@ def model_lora_keys_unet(model, key_map={}):key_lora = k[len("diffusion_model."):-len(".weight")]key_map["transformer.{}".format(key_lora)] = k+ if isinstance(model, (comfy.model_base.LTXV, comfy.model_base.LTXAV)):+ for k in sdk:+ if k.startswith("diffusion_model.") and k.endswith(".weight"):+ key_lora = k[len("diffusion_model."):-len(".weight")]+ key_map["{}".format(key_lora)] = k+return key_map