diff --git a/comfy/lora.py b/comfy/lora.py index ec3da6f4..e3ddb904 100644 --- a/comfy/lora.py +++ b/comfy/lora.py @@ -399,6 +399,12 @@ def model_lora_keys_unet(model, key_map={}): key_map["transformer.{}".format(key_lora)] = k key_map["diffusion_model.{}".format(key_lora)] = k # Old loras + if isinstance(model, comfy.model_base.LTXV): + for k in sdk: + if k.startswith("diffusion_model.") and k.endswith(".weight"): + key_lora = k[len("diffusion_model."):-len(".weight")] + key_map["transformer.{}".format(key_lora)] = k + return key_map