The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Support a generic Comfy format for text encoder loras.
comfyanonymousea77750759cc
diff --git a/comfy/lora.py b/comfy/lora.pyindex eb95d02ab..ad951bbaf 100644--- a/comfy/lora.py+++ b/comfy/lora.py@@ -201,6 +201,9 @@ def load_lora(lora, to_load):def model_lora_keys_clip(model, key_map={}):sdk = model.state_dict().keys()+ for k in sdk:+ if k.endswith(".weight"):+ key_map["text_encoders.{}".format(k[:-len(".weight")])] = k #generic lora format without any weird key namestext_model_lora_key = "lora_te_text_model_encoder_layers_{}_{}"clip_l_present = False