The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Always clone graph data when loading to fix some load issues.
comfyanonymous7114cfec0eef
diff --git a/web/scripts/app.js b/web/scripts/app.jsindex d22b98c31..4507527f6 100644--- a/web/scripts/app.js+++ b/web/scripts/app.js@@ -1489,16 +1489,18 @@ export class ComfyApp {let reset_invalid_values = false;if (!graphData) {- if (typeof structuredClone === "undefined")- {- graphData = JSON.parse(JSON.stringify(defaultGraph));- }else- {- graphData = structuredClone(defaultGraph);- }+ graphData = defaultGraph;reset_invalid_values = true;}+ if (typeof structuredClone === "undefined")+ {+ graphData = JSON.parse(JSON.stringify(graphData));+ }else+ {+ graphData = structuredClone(graphData);+ }+const missingNodeTypes = [];for (let n of graphData.nodes) {// Patch T2IAdapterLoader to ControlNetLoader since they are the same node now