mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
Support old diffusion-pipe hunyuan video loras.
This commit is contained in:
parent
4c5c4ddeda
commit
ff2ff02168
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user