The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Bugfix/include optional node inputs (#271)
Silversithbb1503ed63eb
diff --git a/nodes.py b/nodes.pyindex f24bc4a5e..6fb7f0175 100644--- a/nodes.py+++ b/nodes.py@@ -1052,4 +1052,4 @@ def load_custom_nodes():load_custom_nodes()-load_custom_node(os.path.join(os.path.join(os.path.dirname(os.path.realpath(__file__)), "comfy_extras"), "nodes_upscale_model.py"))+load_custom_node(os.path.join(os.path.join(os.path.dirname(os.path.realpath(__file__)), "comfy_extras"), "nodes_upscale_model.py"))\ No newline at end of filediff --git a/web/scripts/app.js b/web/scripts/app.jsindex a9d3485ca..89eb71122 100644--- a/web/scripts/app.js+++ b/web/scripts/app.js@@ -683,7 +683,10 @@ class ComfyApp {const nodeData = defs[nodeId];const node = Object.assign(function ComfyNode() {- const inputs = nodeData["input"]["required"];+ var inputs = nodeData["input"]["required"];+ if (nodeData["input"]["optional"] != undefined){+ inputs = Object.assign({}, nodeData["input"]["required"], nodeData["input"]["optional"])+ }const config = { minWidth: 1, minHeight: 1 };for (const inputName in inputs) {const inputData = inputs[inputName];