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 a97f2f8 commit f935d42Copy full SHA for f935d42
comfy/lora.py
@@ -279,6 +279,13 @@ def model_lora_keys_unet(model, key_map={}):
279
key_map["transformer.{}".format(key_lora)] = k
280
key_map["diffusion_model.{}".format(key_lora)] = k # Old loras
281
282
+ if isinstance(model, comfy.model_base.HiDream):
283
+ for k in sdk:
284
+ if k.startswith("diffusion_model."):
285
+ if k.endswith(".weight"):
286
+ key_lora = k[len("diffusion_model."):-len(".weight")].replace(".", "_")
287
+ key_map["lycoris_{}".format(key_lora)] = k #SimpleTuner lycoris format
288
+
289
return key_map
290
291
0 commit comments