From 1555104f1783720324c85a31d2e51c20bca9aa73 Mon Sep 17 00:00:00 2001 From: matt3o Date: Sun, 17 Dec 2023 17:49:47 +0100 Subject: [PATCH] remove redundant nodes --- examples/IPAdapter_2_masks.json | 661 +++++++++++++++----------------- 1 file changed, 313 insertions(+), 348 deletions(-) diff --git a/examples/IPAdapter_2_masks.json b/examples/IPAdapter_2_masks.json index 88a5851..e32e4ae 100644 --- a/examples/IPAdapter_2_masks.json +++ b/examples/IPAdapter_2_masks.json @@ -1,6 +1,6 @@ { - "last_node_id": 52, - "last_link_id": 92, + "last_node_id": 56, + "last_link_id": 101, "nodes": [ { "id": 5, @@ -14,7 +14,7 @@ "1": 160 }, "flags": {}, - "order": 11, + "order": 10, "mode": 0, "inputs": [ { @@ -54,7 +54,7 @@ "1": 50 }, "flags": {}, - "order": 21, + "order": 20, "mode": 0, "inputs": [ { @@ -230,42 +230,6 @@ "color": "#232", "bgcolor": "#353" }, - { - "id": 32, - "type": "SolidMask", - "pos": [ - -570, - 100 - ], - "size": { - "0": 210, - "1": 106 - }, - "flags": {}, - "order": 4, - "mode": 0, - "outputs": [ - { - "name": "MASK", - "type": "MASK", - "links": [ - 71 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "SolidMask" - }, - "widgets_values": [ - 1, - 384, - 512 - ], - "color": "#232", - "bgcolor": "#353" - }, { "id": 4, "type": "CLIPTextEncode", @@ -278,7 +242,7 @@ "1": 160 }, "flags": {}, - "order": 10, + "order": 9, "mode": 0, "inputs": [ { @@ -318,7 +282,7 @@ "1": 480.1444091796875 }, "flags": {}, - "order": 22, + "order": 21, "mode": 0, "inputs": [ { @@ -343,7 +307,7 @@ "1": 110 }, "flags": {}, - "order": 15, + "order": 12, "mode": 0, "inputs": [ { @@ -386,7 +350,7 @@ "1": 60 }, "flags": {}, - "order": 5, + "order": 4, "mode": 0, "outputs": [ { @@ -421,7 +385,7 @@ "1": 320 }, "flags": {}, - "order": 6, + "order": 5, "mode": 0, "outputs": [ { @@ -463,7 +427,7 @@ "1": 110 }, "flags": {}, - "order": 13, + "order": 11, "mode": 0, "inputs": [ { @@ -494,226 +458,6 @@ "color": "#223", "bgcolor": "#335" }, - { - "id": 47, - "type": "FeatherMask", - "pos": [ - -310, - 100 - ], - "size": { - "0": 210, - "1": 130 - }, - "flags": {}, - "order": 12, - "mode": 0, - "inputs": [ - { - "name": "mask", - "type": "MASK", - "link": 71 - } - ], - "outputs": [ - { - "name": "MASK", - "type": "MASK", - "links": [ - 72 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "FeatherMask" - }, - "widgets_values": [ - 0, - 0, - 150, - 0 - ], - "color": "#232", - "bgcolor": "#353" - }, - { - "id": 33, - "type": "MaskComposite", - "pos": [ - -50, - 40 - ], - "size": { - "0": 210, - "1": 130 - }, - "flags": {}, - "order": 16, - "mode": 0, - "inputs": [ - { - "name": "destination", - "type": "MASK", - "link": 51 - }, - { - "name": "source", - "type": "MASK", - "link": 72 - } - ], - "outputs": [ - { - "name": "MASK", - "type": "MASK", - "links": [ - 89 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "MaskComposite" - }, - "widgets_values": [ - 0, - 0, - "add" - ], - "color": "#232", - "bgcolor": "#353" - }, - { - "id": 38, - "type": "MaskComposite", - "pos": [ - 780, - -70 - ], - "size": { - "0": 210, - "1": 126 - }, - "flags": {}, - "order": 17, - "mode": 0, - "inputs": [ - { - "name": "destination", - "type": "MASK", - "link": 57 - }, - { - "name": "source", - "type": "MASK", - "link": 76 - } - ], - "outputs": [ - { - "name": "MASK", - "type": "MASK", - "links": [ - 83 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "MaskComposite" - }, - "widgets_values": [ - 384, - 0, - "add" - ], - "color": "#232", - "bgcolor": "#353" - }, - { - "id": 37, - "type": "SolidMask", - "pos": [ - 280, - 100 - ], - "size": { - "0": 210, - "1": 106 - }, - "flags": {}, - "order": 7, - "mode": 0, - "outputs": [ - { - "name": "MASK", - "type": "MASK", - "links": [ - 75 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "SolidMask" - }, - "widgets_values": [ - 1, - 384, - 512 - ], - "color": "#232", - "bgcolor": "#353" - }, - { - "id": 48, - "type": "FeatherMask", - "pos": [ - 530, - 90 - ], - "size": { - "0": 210, - "1": 130 - }, - "flags": {}, - "order": 14, - "mode": 0, - "inputs": [ - { - "name": "mask", - "type": "MASK", - "link": 75 - } - ], - "outputs": [ - { - "name": "MASK", - "type": "MASK", - "links": [ - 76 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "FeatherMask" - }, - "widgets_values": [ - 150, - 0, - 0, - 0 - ], - "color": "#232", - "bgcolor": "#353" - }, { "id": 27, "type": "LoadImage", @@ -726,7 +470,7 @@ "1": 330 }, "flags": {}, - "order": 8, + "order": 6, "mode": 0, "outputs": [ { @@ -768,7 +512,7 @@ "1": 60 }, "flags": {}, - "order": 9, + "order": 7, "mode": 0, "outputs": [ { @@ -791,65 +535,6 @@ "color": "#223", "bgcolor": "#335" }, - { - "id": 1, - "type": "KSampler", - "pos": [ - 1160, - 300 - ], - "size": { - "0": 240, - "1": 262 - }, - "flags": {}, - "order": 20, - "mode": 0, - "inputs": [ - { - "name": "model", - "type": "MODEL", - "link": 84 - }, - { - "name": "positive", - "type": "CONDITIONING", - "link": 2 - }, - { - "name": "negative", - "type": "CONDITIONING", - "link": 3 - }, - { - "name": "latent_image", - "type": "LATENT", - "link": 4 - } - ], - "outputs": [ - { - "name": "LATENT", - "type": "LATENT", - "links": [ - 7 - ], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "KSampler" - }, - "widgets_values": [ - 37, - "fixed", - 30, - 5, - "dpmpp_2m", - "karras", - 1 - ] - }, { "id": 51, "type": "IPAdapterApply", @@ -862,7 +547,7 @@ "1": 258 }, "flags": {}, - "order": 18, + "order": 17, "mode": 0, "inputs": [ { @@ -916,19 +601,126 @@ "color": "#223", "bgcolor": "#335" }, + { + "id": 1, + "type": "KSampler", + "pos": [ + 1160, + 300 + ], + "size": { + "0": 240, + "1": 262 + }, + "flags": {}, + "order": 19, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 98 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 2 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 3 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 4 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 7 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 37, + "fixed", + 30, + 5, + "dpmpp_2m", + "karras", + 1 + ] + }, + { + "id": 33, + "type": "MaskComposite", + "pos": [ + -50, + 40 + ], + "size": { + "0": 210, + "1": 130 + }, + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "destination", + "type": "MASK", + "link": 51 + }, + { + "name": "source", + "type": "MASK", + "link": 72 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 89 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "MaskComposite" + }, + "widgets_values": [ + 0, + 0, + "add" + ], + "color": "#232", + "bgcolor": "#353" + }, { "id": 50, "type": "IPAdapterApply", "pos": [ - 1030, - -220 + 1044, + -107 ], "size": { "0": 210, "1": 258 }, "flags": {}, - "order": 19, + "order": 18, "mode": 0, "inputs": [ { @@ -962,7 +754,7 @@ "name": "MODEL", "type": "MODEL", "links": [ - 84 + 98 ], "shape": 3, "slot_index": 0 @@ -981,6 +773,179 @@ ], "color": "#223", "bgcolor": "#335" + }, + { + "id": 32, + "type": "SolidMask", + "pos": [ + -570, + 100 + ], + "size": { + "0": 210, + "1": 106 + }, + "flags": {}, + "order": 8, + "mode": 0, + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 71, + 99 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "SolidMask" + }, + "widgets_values": [ + 1, + 400, + 512 + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 38, + "type": "MaskComposite", + "pos": [ + 788, + 22 + ], + "size": { + "0": 210, + "1": 126 + }, + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "destination", + "type": "MASK", + "link": 57 + }, + { + "name": "source", + "type": "MASK", + "link": 76 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 83 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "MaskComposite" + }, + "widgets_values": [ + 368, + 0, + "add" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 48, + "type": "FeatherMask", + "pos": [ + 530, + 90 + ], + "size": { + "0": 210, + "1": 130 + }, + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 99 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 76 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "FeatherMask" + }, + "widgets_values": [ + 100, + 0, + 0, + 0 + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 47, + "type": "FeatherMask", + "pos": [ + -305, + 65 + ], + "size": { + "0": 210, + "1": 130 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 71 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 72 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "FeatherMask" + }, + "widgets_values": [ + 0, + 0, + 100, + 0 + ], + "color": "#232", + "bgcolor": "#353" } ], "links": [ @@ -1088,14 +1053,6 @@ 1, "MASK" ], - [ - 75, - 37, - 0, - 48, - 0, - "MASK" - ], [ 76, 48, @@ -1128,14 +1085,6 @@ 4, "MASK" ], - [ - 84, - 50, - 0, - 1, - 0, - "MODEL" - ], [ 85, 10, @@ -1199,6 +1148,22 @@ 50, 2, "IMAGE" + ], + [ + 98, + 50, + 0, + 1, + 0, + "MODEL" + ], + [ + 99, + 32, + 0, + 48, + 0, + "MASK" ] ], "groups": [],