mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Support loras based on the stability unet implementation.
This commit is contained in:
parent
c71a7e6b20
commit
b72a7a835a
@ -285,6 +285,11 @@ def model_lora_keys(model, key_map={}):
|
||||
if key_in:
|
||||
counter += 1
|
||||
|
||||
for k in sdk:
|
||||
if k.startswith("diffusion_model.") and k.endswith(".weight"):
|
||||
key_lora = k[len("diffusion_model."):-len(".weight")].replace(".", "_")
|
||||
key_map["lora_unet_{}".format(key_lora)] = k
|
||||
|
||||
return key_map
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user