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 the omnigen2 umo lora. (#9886)
comfyanonymous47a9cde5d304
diff --git a/comfy/lora.py b/comfy/lora.pyindex 4a44f1318..36d26293a 100644--- a/comfy/lora.py+++ b/comfy/lora.py@@ -297,6 +297,12 @@ def model_lora_keys_unet(model, key_map={}):key_lora = k[len("diffusion_model."):-len(".weight")]key_map["{}".format(key_lora)] = k+ if isinstance(model, comfy.model_base.Omnigen2):+ for k in sdk:+ if k.startswith("diffusion_model.") and k.endswith(".weight"):+ key_lora = k[len("diffusion_model."):-len(".weight")]+ key_map["{}".format(key_lora)] = k+if isinstance(model, comfy.model_base.QwenImage):for k in sdk:if k.startswith("diffusion_model.") and k.endswith(".weight"): #QwenImage lora format