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 ModelScope-Trainer/DiffSynth LoRA format for Flux.2 Klein models (#12042)
ComfyUI Wikie89b22993aa2
diff --git a/comfy/lora.py b/comfy/lora.pyindex e8246bd66..7b31d055c 100644--- a/comfy/lora.py+++ b/comfy/lora.py@@ -260,6 +260,7 @@ def model_lora_keys_unet(model, key_map={}):key_map["transformer.{}".format(k[:-len(".weight")])] = to #simpletrainer and probably regular diffusers flux lora formatkey_map["lycoris_{}".format(k[:-len(".weight")].replace(".", "_"))] = to #simpletrainer lycoriskey_map["lora_transformer_{}".format(k[:-len(".weight")].replace(".", "_"))] = to #onetrainer+ key_map[k[:-len(".weight")]] = to #DiffSynth lora formatfor k in sdk:hidden_size = model.model_config.unet_config.get("hidden_size", 0)if k.endswith(".weight") and ".linear1." in k: