mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-06 09:47:35 +08:00
This commit is contained in:
parent
3811780e4f
commit
b233dbe0bc
@ -337,6 +337,7 @@ def model_lora_keys_unet(model, key_map={}):
|
|||||||
if k.startswith("diffusion_model.decoder.") and k.endswith(".weight"):
|
if k.startswith("diffusion_model.decoder.") and k.endswith(".weight"):
|
||||||
key_lora = k[len("diffusion_model.decoder."):-len(".weight")]
|
key_lora = k[len("diffusion_model.decoder."):-len(".weight")]
|
||||||
key_map["base_model.model.{}".format(key_lora)] = k # Official base model loras
|
key_map["base_model.model.{}".format(key_lora)] = k # Official base model loras
|
||||||
|
key_map["lycoris_{}".format(key_lora.replace(".", "_"))] = k # LyCORIS/LoKR format
|
||||||
|
|
||||||
return key_map
|
return key_map
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user