This commit is contained in:
Rickard Edén 2025-01-10 11:39:41 -05:00 committed by GitHub
commit cb0f551140
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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