Commit b72a7a83 authored by comfyanonymous's avatar comfyanonymous
Browse files

Support loras based on the stability unet implementation.

parent c71a7e6b
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment