Fix: HiDream-O1 LoRA prefix for landing

This commit is contained in:
yjy415 2026-07-13 19:26:10 +08:00
parent bd9086426f
commit c4f414081c

View File

@ -309,8 +309,6 @@ def model_lora_keys_unet(model, key_map={}):
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):