From e577a18df03065bcbc2705188d8fd343a37d102b Mon Sep 17 00:00:00 2001 From: logtd Date: Sat, 5 Oct 2024 17:37:47 -0600 Subject: [PATCH] example workflow --- example_workflows/apg_example_workflow.json | 705 ++++++++++++++++++++ 1 file changed, 705 insertions(+) create mode 100644 example_workflows/apg_example_workflow.json diff --git a/example_workflows/apg_example_workflow.json b/example_workflows/apg_example_workflow.json new file mode 100644 index 0000000..e4f82bd --- /dev/null +++ b/example_workflows/apg_example_workflow.json @@ -0,0 +1,705 @@ +{ + "last_node_id": 15, + "last_link_id": 22, + "nodes": [ + { + "id": 7, + "type": "CLIPTextEncode", + "pos": { + "0": 512, + "1": 165 + }, + "size": [ + 250.94324768542947, + 77.38603415874536 + ], + "flags": { + "collapsed": false + }, + "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": 4, + "type": "CheckpointLoaderSimple", + "pos": { + "0": 80, + "1": 229 + }, + "size": { + "0": 315, + "1": 98 + }, + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 10, + 13 + ], + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 3, + 5 + ], + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 8, + 17 + ], + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "sd_xl_base_1.0.safetensors" + ] + }, + { + "id": 14, + "type": "ImageConcanate", + "pos": { + "0": 1445, + "1": 89 + }, + "size": { + "0": 315, + "1": 102 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "image1", + "type": "IMAGE", + "link": 22 + }, + { + "name": "image2", + "type": "IMAGE", + "link": 21 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 19 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ImageConcanate" + }, + "widgets_values": [ + "right", + false + ] + }, + { + "id": 8, + "type": "VAEDecode", + "pos": { + "0": 1139, + "1": 194 + }, + "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": [ + 21 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 13, + "type": "VAEDecode", + "pos": { + "0": 1125, + "1": -6 + }, + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 18 + }, + { + "name": "vae", + "type": "VAE", + "link": 17 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 22 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 11, + "type": "PreviewImage", + "pos": { + "0": 1848, + "1": -8 + }, + "size": [ + 1087.3394635385785, + 612.9718960737737 + ], + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 20 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 3, + "type": "KSampler", + "pos": { + "0": 863, + "1": 186 + }, + "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": [ + 0, + "fixed", + 40, + 15, + "euler", + "normal", + 1 + ] + }, + { + "id": 12, + "type": "KSampler", + "pos": { + "0": 867, + "1": -126 + }, + "size": { + "0": 210, + "1": 262 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 13 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 15 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 16 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 14 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 18 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 0, + "fixed", + 40, + 15, + "euler", + "normal", + 1 + ] + }, + { + "id": 5, + "type": "EmptyLatentImage", + "pos": { + "0": 857, + "1": 497 + }, + "size": [ + 210, + 106 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 2, + 14 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 1024, + 1024, + 1 + ] + }, + { + "id": 10, + "type": "APGFunction", + "pos": { + "0": 518, + "1": 340 + }, + "size": [ + 210, + 130 + ], + "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": "APGFunction" + }, + "widgets_values": [ + 1, + 3, + "enable", + 0.05 + ] + }, + { + "id": 6, + "type": "CLIPTextEncode", + "pos": { + "0": 470, + "1": 16 + }, + "size": [ + 327.15138307361246, + 100.76319500629123 + ], + "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": [ + "Astronaut on Mars during sunset" + ] + }, + { + "id": 15, + "type": "AddLabel", + "pos": { + "0": 1404, + "1": -268 + }, + "size": [ + 315, + 274 + ], + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 19 + }, + { + "name": "caption", + "type": "STRING", + "link": null, + "widget": { + "name": "caption" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 20 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "AddLabel" + }, + "widgets_values": [ + 10, + 2, + 78, + 32, + "white", + "black", + "FreeMono.ttf", + "Astronaut on Mars during sunset", + "up", + "" + ] + } + ], + "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" + ], + [ + 13, + 4, + 0, + 12, + 0, + "MODEL" + ], + [ + 14, + 5, + 0, + 12, + 3, + "LATENT" + ], + [ + 15, + 6, + 0, + 12, + 1, + "CONDITIONING" + ], + [ + 16, + 7, + 0, + 12, + 2, + "CONDITIONING" + ], + [ + 17, + 4, + 2, + 13, + 1, + "VAE" + ], + [ + 18, + 12, + 0, + 13, + 0, + "LATENT" + ], + [ + 19, + 14, + 0, + 15, + 0, + "IMAGE" + ], + [ + 20, + 15, + 0, + 11, + 0, + "IMAGE" + ], + [ + 21, + 8, + 0, + 14, + 1, + "IMAGE" + ], + [ + 22, + 13, + 0, + 14, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.6830134553650705, + "offset": [ + -542.2538576706637, + 331.8915604944818 + ] + } + }, + "version": 0.4 +} \ No newline at end of file