From da9a80f999f227d1c7ba966703a3d9bbbbd5a276 Mon Sep 17 00:00:00 2001 From: logtd Date: Sun, 11 Aug 2024 12:12:58 -0600 Subject: [PATCH] workflow examples --- workflow_examples/seg_example.json | 765 +++++++++++++++++++++++++++++ 1 file changed, 765 insertions(+) create mode 100644 workflow_examples/seg_example.json diff --git a/workflow_examples/seg_example.json b/workflow_examples/seg_example.json new file mode 100644 index 0000000..71c854d --- /dev/null +++ b/workflow_examples/seg_example.json @@ -0,0 +1,765 @@ +{ + "last_node_id": 18, + "last_link_id": 28, + "nodes": [ + { + "id": 4, + "type": "CheckpointLoaderSimple", + "pos": [ + -397, + 478 + ], + "size": { + "0": 315, + "1": 98 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 10, + 12 + ], + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 3, + 5 + ], + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 8, + 14 + ], + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "dreamshaperXL_lightningDPMSDE.safetensors" + ] + }, + { + "id": 7, + "type": "CLIPTextEncode", + "pos": [ + 313, + 289 + ], + "size": { + "0": 425.27801513671875, + "1": 180.6060791015625 + }, + "flags": { + "collapsed": true + }, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 5 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 6, + 16 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "text, watermark" + ] + }, + { + "id": 12, + "type": "VAEDecode", + "pos": [ + 1262, + -7 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 17 + }, + { + "name": "vae", + "type": "VAE", + "link": 14 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 25 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 8, + "type": "VAEDecode", + "pos": [ + 1209, + 188 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 7 + }, + { + "name": "vae", + "type": "VAE", + "link": 8 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 27 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 11, + "type": "KSampler", + "pos": [ + 983, + -173 + ], + "size": { + "0": 210, + "1": 262 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 12 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 15 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 16 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 13 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 17 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 1, + "fixed", + 8, + 1.6, + "dpmpp_sde", + "normal", + 1 + ] + }, + { + "id": 15, + "type": "ImageConcanate", + "pos": [ + 1949, + 244 + ], + "size": [ + 210, + 102 + ], + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "image1", + "type": "IMAGE", + "link": 26 + }, + { + "name": "image2", + "type": "IMAGE", + "link": 28 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 24 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ImageConcanate" + }, + "widgets_values": [ + "right", + false + ] + }, + { + "id": 18, + "type": "AddLabel", + "pos": [ + 1561, + 294 + ], + "size": [ + 210, + 270 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 27 + }, + { + "name": "caption", + "type": "STRING", + "link": null, + "widget": { + "name": "caption" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 28 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "AddLabel" + }, + "widgets_values": [ + 10, + 2, + 48, + 32, + "white", + "black", + "FreeMono.ttf", + "SEG", + "up", + "" + ] + }, + { + "id": 17, + "type": "AddLabel", + "pos": [ + 1556, + -37 + ], + "size": [ + 210, + 270 + ], + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 25 + }, + { + "name": "caption", + "type": "STRING", + "link": null, + "widget": { + "name": "caption" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 26 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "AddLabel" + }, + "widgets_values": [ + 10, + 2, + 48, + 32, + "white", + "black", + "FreeMono.ttf", + "SDXL Vanilla (CFG)", + "up", + "" + ] + }, + { + "id": 3, + "type": "KSampler", + "pos": [ + 972, + 191 + ], + "size": [ + 210, + 262 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 11 + }, + { + "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": [ + 7 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 1, + "fixed", + 8, + 1.3, + "dpmpp_sde", + "normal", + 1 + ] + }, + { + "id": 10, + "type": "SEGAttention", + "pos": [ + 437, + 450 + ], + "size": [ + 210, + 106 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 10 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 11 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "SEGAttention" + }, + "widgets_values": [ + 2, + 10, + false + ] + }, + { + "id": 6, + "type": "CLIPTextEncode", + "pos": [ + 397, + 16 + ], + "size": [ + 293.29735371224956, + 211.1902023645 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 3 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 4, + 15 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "a wooden bridge that leads to a small island in the river. On the island stands a old house in slavic style, a couple of trees next to it, a half-submerged boat near the bridge. Fog rises around, a white haze around, like a veil separating from another world, style by Lovecraft, meticulous, intricate, entangled, intricately detailed" + ] + }, + { + "id": 5, + "type": "EmptyLatentImage", + "pos": [ + 487, + 624 + ], + "size": [ + 210, + 106 + ], + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 2, + 13 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 1024, + 1024, + 1 + ] + }, + { + "id": 16, + "type": "PreviewImage", + "pos": [ + 2672, + 219 + ], + "size": [ + 891.8766816758166, + 774.3291043447313 + ], + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 24 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + } + ], + "links": [ + [ + 2, + 5, + 0, + 3, + 3, + "LATENT" + ], + [ + 3, + 4, + 1, + 6, + 0, + "CLIP" + ], + [ + 4, + 6, + 0, + 3, + 1, + "CONDITIONING" + ], + [ + 5, + 4, + 1, + 7, + 0, + "CLIP" + ], + [ + 6, + 7, + 0, + 3, + 2, + "CONDITIONING" + ], + [ + 7, + 3, + 0, + 8, + 0, + "LATENT" + ], + [ + 8, + 4, + 2, + 8, + 1, + "VAE" + ], + [ + 10, + 4, + 0, + 10, + 0, + "MODEL" + ], + [ + 11, + 10, + 0, + 3, + 0, + "MODEL" + ], + [ + 12, + 4, + 0, + 11, + 0, + "MODEL" + ], + [ + 13, + 5, + 0, + 11, + 3, + "LATENT" + ], + [ + 14, + 4, + 2, + 12, + 1, + "VAE" + ], + [ + 15, + 6, + 0, + 11, + 1, + "CONDITIONING" + ], + [ + 16, + 7, + 0, + 11, + 2, + "CONDITIONING" + ], + [ + 17, + 11, + 0, + 12, + 0, + "LATENT" + ], + [ + 24, + 15, + 0, + 16, + 0, + "IMAGE" + ], + [ + 25, + 12, + 0, + 17, + 0, + "IMAGE" + ], + [ + 26, + 17, + 0, + 15, + 0, + "IMAGE" + ], + [ + 27, + 8, + 0, + 18, + 0, + "IMAGE" + ], + [ + 28, + 18, + 0, + 15, + 1, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.620921323059155, + "offset": [ + -255.8485219669181, + 294.568294637634 + ] + } + }, + "version": 0.4 +} \ No newline at end of file