mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-11 00:47:14 +08:00
Merge bd9086426f into b08debceca
This commit is contained in:
commit
ffb8467e57
@ -304,6 +304,15 @@ def model_lora_keys_unet(model, key_map={}):
|
|||||||
key_map["lycoris_{}".format(key_lora.replace(".", "_"))] = k #SimpleTuner lycoris format
|
key_map["lycoris_{}".format(key_lora.replace(".", "_"))] = k #SimpleTuner lycoris format
|
||||||
key_map["transformer.{}".format(key_lora)] = k #SimpleTuner regular format
|
key_map["transformer.{}".format(key_lora)] = k #SimpleTuner regular format
|
||||||
|
|
||||||
|
if isinstance(model, comfy.model_base.HiDreamO1):
|
||||||
|
for k in sdk:
|
||||||
|
if k.startswith("diffusion_model."):
|
||||||
|
if k.endswith(".weight"):
|
||||||
|
key_lora = k[len("diffusion_model."):-len(".weight")]
|
||||||
|
key_map["lycoris_{}".format(key_lora.replace(".", "_"))] = k
|
||||||
|
key_map["transformer.{}".format(key_lora)] = k
|
||||||
|
key_map["model.{}".format(key_lora)] = k
|
||||||
|
|
||||||
if isinstance(model, comfy.model_base.ACEStep):
|
if isinstance(model, comfy.model_base.ACEStep):
|
||||||
for k in sdk:
|
for k in sdk:
|
||||||
if k.startswith("diffusion_model.") and k.endswith(".weight"): #Official ACE step lora format
|
if k.startswith("diffusion_model.") and k.endswith(".weight"): #Official ACE step lora format
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user