Skip to content

Commit 45a2ad5

Browse files
committed
Fix workflow validation "CLIPLoader: Value not in list: device: 'None' not in ['default', 'cpu']" #2087
* custom workflow import did a destructive update of node object info * as a result default values were also added for optional parameters (should only be required)
1 parent c561970 commit 45a2ad5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ai_diffusion/comfy_workflow.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,8 @@ def inputs(self, node_name: str, category="") -> dict[str, list] | None:
12421242
inputs = node.get("input", {})
12431243
if category:
12441244
return inputs.get(category)
1245-
result = inputs.get("required", {})
1245+
result = {}
1246+
result.update(inputs.get("required", {}))
12461247
result.update(inputs.get("optional", {}))
12471248
return result
12481249

0 commit comments

Comments
 (0)