diff --git a/examples/layered_diffusion_fg_example.json b/examples/layered_diffusion_fg_example.json index 2af6dc2..b620c6a 100644 --- a/examples/layered_diffusion_fg_example.json +++ b/examples/layered_diffusion_fg_example.json @@ -1,6 +1,6 @@ { - "last_node_id": 20, - "last_link_id": 29, + "last_node_id": 27, + "last_link_id": 36, "nodes": [ { "id": 7, @@ -78,39 +78,6 @@ "beautiful scenery nature glass bottle landscape, , purple galaxy bottle," ] }, - { - "id": 5, - "type": "EmptyLatentImage", - "pos": [ - 473, - 713 - ], - "size": { - "0": 315, - "1": 106 - }, - "flags": {}, - "order": 0, - "mode": 0, - "outputs": [ - { - "name": "LATENT", - "type": "LATENT", - "links": [ - 2 - ], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "EmptyLatentImage" - }, - "widgets_values": [ - 1024, - 1024, - 1 - ] - }, { "id": 4, "type": "CheckpointLoaderSimple", @@ -123,7 +90,7 @@ "1": 98 }, "flags": {}, - "order": 1, + "order": 0, "mode": 0, "outputs": [ { @@ -159,132 +126,6 @@ "juggernautXL_v8Rundiffusion.safetensors" ] }, - { - "id": 3, - "type": "KSampler", - "pos": [ - 891, - 192 - ], - "size": { - "0": 315, - "1": 262 - }, - "flags": {}, - "order": 5, - "mode": 0, - "inputs": [ - { - "name": "model", - "type": "MODEL", - "link": 19 - }, - { - "name": "positive", - "type": "CONDITIONING", - "link": 4 - }, - { - "name": "negative", - "type": "CONDITIONING", - "link": 6 - }, - { - "name": "latent_image", - "type": "LATENT", - "link": 2 - } - ], - "outputs": [ - { - "name": "LATENT", - "type": "LATENT", - "links": [ - 21, - 23 - ], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "KSampler" - }, - "widgets_values": [ - 525403527119400, - "randomize", - 20, - 8, - "euler", - "normal", - 1 - ] - }, - { - "id": 15, - "type": "LayeredDiffusionDecode", - "pos": [ - 1577, - 197 - ], - "size": { - "0": 210, - "1": 46 - }, - "flags": {}, - "order": 7, - "mode": 0, - "inputs": [ - { - "name": "samples", - "type": "LATENT", - "link": 23 - }, - { - "name": "images", - "type": "IMAGE", - "link": 24 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 28 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "LayeredDiffusionDecode" - } - }, - { - "id": 20, - "type": "PreviewImage", - "pos": [ - 1567, - 453 - ], - "size": { - "0": 210, - "1": 246 - }, - "flags": {}, - "order": 8, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 29 - } - ], - "properties": { - "Node name for S&R": "PreviewImage" - } - }, { "id": 14, "type": "VAEDecode", @@ -328,42 +169,17 @@ "Node name for S&R": "VAEDecode" } }, - { - "id": 19, - "type": "PreviewRGBAImage", - "pos": [ - 1906, - 453 - ], - "size": { - "0": 215, - "1": 254 - }, - "flags": {}, - "order": 9, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 28 - } - ], - "properties": { - "Node name for S&R": "PreviewRGBAImage" - } - }, { "id": 13, "type": "LayeredDiffusionApply", "pos": [ - 462, - 17 - ], - "size": [ - 327.83141174316404, - 106.42147827148438 + 468, + -2 ], + "size": { + "0": 327.8314208984375, + "1": 106.42147827148438 + }, "flags": {}, "order": 2, "mode": 0, @@ -392,6 +208,328 @@ "Conv Injection", 1 ] + }, + { + "id": 20, + "type": "PreviewImage", + "pos": [ + 1547, + 472 + ], + "size": { + "0": 289.6058349609375, + "1": 299.6588134765625 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 29 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 5, + "type": "EmptyLatentImage", + "pos": [ + 475, + 707 + ], + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 2 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 1024, + 1024, + 1 + ] + }, + { + "id": 3, + "type": "KSampler", + "pos": [ + 911, + 198 + ], + "size": { + "0": 315, + "1": 262 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 19 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 4 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 6 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 2 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 21, + 23 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 619434302833441, + "randomize", + 20, + 8, + "euler", + "normal", + 1 + ] + }, + { + "id": 25, + "type": "PreviewImage", + "pos": [ + 2244, + 194 + ], + "size": { + "0": 289.6058349609375, + "1": 299.6588134765625 + }, + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 33 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 24, + "type": "MaskToImage", + "pos": [ + 1921, + 192 + ], + "size": { + "0": 210, + "1": 26 + }, + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 32 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 33 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "MaskToImage" + } + }, + { + "id": 23, + "type": "PreviewImage", + "pos": [ + 1965, + 479 + ], + "size": { + "0": 289.6058349609375, + "1": 299.6588134765625 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 31 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 15, + "type": "LayeredDiffusionDecode", + "pos": [ + 1586, + 195 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 23 + }, + { + "name": "images", + "type": "IMAGE", + "link": 24 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 31, + 35 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": [ + 32, + 34 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "LayeredDiffusionDecode" + } + }, + { + "id": 26, + "type": "ETN_ApplyMaskToImage", + "pos": [ + 1928, + 15 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 35 + }, + { + "name": "mask", + "type": "MASK", + "link": 34 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 36 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ETN_ApplyMaskToImage" + } + }, + { + "id": 27, + "type": "PreviewImage", + "pos": [ + 2243, + -164 + ], + "size": { + "0": 289.6058349609375, + "1": 299.6588134765625 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 36 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } } ], "links": [ @@ -483,14 +621,6 @@ 1, "IMAGE" ], - [ - 28, - 15, - 0, - 19, - 0, - "IMAGE" - ], [ 29, 14, @@ -498,6 +628,54 @@ 20, 0, "IMAGE" + ], + [ + 31, + 15, + 0, + 23, + 0, + "IMAGE" + ], + [ + 32, + 15, + 1, + 24, + 0, + "MASK" + ], + [ + 33, + 24, + 0, + 25, + 0, + "IMAGE" + ], + [ + 34, + 15, + 1, + 26, + 1, + "MASK" + ], + [ + 35, + 15, + 0, + 26, + 0, + "IMAGE" + ], + [ + 36, + 26, + 0, + 27, + 0, + "IMAGE" ] ], "groups": [],