{ "workflow": { "last_node_id": 26, "last_link_id": 49, "nodes": [ { "id": 5, "type": "KSamplerAdvanced", "pos": [ 900, 580 ], "size": { "0": 300, "1": 290 }, "flags": {}, "order": 13, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 11 }, { "name": "positive", "type": "CONDITIONING", "link": 8 }, { "name": "negative", "type": "CONDITIONING", "link": 7 }, { "name": "latent_image", "type": "LATENT", "link": 2 }, { "name": "start_at_step", "type": "INT", "link": 15, "widget": { "name": "start_at_step", "config": [ "INT", { "default": 0, "min": 0, "max": 10000 } ] } }, { "name": "noise_seed", "type": "INT", "link": 17, "widget": { "name": "noise_seed", "config": [ "INT", { "default": 0, "min": 0, "max": 18446744073709552000 } ] }, "slot_index": 6 }, { "name": "steps", "type": "INT", "link": 27, "widget": { "name": "steps", "config": [ "INT", { "default": 20, "min": 1, "max": 10000 } ] } }, { "name": "end_at_step", "type": "INT", "link": 28, "widget": { "name": "end_at_step", "config": [ "INT", { "default": 10000, "min": 0, "max": 10000 } ] } }, { "name": "cfg", "type": "FLOAT", "link": 39, "widget": { "name": "cfg", "config": [ "FLOAT", { "default": 8, "min": 0, "max": 100 } ] }, "slot_index": 8 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 23 ], "shape": 3, "slot_index": 0 } ], "title": "KSampler (Advanced) - Middle", "properties": { "Node name for S&R": "KSamplerAdvanced" }, "widgets_values": [ "disable", 0, "randomize", 20, 8, "euler", "normal", 0, 10000, "enable" ] }, { "id": 9, "type": "IntConditions", "pos": [ 1300, 230 ], "size": { "0": 300, "1": 82 }, "flags": {}, "order": 10, "mode": 0, "inputs": [ { "name": "a", "type": "INT", "link": 26, "widget": { "name": "a", "config": [ "INT", { "default": 0, "min": -18446744073709552000, "max": 18446744073709552000, "step": 1 } ] } } ], "outputs": [ { "name": "BOOL", "type": "BOOL", "links": [ 12 ], "shape": 3 } ], "properties": { "Node name for S&R": "IntConditions" }, "widgets_values": [ 0, 0, ">" ] }, { "id": 15, "type": "IntConditions", "pos": [ 1300, 370 ], "size": { "0": 300, "1": 80 }, "flags": {}, "order": 14, "mode": 0, "inputs": [ { "name": "a", "type": "INT", "link": 43, "widget": { "name": "a", "config": [ "INT", { "default": 0, "min": -18446744073709552000, "max": 18446744073709552000, "step": 1 } ] } }, { "name": "b", "type": "INT", "link": 44, "widget": { "name": "b", "config": [ "INT", { "default": 0, "min": -18446744073709552000, "max": 18446744073709552000, "step": 1 } ] } } ], "outputs": [ { "name": "BOOL", "type": "BOOL", "links": [ 25 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "IntConditions" }, "widgets_values": [ 0, 0, "==" ] }, { "id": 17, "type": "KSamplerAdvanced", "pos": [ 900, 920 ], "size": { "0": 300, "1": 294 }, "flags": {}, "order": 12, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 34 }, { "name": "positive", "type": "CONDITIONING", "link": 32 }, { "name": "negative", "type": "CONDITIONING", "link": 33 }, { "name": "latent_image", "type": "LATENT", "link": 31 }, { "name": "start_at_step", "type": "INT", "link": 30, "widget": { "name": "start_at_step", "config": [ "INT", { "default": 0, "min": 0, "max": 10000 } ] } }, { "name": "noise_seed", "type": "INT", "link": 35, "widget": { "name": "noise_seed", "config": [ "INT", { "default": 0, "min": 0, "max": 18446744073709552000 } ] }, "slot_index": 6 }, { "name": "steps", "type": "INT", "link": 36, "widget": { "name": "steps", "config": [ "INT", { "default": 20, "min": 1, "max": 10000 } ] } }, { "name": "cfg", "type": "FLOAT", "link": 38, "widget": { "name": "cfg", "config": [ "FLOAT", { "default": 8, "min": 0, "max": 100 } ] }, "slot_index": 7 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 41 ], "shape": 3, "slot_index": 0 } ], "title": "KSampler (Advanced) - End", "properties": { "Node name for S&R": "KSamplerAdvanced" }, "widgets_values": [ "disable", 0, "randomize", 20, 8, "euler", "normal", 0, 10000, "disable" ] }, { "id": 8, "type": "InversionDemoLazySwitch", "pos": [ 1700, 230 ], "size": { "0": 210, "1": 80 }, "flags": {}, "order": 15, "mode": 0, "inputs": [ { "name": "on_false", "type": "*", "link": 22 }, { "name": "on_true", "type": "*", "link": 23 }, { "name": "switch", "type": "BOOL", "link": 12, "widget": { "name": "switch", "config": [ "BOOL" ] }, "slot_index": 2 } ], "outputs": [ { "name": "*", "type": "*", "links": [ 24 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "InversionDemoLazySwitch" }, "widgets_values": [ false ] }, { "id": 14, "type": "InversionDemoLazySwitch", "pos": [ 1700, 370 ], "size": { "0": 210, "1": 74 }, "flags": {}, "order": 16, "mode": 0, "inputs": [ { "name": "on_false", "type": "*", "link": 24 }, { "name": "on_true", "type": "*", "link": 41 }, { "name": "switch", "type": "BOOL", "link": 25, "widget": { "name": "switch", "config": [ "BOOL" ] }, "slot_index": 2 } ], "outputs": [ { "name": "*", "type": "*", "links": [ 46 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "InversionDemoLazySwitch" }, "widgets_values": [ false ] }, { "id": 20, "type": "ComponentOutput", "pos": [ 2000, 370 ], "size": { "0": 300, "1": 110 }, "flags": {}, "order": 17, "mode": 0, "inputs": [ { "name": "value", "type": "*", "link": 46 } ], "outputs": [ { "name": "*", "type": "*", "links": null, "shape": 3 } ], "properties": { "Node name for S&R": "ComponentOutput" }, "widgets_values": [ 0, "LATENT", "" ] }, { "id": 4, "type": "KSamplerAdvanced", "pos": [ 900, 230 ], "size": { "0": 300, "1": 300 }, "flags": {}, "order": 11, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 10 }, { "name": "positive", "type": "CONDITIONING", "link": 3 }, { "name": "negative", "type": "CONDITIONING", "link": 9 }, { "name": "latent_image", "type": "LATENT", "link": 1 }, { "name": "noise_seed", "type": "INT", "link": 16, "widget": { "name": "noise_seed", "config": [ "INT", { "default": 0, "min": 0, "max": 18446744073709552000 } ] }, "slot_index": 4 }, { "name": "steps", "type": "INT", "link": 40, "widget": { "name": "steps", "config": [ "INT", { "default": 20, "min": 1, "max": 10000 } ] }, "slot_index": 5 }, { "name": "cfg", "type": "FLOAT", "link": 37, "widget": { "name": "cfg", "config": [ "FLOAT", { "default": 8, "min": 0, "max": 100 } ] }, "slot_index": 6 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 22 ], "shape": 3, "slot_index": 0 } ], "title": "KSampler (Advanced) - Start", "properties": { "Node name for S&R": "KSamplerAdvanced" }, "widgets_values": [ "enable", 0, "randomize", 20, 8, "euler", "normal", 0, 1, "enable" ] }, { "id": 2, "type": "ComponentInput", "pos": [ 300, 430 ], "size": { "0": 300, "1": 154 }, "flags": {}, "order": 0, "mode": 0, "inputs": [ { "name": "default_value", "type": "*", "link": null } ], "outputs": [ { "name": "*", "type": "*", "links": [ 3, 8, 32, 33 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "ComponentInput" }, "widgets_values": [ "positive", "CONDITIONING", "", 1, false ] }, { "id": 6, "type": "ComponentInput", "pos": [ 300, 630 ], "size": { "0": 300, "1": 154 }, "flags": {}, "order": 1, "mode": 0, "inputs": [ { "name": "default_value", "type": "*", "link": null } ], "outputs": [ { "name": "*", "type": "*", "links": [ 7, 9 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "ComponentInput" }, "widgets_values": [ "negative", "CONDITIONING", "", 2, false ] }, { "id": 1, "type": "ComponentInput", "pos": [ 300, 830 ], "size": { "0": 300, "1": 154 }, "flags": {}, "order": 2, "mode": 0, "inputs": [ { "name": "default_value", "type": "*", "link": null } ], "outputs": [ { "name": "*", "type": "*", "links": [ 1, 2, 31 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "ComponentInput" }, "widgets_values": [ "latent_image", "LATENT", "", 3, false ] }, { "id": 11, "type": "IntMathOperation", "pos": [ 300, 1230 ], "size": { "0": 300, "1": 82 }, "flags": {}, "order": 9, "mode": 0, "inputs": [ { "name": "a", "type": "INT", "link": 14, "widget": { "name": "a", "config": [ "INT", { "default": 0, "min": -18446744073709552000, "max": 18446744073709552000, "step": 1 } ] } } ], "outputs": [ { "name": "INT", "type": "INT", "links": [ 28, 43 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "IntMathOperation" }, "widgets_values": [ 0, 1, "add" ] }, { "id": 10, "type": "ComponentInput", "pos": [ 300, 1030 ], "size": { "0": 300, "1": 154 }, "flags": {}, "order": 3, "mode": 0, "inputs": [ { "name": "default_value", "type": "*", "link": null } ], "outputs": [ { "name": "*", "type": "*", "links": [ 14, 15, 26, 30 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "ComponentInput" }, "widgets_values": [ "current_step", "INT", "", 4, false ] }, { "id": 16, "type": "ComponentInput", "pos": [ 300, 1360 ], "size": { "0": 300, "1": 154 }, "flags": {}, "order": 4, "mode": 0, "inputs": [ { "name": "default_value", "type": "*", "link": null } ], "outputs": [ { "name": "*", "type": "*", "links": [ 27, 36, 40, 44 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "ComponentInput" }, "widgets_values": [ "steps", "INT", "", 5, false ] }, { "id": 12, "type": "ComponentInput", "pos": [ 300, 1560 ], "size": { "0": 300, "1": 154 }, "flags": {}, "order": 5, "mode": 0, "inputs": [ { "name": "default_value", "type": "*", "link": null } ], "outputs": [ { "name": "*", "type": "*", "links": [ 16, 17, 35 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "ComponentInput" }, "widgets_values": [ "noise_seed", "INT", "", 6, false ] }, { "id": 7, "type": "ComponentInput", "pos": [ 300, 230 ], "size": { "0": 300, "1": 154 }, "flags": {}, "order": 6, "mode": 0, "inputs": [ { "name": "default_value", "type": "*", "link": null } ], "outputs": [ { "name": "*", "type": "*", "links": [ 10, 11, 34 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "ComponentInput" }, "widgets_values": [ "model", "MODEL", "", 0, false ] }, { "id": 23, "type": "ComponentMetadata", "pos": [ 300, 50 ], "size": { "0": 315, "1": 82 }, "flags": {}, "order": 7, "mode": 0, "properties": { "Node name for S&R": "ComponentMetadata" }, "widgets_values": [ "Euler Single Step", true ] }, { "id": 19, "type": "ComponentInput", "pos": [ 300, 1760 ], "size": { "0": 300, "1": 154 }, "flags": {}, "order": 8, "mode": 0, "inputs": [ { "name": "default_value", "type": "*", "link": null, "slot_index": 0 } ], "outputs": [ { "name": "*", "type": "*", "links": [ 37, 38, 39 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "ComponentInput" }, "widgets_values": [ "cfg", "FLOAT", "{ \"default\": 8.0, \"min\": 1, \"max\": 30, \"step\": 0.01}", 7, false ] } ], "links": [ [ 1, 1, 0, 4, 3, "LATENT" ], [ 2, 1, 0, 5, 3, "LATENT" ], [ 3, 2, 0, 4, 1, "CONDITIONING" ], [ 7, 6, 0, 5, 2, "CONDITIONING" ], [ 8, 2, 0, 5, 1, "CONDITIONING" ], [ 9, 6, 0, 4, 2, "CONDITIONING" ], [ 10, 7, 0, 4, 0, "MODEL" ], [ 11, 7, 0, 5, 0, "MODEL" ], [ 12, 9, 0, 8, 2, "BOOL" ], [ 14, 10, 0, 11, 0, "INT" ], [ 15, 10, 0, 5, 4, "INT" ], [ 16, 12, 0, 4, 4, "INT" ], [ 17, 12, 0, 5, 5, "INT" ], [ 22, 4, 0, 8, 0, "*" ], [ 23, 5, 0, 8, 1, "*" ], [ 24, 8, 0, 14, 0, "*" ], [ 25, 15, 0, 14, 2, "BOOL" ], [ 26, 10, 0, 9, 0, "INT" ], [ 27, 16, 0, 5, 6, "INT" ], [ 28, 11, 0, 5, 7, "INT" ], [ 30, 10, 0, 17, 4, "INT" ], [ 31, 1, 0, 17, 3, "LATENT" ], [ 32, 2, 0, 17, 1, "CONDITIONING" ], [ 33, 2, 0, 17, 2, "CONDITIONING" ], [ 34, 7, 0, 17, 0, "MODEL" ], [ 35, 12, 0, 17, 5, "INT" ], [ 36, 16, 0, 17, 6, "INT" ], [ 37, 19, 0, 4, 6, "FLOAT" ], [ 38, 19, 0, 17, 7, "FLOAT" ], [ 39, 19, 0, 5, 8, "FLOAT" ], [ 40, 16, 0, 4, 5, "INT" ], [ 41, 17, 0, 14, 1, "*" ], [ 43, 11, 0, 15, 0, "INT" ], [ 44, 16, 0, 15, 1, "INT" ], [ 46, 14, 0, 20, 0, "*" ] ], "groups": [], "config": {}, "extra": {}, "version": 0.4 }, "output": { "1": { "inputs": { "name": "latent_image", "data_type": "LATENT", "extra_args": "", "explicit_input_order": 3, "optional": false }, "class_type": "ComponentInput" }, "2": { "inputs": { "name": "positive", "data_type": "CONDITIONING", "extra_args": "", "explicit_input_order": 1, "optional": false }, "class_type": "ComponentInput" }, "4": { "inputs": { "add_noise": "enable", "noise_seed": [ "12", 0 ], "steps": [ "16", 0 ], "cfg": [ "19", 0 ], "sampler_name": "euler", "scheduler": "normal", "start_at_step": 0, "end_at_step": 1, "return_with_leftover_noise": "enable", "model": [ "7", 0 ], "positive": [ "2", 0 ], "negative": [ "6", 0 ], "latent_image": [ "1", 0 ] }, "class_type": "KSamplerAdvanced" }, "5": { "inputs": { "add_noise": "disable", "noise_seed": [ "12", 0 ], "steps": [ "16", 0 ], "cfg": [ "19", 0 ], "sampler_name": "euler", "scheduler": "normal", "start_at_step": [ "10", 0 ], "end_at_step": [ "11", 0 ], "return_with_leftover_noise": "enable", "model": [ "7", 0 ], "positive": [ "2", 0 ], "negative": [ "6", 0 ], "latent_image": [ "1", 0 ] }, "class_type": "KSamplerAdvanced" }, "6": { "inputs": { "name": "negative", "data_type": "CONDITIONING", "extra_args": "", "explicit_input_order": 2, "optional": false }, "class_type": "ComponentInput" }, "7": { "inputs": { "name": "model", "data_type": "MODEL", "extra_args": "", "explicit_input_order": 0, "optional": false }, "class_type": "ComponentInput" }, "8": { "inputs": { "switch": [ "9", 0 ], "on_false": [ "4", 0 ], "on_true": [ "5", 0 ] }, "class_type": "InversionDemoLazySwitch" }, "9": { "inputs": { "a": [ "10", 0 ], "b": 0, "operation": ">" }, "class_type": "IntConditions" }, "10": { "inputs": { "name": "current_step", "data_type": "INT", "extra_args": "", "explicit_input_order": 4, "optional": false }, "class_type": "ComponentInput" }, "11": { "inputs": { "a": [ "10", 0 ], "b": 1, "operation": "add" }, "class_type": "IntMathOperation" }, "12": { "inputs": { "name": "noise_seed", "data_type": "INT", "extra_args": "", "explicit_input_order": 6, "optional": false }, "class_type": "ComponentInput" }, "14": { "inputs": { "switch": [ "15", 0 ], "on_false": [ "8", 0 ], "on_true": [ "17", 0 ] }, "class_type": "InversionDemoLazySwitch" }, "15": { "inputs": { "a": [ "11", 0 ], "b": [ "16", 0 ], "operation": "==" }, "class_type": "IntConditions" }, "16": { "inputs": { "name": "steps", "data_type": "INT", "extra_args": "", "explicit_input_order": 5, "optional": false }, "class_type": "ComponentInput" }, "17": { "inputs": { "add_noise": "disable", "noise_seed": [ "12", 0 ], "steps": [ "16", 0 ], "cfg": [ "19", 0 ], "sampler_name": "euler", "scheduler": "normal", "start_at_step": [ "10", 0 ], "end_at_step": 10000, "return_with_leftover_noise": "disable", "model": [ "7", 0 ], "positive": [ "2", 0 ], "negative": [ "2", 0 ], "latent_image": [ "1", 0 ] }, "class_type": "KSamplerAdvanced" }, "19": { "inputs": { "name": "cfg", "data_type": "FLOAT", "extra_args": "{ \"default\": 8.0, \"min\": 1, \"max\": 30, \"step\": 0.01}", "explicit_input_order": 7, "optional": false }, "class_type": "ComponentInput" }, "20": { "inputs": { "index": 0, "data_type": "LATENT", "name": "", "value": [ "14", 0 ] }, "class_type": "ComponentOutput" }, "23": { "inputs": { "name": "Euler Single Step", "always_output": true }, "class_type": "ComponentMetadata" } } }