Skip to content

Commit

Permalink
Support old diffusion-pipe hunyuan video loras.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Dec 18, 2024
1 parent 4c5c4dd commit ff2ff02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions comfy/lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ff2ff02

Please sign in to comment.