remove loras if SetLora bypassed/disconnected

This commit is contained in:
kijai
2025-07-23 17:51:59 +03:00
parent 66226a8a1b
commit bdce322e65
3 changed files with 17 additions and 6 deletions
+4 -2
View File
@@ -629,8 +629,10 @@ class WanVideoSetLoRAs:
"required":
{
"model": ("WANVIDEOMODEL", ),
"lora": ("WANVIDLORA", ),
},
"optional": {
"lora": ("WANVIDLORA", ),
}
}
RETURN_TYPES = ("WANVIDEOMODEL",)
@@ -640,7 +642,7 @@ class WanVideoSetLoRAs:
EXPERIMENTAL = True
DESCRIPTION = "Sets the LoRA weights to be used directly in linear layers of the model, this does NOT merge LoRAs"
def setlora(self, model, lora):
def setlora(self, model, lora=None):
if lora is None:
return (model,)