The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Fix "Comfy" lora keys.
comfyanonymous1208863eca8f
diff --git a/comfy/lora.py b/comfy/lora.pyindex eecde3927..0a38021c2 100644--- a/comfy/lora.py+++ b/comfy/lora.py@@ -245,7 +245,7 @@ def model_lora_keys_unet(model, key_map={}):key_lora = k[len("diffusion_model."):-len(".weight")].replace(".", "_")key_map["lora_unet_{}".format(key_lora)] = kkey_map["lora_prior_unet_{}".format(key_lora)] = k #cascade lora: TODO put lora key prefix in the model config- key_map["model.{}".format(k[:-len(".weight")])] = k #generic lora format without any weird key names+ key_map["{}".format(k[:-len(".weight")])] = k #generic lora format without any weird key namesdiffusers_keys = comfy.utils.unet_to_diffusers(model.model_config.unet_config)for k in diffusers_keys: