Merge branch 'master' into fix/mac-upscale-fail

This commit is contained in:
Doowoong(David) Lee 2026-02-27 08:19:55 +09:00 committed by GitHub
commit ff25d0e767
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -337,6 +337,7 @@ def model_lora_keys_unet(model, key_map={}):
if k.startswith("diffusion_model.decoder.") and k.endswith(".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["lycoris_{}".format(key_lora.replace(".", "_"))] = k # LyCORIS/LoKR format
return key_map