diff --git a/examples/workflows/seed_history_example.json b/examples/workflows/seed_history_example.json new file mode 100644 index 0000000..782bfbd --- /dev/null +++ b/examples/workflows/seed_history_example.json @@ -0,0 +1,409 @@ +{ + "last_node_id": 8, + "last_link_id": 7, + "nodes": [ + { + "id": 1, + "type": "SeedHistory", + "pos": [ + 100, + 100 + ], + "size": { + "0": 280, + "1": 320 + }, + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "seed", + "type": "INT", + "links": [ + 1 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "SeedHistory" + }, + "widgets_values": [ + 12345 + ], + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 2, + "type": "CheckpointLoaderSimple", + "pos": [ + 100, + 450 + ], + "size": { + "0": 315, + "1": 98 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 2 + ], + "shape": 3 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 3 + ], + "shape": 3 + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 4 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "sd_xl_base_1.0.safetensors" + ] + }, + { + "id": 3, + "type": "CLIPTextEncode", + "pos": [ + 450, + 100 + ], + "size": { + "0": 400, + "1": 200 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 3 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 5 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "a beautiful landscape with mountains and lakes, sunset, detailed, photorealistic" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 4, + "type": "CLIPTextEncode", + "pos": [ + 450, + 350 + ], + "size": { + "0": 400, + "1": 200 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 3 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 6 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "blurry, low quality, distorted, ugly, deformed" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 5, + "type": "KSampler", + "pos": [ + 900, + 100 + ], + "size": { + "0": 315, + "1": 262 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 2 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 5 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 6 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": null + }, + { + "name": "seed", + "type": "INT", + "link": 1, + "widget": { + "name": "seed" + } + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 7 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 12345, + "randomize", + 20, + 8, + "euler", + "normal", + 1 + ] + }, + { + "id": 6, + "type": "EmptyLatentImage", + "pos": [ + 900, + 400 + ], + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 5, + "mode": 0, + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 1024, + 1024, + 1 + ] + }, + { + "id": 7, + "type": "VAEDecode", + "pos": [ + 1300, + 100 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 7 + }, + { + "name": "vae", + "type": "VAE", + "link": 4 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 8, + "type": "SaveImage", + "pos": [ + 1300, + 200 + ], + "size": { + "0": 315, + "1": 270 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": null + } + ], + "properties": { + "Node name for S&R": "SaveImage" + }, + "widgets_values": [ + "ComfyUI" + ] + } + ], + "links": [ + [ + 1, + 1, + 0, + 5, + 4, + "INT" + ], + [ + 2, + 2, + 0, + 5, + 0, + "MODEL" + ], + [ + 3, + 2, + 1, + 3, + 0, + "CLIP" + ], + [ + 4, + 2, + 2, + 7, + 1, + "VAE" + ], + [ + 5, + 3, + 0, + 5, + 1, + "CONDITIONING" + ], + [ + 6, + 4, + 0, + 5, + 2, + "CONDITIONING" + ], + [ + 7, + 5, + 0, + 7, + 0, + "LATENT" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.9090909090909091, + "offset": [ + -45.45454545454545, + -9.090909090909092 + ] + }, + "info": { + "name": "Seed History Example", + "author": "ComfyUI-KikoTools", + "description": "Example workflow demonstrating the Seed History tool for tracking and managing seed values with an interactive UI.", + "version": "1.0", + "created": "2024-06-14", + "modified": "2024-06-14" + } + }, + "version": 0.4 +} \ No newline at end of file