We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19a52b3 commit 154885dCopy full SHA for 154885d
comfy/lora.py
@@ -297,6 +297,12 @@ def model_lora_keys_unet(model, key_map={}):
297
key_lora = k[len("diffusion_model."):-len(".weight")]
298
key_map["{}".format(key_lora)] = k
299
300
+ if isinstance(model, comfy.model_base.Omnigen2):
301
+ for k in sdk:
302
+ if k.startswith("diffusion_model.") and k.endswith(".weight"):
303
+ key_lora = k[len("diffusion_model."):-len(".weight")]
304
+ key_map["{}".format(key_lora)] = k
305
+
306
if isinstance(model, comfy.model_base.QwenImage):
307
for k in sdk:
308
if k.startswith("diffusion_model.") and k.endswith(".weight"): #QwenImage lora format
0 commit comments