The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
OneTainer ERNIE LoRA support (#13640)
Rainere9c311b2458a
diff --git a/comfy/lora.py b/comfy/lora.pyindex 63ee85323..e4337c729 100644--- a/comfy/lora.py+++ b/comfy/lora.py@@ -342,6 +342,12 @@ def model_lora_keys_unet(model, key_map={}):key_map["base_model.model.{}".format(key_lora)] = k # Official base model loraskey_map["lycoris_{}".format(key_lora.replace(".", "_"))] = k # LyCORIS/LoKR format+ if isinstance(model, comfy.model_base.ErnieImage):+ for k in sdk:+ if k.startswith("diffusion_model.") and k.endswith(".weight"):+ key_lora = k[len("diffusion_model."):-len(".weight")]+ key_map["transformer.{}".format(key_lora)] = k+return key_map