From f247f2d8029cf18454787cab95b0680f45adfabe Mon Sep 17 00:00:00 2001 From: fanxingkun Date: Fri, 15 Nov 2024 11:30:05 +0800 Subject: [PATCH] docs: upload workflows --- workflows/diffbir_blind_face_restoration.json | 312 ++ workflows/diffbir_blind_image_denoising.json | 312 ++ workflows/diffbir_blind_super_resolution.json | 255 ++ workflows/img2img.json | 853 +++++ workflows/inpaint.json | 3275 +++++++++++++++++ workflows/text2img.json | 883 +++++ workflows/upscale_algorithm.json | 141 + workflows/upscale_diffbir_and_algorithm.json | 316 ++ workflows/upscale_model.json | 179 + 9 files changed, 6526 insertions(+) create mode 100644 workflows/diffbir_blind_face_restoration.json create mode 100644 workflows/diffbir_blind_image_denoising.json create mode 100644 workflows/diffbir_blind_super_resolution.json create mode 100644 workflows/img2img.json create mode 100644 workflows/inpaint.json create mode 100644 workflows/text2img.json create mode 100644 workflows/upscale_algorithm.json create mode 100644 workflows/upscale_diffbir_and_algorithm.json create mode 100644 workflows/upscale_model.json diff --git a/workflows/diffbir_blind_face_restoration.json b/workflows/diffbir_blind_face_restoration.json new file mode 100644 index 000000000..fa364169a --- /dev/null +++ b/workflows/diffbir_blind_face_restoration.json @@ -0,0 +1,312 @@ +{ + "last_node_id": 16, + "last_link_id": 29, + "nodes": [ + { + "id": 8, + "type": "LoadImage", + "pos": [ + 288, + 218 + ], + "size": { + "0": 315, + "1": 314 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 28 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "0722 (2).png", + "image" + ] + }, + { + "id": 9, + "type": "PreviewImage", + "pos": [ + 1279, + -176 + ], + "size": { + "0": 478.01593017578125, + "1": 683.1017456054688 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 29 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 14, + "type": "DiffBIR_sample_advanced", + "pos": [ + 776, + -180 + ], + "size": { + "0": 400, + "1": 730 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "stage1_model", + "type": "STAGE1", + "link": 23, + "slot_index": 0 + }, + { + "name": "task", + "type": "TASK", + "link": 24 + }, + { + "name": "cldm", + "type": "CLDM", + "link": 25, + "slot_index": 2 + }, + { + "name": "diffusion", + "type": "DIFFUSION", + "link": 26 + }, + { + "name": "infer_type", + "type": "INFER_TYPE", + "link": 27 + }, + { + "name": "image", + "type": "IMAGE", + "link": 28 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 29 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "DiffBIR_sample_advanced" + }, + "widgets_values": [ + 2, + 30, + 4, + false, + false, + 512, + 256, + true, + false, + 512, + 256, + "best quality, hdr, 4k", + "low quality, blurry, low-resolution, noisy, unsharp, weird textures", + 842260670851106, + "randomize", + "cuda", + false, + "w_mse", + 1, + 1001, + -1, + "latent", + 1 + ] + }, + { + "id": 15, + "type": "Stage1_load", + "pos": [ + 287, + -186 + ], + "size": { + "0": 315, + "1": 126 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "stage1_model", + "type": "STAGE1", + "links": [ + 23 + ], + "shape": 3 + }, + { + "name": "task", + "type": "TASK", + "links": [ + 24 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "Stage1_load" + }, + "widgets_values": [ + "bfr", + "cuda", + "float32" + ] + }, + { + "id": 16, + "type": "Stage2_load", + "pos": [ + 285, + 0 + ], + "size": { + "0": 315, + "1": 122 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "cldm", + "type": "CLDM", + "links": [ + 25 + ], + "shape": 3 + }, + { + "name": "diffusion", + "type": "DIFFUSION", + "links": [ + 26 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "infer_type", + "type": "INFER_TYPE", + "links": [ + 27 + ], + "shape": 3, + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "Stage2_load" + }, + "widgets_values": [ + "cuda", + "float32" + ] + } + ], + "links": [ + [ + 23, + 15, + 0, + 14, + 0, + "STAGE1" + ], + [ + 24, + 15, + 1, + 14, + 1, + "TASK" + ], + [ + 25, + 16, + 0, + 14, + 2, + "CLDM" + ], + [ + 26, + 16, + 1, + 14, + 3, + "DIFFUSION" + ], + [ + 27, + 16, + 2, + 14, + 4, + "INFER_TYPE" + ], + [ + 28, + 8, + 0, + 14, + 5, + "IMAGE" + ], + [ + 29, + 14, + 0, + 9, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/workflows/diffbir_blind_image_denoising.json b/workflows/diffbir_blind_image_denoising.json new file mode 100644 index 000000000..74e86b723 --- /dev/null +++ b/workflows/diffbir_blind_image_denoising.json @@ -0,0 +1,312 @@ +{ + "last_node_id": 16, + "last_link_id": 29, + "nodes": [ + { + "id": 9, + "type": "PreviewImage", + "pos": [ + 1279, + -176 + ], + "size": { + "0": 478.01593017578125, + "1": 683.1017456054688 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 29 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 16, + "type": "Stage2_load", + "pos": [ + 285, + 0 + ], + "size": { + "0": 315, + "1": 122 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "cldm", + "type": "CLDM", + "links": [ + 25 + ], + "shape": 3 + }, + { + "name": "diffusion", + "type": "DIFFUSION", + "links": [ + 26 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "infer_type", + "type": "INFER_TYPE", + "links": [ + 27 + ], + "shape": 3, + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "Stage2_load" + }, + "widgets_values": [ + "cuda", + "float32" + ] + }, + { + "id": 15, + "type": "Stage1_load", + "pos": [ + 287, + -186 + ], + "size": { + "0": 315, + "1": 126 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "stage1_model", + "type": "STAGE1", + "links": [ + 23 + ], + "shape": 3 + }, + { + "name": "task", + "type": "TASK", + "links": [ + 24 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "Stage1_load" + }, + "widgets_values": [ + "bid", + "cuda", + "float32" + ] + }, + { + "id": 8, + "type": "LoadImage", + "pos": [ + 288, + 218 + ], + "size": { + "0": 315, + "1": 314 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 28 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "2_lq.png", + "image" + ] + }, + { + "id": 14, + "type": "DiffBIR_sample_advanced", + "pos": [ + 776, + -180 + ], + "size": { + "0": 400, + "1": 730 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "stage1_model", + "type": "STAGE1", + "link": 23, + "slot_index": 0 + }, + { + "name": "task", + "type": "TASK", + "link": 24 + }, + { + "name": "cldm", + "type": "CLDM", + "link": 25, + "slot_index": 2 + }, + { + "name": "diffusion", + "type": "DIFFUSION", + "link": 26 + }, + { + "name": "infer_type", + "type": "INFER_TYPE", + "link": 27 + }, + { + "name": "image", + "type": "IMAGE", + "link": 28 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 29 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "DiffBIR_sample_advanced" + }, + "widgets_values": [ + 2, + 30, + 4, + false, + false, + 512, + 256, + true, + false, + 512, + 256, + "best quality, hdr, 4k", + "low quality, blurry, low-resolution, noisy, unsharp, weird textures", + 903788935027505, + "randomize", + "cuda", + false, + "w_mse", + 1, + 1001, + -1, + "latent", + 1 + ] + } + ], + "links": [ + [ + 23, + 15, + 0, + 14, + 0, + "STAGE1" + ], + [ + 24, + 15, + 1, + 14, + 1, + "TASK" + ], + [ + 25, + 16, + 0, + 14, + 2, + "CLDM" + ], + [ + 26, + 16, + 1, + 14, + 3, + "DIFFUSION" + ], + [ + 27, + 16, + 2, + 14, + 4, + "INFER_TYPE" + ], + [ + 28, + 8, + 0, + 14, + 5, + "IMAGE" + ], + [ + 29, + 14, + 0, + 9, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/workflows/diffbir_blind_super_resolution.json b/workflows/diffbir_blind_super_resolution.json new file mode 100644 index 000000000..1dee9c09d --- /dev/null +++ b/workflows/diffbir_blind_super_resolution.json @@ -0,0 +1,255 @@ +{ + "last_node_id": 6, + "last_link_id": 11, + "nodes": [ + { + "id": 4, + "type": "PreviewImage", + "pos": [ + 1508, + -5 + ], + "size": { + "0": 619.78515625, + "1": 608.61328125 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 11 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 1, + "type": "LoadImage", + "pos": [ + 473, + 281 + ], + "size": [ + 326.1577546081544, + 314 + ], + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 10 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "0.png", + "image" + ] + }, + { + "id": 6, + "type": "Simple_load", + "pos": [ + 469, + -6 + ], + "size": { + "0": 315, + "1": 142 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "stage1_model", + "type": "STAGE1", + "links": [ + 6 + ], + "shape": 3 + }, + { + "name": "cldm", + "type": "CLDM", + "links": [ + 7 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "diffusion", + "type": "DIFFUSION", + "links": [ + 8 + ], + "shape": 3, + "slot_index": 2 + }, + { + "name": "infer_type", + "type": "INFER_TYPE", + "links": [ + 9 + ], + "shape": 3, + "slot_index": 3 + } + ], + "properties": { + "Node name for S&R": "Simple_load" + }, + "widgets_values": [ + "cuda", + "float32" + ] + }, + { + "id": 5, + "type": "DiffBIR_sample", + "pos": [ + 973, + -5 + ], + "size": { + "0": 400, + "1": 446 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "stage1_model", + "type": "STAGE1", + "link": 6, + "slot_index": 0 + }, + { + "name": "cldm", + "type": "CLDM", + "link": 7 + }, + { + "name": "diffusion", + "type": "DIFFUSION", + "link": 8 + }, + { + "name": "infer_type", + "type": "INFER_TYPE", + "link": 9 + }, + { + "name": "image", + "type": "IMAGE", + "link": 10, + "slot_index": 4 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 11 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "DiffBIR_sample" + }, + "widgets_values": [ + 2, + 20, + 4, + true, + true, + 512, + 480, + "best quality, hdr, 4k", + "low quality, blurry, low-resolution, noisy, unsharp, weird textures", + 1, + "fixed", + "cuda" + ] + } + ], + "links": [ + [ + 6, + 6, + 0, + 5, + 0, + "STAGE1" + ], + [ + 7, + 6, + 1, + 5, + 1, + "CLDM" + ], + [ + 8, + 6, + 2, + 5, + 2, + "DIFFUSION" + ], + [ + 9, + 6, + 3, + 5, + 3, + "INFER_TYPE" + ], + [ + 10, + 1, + 0, + 5, + 4, + "IMAGE" + ], + [ + 11, + 5, + 0, + 4, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/workflows/img2img.json b/workflows/img2img.json new file mode 100644 index 000000000..f17014f7a --- /dev/null +++ b/workflows/img2img.json @@ -0,0 +1,853 @@ +{ + "last_node_id": 111, + "last_link_id": 183, + "nodes": [ + { + "id": 13, + "type": "SamplerCustomAdvanced", + "pos": { + "0": 1850, + "1": 430 + }, + "size": { + "0": 355.20001220703125, + "1": 106 + }, + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "noise", + "type": "NOISE", + "link": 86, + "slot_index": 0 + }, + { + "name": "guider", + "type": "GUIDER", + "link": 30, + "slot_index": 1 + }, + { + "name": "sampler", + "type": "SAMPLER", + "link": 19, + "slot_index": 2 + }, + { + "name": "sigmas", + "type": "SIGMAS", + "link": 60, + "slot_index": 3 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 165, + "slot_index": 4 + } + ], + "outputs": [ + { + "name": "output", + "type": "LATENT", + "links": [ + 24 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "denoised_output", + "type": "LATENT", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "SamplerCustomAdvanced" + }, + "widgets_values": [], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 50, + "type": "RandomNoise", + "pos": { + "0": 1870, + "1": 280 + }, + "size": { + "0": 315, + "1": 82 + }, + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "NOISE", + "type": "NOISE", + "links": [ + 86 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "RandomNoise" + }, + "widgets_values": [ + 820514797502403, + "randomize" + ], + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 22, + "type": "BasicGuider", + "pos": { + "0": 1530, + "1": 360 + }, + "size": { + "0": 241.79998779296875, + "1": 46 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 39, + "slot_index": 0 + }, + { + "name": "conditioning", + "type": "CONDITIONING", + "link": 40, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "GUIDER", + "type": "GUIDER", + "links": [ + 30 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "BasicGuider" + }, + "widgets_values": [], + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 38, + "type": "SplitSigmas", + "pos": { + "0": 1450, + "1": 750 + }, + "size": { + "0": 320, + "1": 80 + }, + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "sigmas", + "type": "SIGMAS", + "link": 59 + } + ], + "outputs": [ + { + "name": "high_sigmas", + "type": "SIGMAS", + "links": [], + "slot_index": 0, + "shape": 3 + }, + { + "name": "low_sigmas", + "type": "SIGMAS", + "links": [ + 60 + ], + "slot_index": 1, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "SplitSigmas" + }, + "widgets_values": [ + 0 + ], + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 94, + "type": "VAEEncode", + "pos": { + "0": 1540, + "1": 510 + }, + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "pixels", + "type": "IMAGE", + "link": 176 + }, + { + "name": "vae", + "type": "VAE", + "link": 166 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 165 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "VAEEncode" + }, + "widgets_values": [], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 102, + "type": "SaveImage", + "pos": { + "0": 2341, + "1": 563 + }, + "size": { + "0": 315, + "1": 270 + }, + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 177 + } + ], + "outputs": [], + "properties": {}, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 8, + "type": "VAEDecode", + "pos": { + "0": 1990, + "1": 590 + }, + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 24 + }, + { + "name": "vae", + "type": "VAE", + "link": 12 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 177 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + }, + "widgets_values": [], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 6, + "type": "CLIPTextEncode", + "pos": { + "0": 1540, + "1": 250 + }, + "size": { + "0": 210, + "1": 54 + }, + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 10 + }, + { + "name": "text", + "type": "STRING", + "link": 181, + "slot_index": 1, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 40 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "line dog, running fast" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 17, + "type": "BasicScheduler", + "pos": { + "0": 1090, + "1": 750 + }, + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 38, + "slot_index": 0 + }, + { + "name": "denoise", + "type": "FLOAT", + "link": 183, + "slot_index": 1, + "widget": { + "name": "denoise" + } + } + ], + "outputs": [ + { + "name": "SIGMAS", + "type": "SIGMAS", + "links": [ + 59 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "BasicScheduler" + }, + "widgets_values": [ + "sgm_uniform", + 4, + 0.5 + ], + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 96, + "type": "Note", + "pos": { + "0": 216, + "1": 810 + }, + "size": { + "0": 400.74481201171875, + "1": 249.48805236816406 + }, + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [], + "properties": { + "text": "" + }, + "widgets_values": [ + "Set Denoise / input image likeness here.\nNumber range from 0.01 to 1.0\nLower denoise gives more likeness to the input image." + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 111, + "type": "PrimitiveNode", + "pos": { + "0": 674, + "1": 449 + }, + "size": { + "0": 210, + "1": 82 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "FLOAT", + "type": "FLOAT", + "links": [ + 183 + ], + "widget": { + "name": "denoise" + } + } + ], + "title": "denoise", + "properties": { + "Run widget replace on values": false + }, + "widgets_values": [ + 0.5, + "fixed" + ] + }, + { + "id": 16, + "type": "KSamplerSelect", + "pos": { + "0": 1450, + "1": 630 + }, + "size": { + "0": 320, + "1": 60 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "SAMPLER", + "type": "SAMPLER", + "links": [ + 19 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "KSamplerSelect" + }, + "widgets_values": [ + "deis" + ], + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 82, + "type": "LoadImage", + "pos": { + "0": 60, + "1": 80 + }, + "size": { + "0": 558.6259765625, + "1": 602.1386108398438 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 176 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "3.png", + "image" + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 110, + "type": "PrimitiveNode", + "pos": { + "0": 658, + "1": 113 + }, + "size": { + "0": 376.3177185058594, + "1": 292.039306640625 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 181 + ], + "widget": { + "name": "text" + } + } + ], + "title": "Prompt", + "properties": { + "Run widget replace on values": false + }, + "widgets_values": [ + "line dog, running fast" + ] + }, + { + "id": 12, + "type": "UNETLoader", + "pos": { + "0": 680, + "1": 640 + }, + "size": { + "0": 315, + "1": 82 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 38, + 39 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "UNETLoader" + }, + "widgets_values": [ + "flux1-dev.safetensors", + "fp8_e4m3fn" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 11, + "type": "DualCLIPLoader", + "pos": { + "0": 690, + "1": 781 + }, + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 10 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "DualCLIPLoader" + }, + "widgets_values": [ + "t5xxl_fp8_e4m3fn.safetensors", + "clip_l.safetensors", + "flux" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 10, + "type": "VAELoader", + "pos": { + "0": 680, + "1": 940 + }, + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "links": [ + 12, + 166 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "VAELoader" + }, + "widgets_values": [ + "ae.safetensors" + ], + "color": "#432", + "bgcolor": "#653" + } + ], + "links": [ + [ + 10, + 11, + 0, + 6, + 0, + "CLIP" + ], + [ + 12, + 10, + 0, + 8, + 1, + "VAE" + ], + [ + 19, + 16, + 0, + 13, + 2, + "SAMPLER" + ], + [ + 24, + 13, + 0, + 8, + 0, + "LATENT" + ], + [ + 30, + 22, + 0, + 13, + 1, + "GUIDER" + ], + [ + 38, + 12, + 0, + 17, + 0, + "MODEL" + ], + [ + 39, + 12, + 0, + 22, + 0, + "MODEL" + ], + [ + 40, + 6, + 0, + 22, + 1, + "CONDITIONING" + ], + [ + 59, + 17, + 0, + 38, + 0, + "SIGMAS" + ], + [ + 60, + 38, + 1, + 13, + 3, + "SIGMAS" + ], + [ + 86, + 50, + 0, + 13, + 0, + "NOISE" + ], + [ + 165, + 94, + 0, + 13, + 4, + "LATENT" + ], + [ + 166, + 10, + 0, + 94, + 1, + "VAE" + ], + [ + 176, + 82, + 0, + 94, + 0, + "IMAGE" + ], + [ + 177, + 8, + 0, + 102, + 0, + "IMAGE" + ], + [ + 181, + 110, + 0, + 6, + 1, + "STRING" + ], + [ + 183, + 111, + 0, + 17, + 1, + "FLOAT" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.9646149645000011, + "offset": [ + -1565.2933119199051, + -70.39640290290775 + ] + } + }, + "version": 0.4 +} diff --git a/workflows/inpaint.json b/workflows/inpaint.json new file mode 100644 index 000000000..11875cac5 --- /dev/null +++ b/workflows/inpaint.json @@ -0,0 +1,3275 @@ + +{ + "last_node_id": 122, + "last_link_id": 341, + "nodes": [ + { + "id": 74, + "type": "ImageToMask", + "pos": { + "0": -54.147499084472656, + "1": 1776.878662109375 + }, + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 29, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 162 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 203 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ImageToMask" + }, + "widgets_values": [ + "red" + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 105, + "type": "AddMask", + "pos": { + "0": 1721.7305908203125, + "1": 367.125732421875 + }, + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 44, + "mode": 0, + "inputs": [ + { + "name": "mask1", + "type": "MASK", + "link": 279 + }, + { + "name": "mask2", + "type": "MASK", + "link": 280 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 276 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "AddMask" + }, + "widgets_values": [], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 106, + "type": "PreviewMask_", + "pos": { + "0": 1731.7305908203125, + "1": 464.125732421875 + }, + "size": { + "0": 210, + "1": 246 + }, + "flags": {}, + "order": 46, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 282 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewMask_" + }, + "widgets_values": [], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 109, + "type": "SubtractMask", + "pos": { + "0": 1728.7305908203125, + "1": 763.125732421875 + }, + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 45, + "mode": 0, + "inputs": [ + { + "name": "mask1", + "type": "MASK", + "link": 276 + }, + { + "name": "mask2", + "type": "MASK", + "link": 291 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 282, + 317 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "SubtractMask" + }, + "widgets_values": [], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 98, + "type": "SAMModelLoader (segment anything)", + "pos": { + "0": 1328.865234375, + "1": 1111.7642822265625 + }, + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "SAM_MODEL", + "type": "SAM_MODEL", + "links": [ + 232 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "SAMModelLoader (segment anything)" + }, + "widgets_values": [ + "sam_vit_l (1.25GB)" + ] + }, + { + "id": 101, + "type": "MaskBlur+", + "pos": { + "0": 1765.5389404296875, + "1": 1319.776123046875 + }, + "size": { + "0": 315, + "1": 82 + }, + "flags": {}, + "order": 41, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 241 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 279 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "MaskBlur+" + }, + "widgets_values": [ + 2, + "auto" + ] + }, + { + "id": 73, + "type": "MaskToImage", + "pos": { + "0": -49.22221755981445, + "1": 1404.929443359375 + }, + "size": { + "0": 210, + "1": 26 + }, + "flags": {}, + "order": 23, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 204 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 161 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "MaskToImage" + }, + "widgets_values": [], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 107, + "type": "MaskBlur+", + "pos": { + "0": 1706.324462890625, + "1": 227.85008239746094 + }, + "size": { + "0": 315, + "1": 82 + }, + "flags": {}, + "order": 42, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 266 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 280 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "MaskBlur+" + }, + "widgets_values": [ + 49, + "auto" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 119, + "type": "MaskBlur+", + "pos": { + "0": 1707.324462890625, + "1": 867.85009765625 + }, + "size": { + "0": 315, + "1": 82 + }, + "flags": {}, + "order": 43, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 290 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 291 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "MaskBlur+" + }, + "widgets_values": [ + 0, + "auto" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 79, + "type": "ImageResizeKJ", + "pos": { + "0": 313.32464599609375, + "1": 1467.5701904296875 + }, + "size": { + "0": 315, + "1": 242 + }, + "flags": {}, + "order": 27, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 163 + }, + { + "name": "get_image_size", + "type": "IMAGE", + "link": null, + "shape": 7 + }, + { + "name": "width_input", + "type": "INT", + "link": null, + "widget": { + "name": "width_input" + } + }, + { + "name": "height_input", + "type": "INT", + "link": null, + "widget": { + "name": "height_input" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 164, + 200 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "width", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "height", + "type": "INT", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ImageResizeKJ" + }, + "widgets_values": [ + 1024, + 1024, + "lanczos", + true, + 2, + 0, + 0, + "disabled" + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 78, + "type": "ImageResizeKJ", + "pos": { + "0": -49.67536163330078, + "1": 1480.5701904296875 + }, + "size": { + "0": 315, + "1": 242 + }, + "flags": {}, + "order": 26, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 161 + }, + { + "name": "get_image_size", + "type": "IMAGE", + "link": null, + "shape": 7 + }, + { + "name": "width_input", + "type": "INT", + "link": null, + "widget": { + "name": "width_input" + } + }, + { + "name": "height_input", + "type": "INT", + "link": null, + "widget": { + "name": "height_input" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 162 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "width", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "height", + "type": "INT", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ImageResizeKJ" + }, + "widgets_values": [ + 1024, + 1024, + "lanczos", + true, + 2, + 0, + 0, + "disabled" + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 122, + "type": "Image Save", + "pos": { + "0": 3687, + "1": 176 + }, + "size": { + "0": 315, + "1": 414 + }, + "flags": {}, + "order": 51, + "mode": 4, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 320 + } + ], + "outputs": [ + { + "name": "images", + "type": "IMAGE", + "links": null, + "shape": 3 + }, + { + "name": "files", + "type": "STRING", + "links": null + } + ], + "properties": { + "Node name for S&R": "Image Save" + }, + "widgets_values": [ + "[time(%Y-%m-%d)]", + "ComfyUI", + "_", + 4, + "false", + "png", + 300, + 100, + "true", + "false", + "false", + "false", + "true", + "true", + "true" + ] + }, + { + "id": 13, + "type": "SamplerCustomAdvanced", + "pos": { + "0": 986.6365356445312, + "1": 214.0666046142578 + }, + "size": { + "0": 272.3617858886719, + "1": 124.53733825683594 + }, + "flags": {}, + "order": 35, + "mode": 0, + "inputs": [ + { + "name": "noise", + "type": "NOISE", + "link": 37, + "slot_index": 0 + }, + { + "name": "guider", + "type": "GUIDER", + "link": 30, + "slot_index": 1 + }, + { + "name": "sampler", + "type": "SAMPLER", + "link": 19, + "slot_index": 2 + }, + { + "name": "sigmas", + "type": "SIGMAS", + "link": 20, + "slot_index": 3 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 191, + "slot_index": 4 + } + ], + "outputs": [ + { + "name": "output", + "type": "LATENT", + "links": [ + 131 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "denoised_output", + "type": "LATENT", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "SamplerCustomAdvanced" + }, + "widgets_values": [], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 83, + "type": "Image Comparer (rgthree)", + "pos": { + "0": 2489, + "1": 182 + }, + "size": { + "0": 1137.75341796875, + "1": 901.7138671875 + }, + "flags": {}, + "order": 50, + "mode": 0, + "inputs": [ + { + "name": "image_a", + "type": "IMAGE", + "link": 179, + "dir": 3 + }, + { + "name": "image_b", + "type": "IMAGE", + "link": 178, + "dir": 3 + } + ], + "outputs": [], + "properties": { + "comparer_mode": "Slide" + }, + "widgets_values": [ + [ + { + "name": "A", + "selected": true, + "url": "/api/view?filename=rgthree.compare._temp_vlgup_00001_.png&type=temp&subfolder=&rand=0.6065879111346769" + }, + { + "name": "B", + "selected": true, + "url": "/api/view?filename=rgthree.compare._temp_vlgup_00002_.png&type=temp&subfolder=&rand=0.39020686048269093" + } + ] + ] + }, + { + "id": 48, + "type": "VAEEncode", + "pos": { + "0": 20, + "1": 800 + }, + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 31, + "mode": 0, + "inputs": [ + { + "name": "pixels", + "type": "IMAGE", + "link": 200 + }, + { + "name": "vae", + "type": "VAE", + "link": 128 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 130 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "VAEEncode" + }, + "widgets_values": [] + }, + { + "id": 89, + "type": "GetMaskSizeAndCount", + "pos": { + "0": -387, + "1": 1170 + }, + "size": { + "0": 210, + "1": 86 + }, + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 196 + } + ], + "outputs": [ + { + "name": "mask", + "type": "MASK", + "links": null, + "shape": 3 + }, + { + "name": "width", + "type": "INT", + "links": [], + "slot_index": 1, + "shape": 3 + }, + { + "name": "height", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "count", + "type": "INT", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "GetMaskSizeAndCount" + }, + "widgets_values": [], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 88, + "type": "MultiplicationNode", + "pos": { + "0": -405, + "1": 1612 + }, + "size": { + "0": 315, + "1": 102 + }, + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "numberA", + "type": "*", + "link": 321 + } + ], + "outputs": [ + { + "name": "FLOAT", + "type": "FLOAT", + "links": null, + "slot_index": 0, + "shape": 3 + }, + { + "name": "INT", + "type": "INT", + "links": [ + 224, + 308 + ], + "slot_index": 1, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "MultiplicationNode" + }, + "widgets_values": [ + 0.2, + 0 + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 77, + "type": "Display Any (rgthree)", + "pos": { + "0": -396, + "1": 1750 + }, + "size": { + "0": 210, + "1": 89.4234390258789 + }, + "flags": {}, + "order": 19, + "mode": 0, + "inputs": [ + { + "name": "source", + "type": "*", + "link": 224, + "dir": 3 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "Display Any (rgthree)" + }, + "widgets_values": [ + "" + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 121, + "type": "Mask Crop Region", + "pos": { + "0": -403, + "1": 1328 + }, + "size": { + "0": 315, + "1": 222 + }, + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 294 + } + ], + "outputs": [ + { + "name": "cropped_mask", + "type": "MASK", + "links": [], + "slot_index": 0, + "shape": 3 + }, + { + "name": "crop_data", + "type": "CROP_DATA", + "links": [], + "slot_index": 1, + "shape": 3 + }, + { + "name": "top_int", + "type": "INT", + "links": [], + "slot_index": 2, + "shape": 3 + }, + { + "name": "left_int", + "type": "INT", + "links": [], + "slot_index": 3, + "shape": 3 + }, + { + "name": "right_int", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "bottom_int", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "width_int", + "type": "INT", + "links": [ + 321 + ], + "slot_index": 6, + "shape": 3 + }, + { + "name": "height_int", + "type": "INT", + "links": [], + "slot_index": 7, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Mask Crop Region" + }, + "widgets_values": [ + 0, + "dominant" + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 70, + "type": "Mask Crop Region", + "pos": { + "0": -50, + "1": 1139 + }, + "size": { + "0": 315, + "1": 222 + }, + "flags": {}, + "order": 20, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 195 + }, + { + "name": "padding", + "type": "INT", + "link": 308, + "widget": { + "name": "padding" + } + } + ], + "outputs": [ + { + "name": "cropped_mask", + "type": "MASK", + "links": [ + 204 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "crop_data", + "type": "CROP_DATA", + "links": [], + "slot_index": 1, + "shape": 3 + }, + { + "name": "top_int", + "type": "INT", + "links": [ + 325, + 333 + ], + "slot_index": 2, + "shape": 3 + }, + { + "name": "left_int", + "type": "INT", + "links": [ + 326, + 332 + ], + "slot_index": 3, + "shape": 3 + }, + { + "name": "right_int", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "bottom_int", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "width_int", + "type": "INT", + "links": [ + 322, + 331 + ], + "slot_index": 6, + "shape": 3 + }, + { + "name": "height_int", + "type": "INT", + "links": [ + 323, + 330 + ], + "slot_index": 7, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Mask Crop Region" + }, + "widgets_values": [ + 100, + "dominant" + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 71, + "type": "ImageCrop+", + "pos": { + "0": 327, + "1": 1127 + }, + "size": { + "0": 315, + "1": 194 + }, + "flags": {}, + "order": 24, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 168 + }, + { + "name": "width", + "type": "INT", + "link": 322, + "widget": { + "name": "width" + } + }, + { + "name": "height", + "type": "INT", + "link": 323, + "widget": { + "name": "height" + } + }, + { + "name": "x_offset", + "type": "INT", + "link": 326, + "widget": { + "name": "x_offset" + } + }, + { + "name": "y_offset", + "type": "INT", + "link": 325, + "widget": { + "name": "y_offset" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 163 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "x", + "type": "INT", + "links": [], + "slot_index": 1, + "shape": 3 + }, + { + "name": "y", + "type": "INT", + "links": [], + "slot_index": 2, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ImageCrop+" + }, + "widgets_values": [ + 256, + 256, + "top-left", + 0, + 0 + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 72, + "type": "PreviewImage", + "pos": { + "0": 681, + "1": 1128 + }, + "size": { + "0": 234.10751342773438, + "1": 246 + }, + "flags": {}, + "order": 30, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 164 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewImage" + }, + "widgets_values": [], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 67, + "type": "MaskPreview+", + "pos": { + "0": 691, + "1": 1453 + }, + "size": { + "0": 236.90216064453125, + "1": 269.5352478027344 + }, + "flags": {}, + "order": 33, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 148 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "MaskPreview+" + }, + "widgets_values": [], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 115, + "type": "DF_Text", + "pos": { + "0": -32, + "1": 472 + }, + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 306 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "DF_Text" + }, + "widgets_values": [ + "photo of xxx yyy , high quality, detailed" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 116, + "type": "Text Find and Replace", + "pos": { + "0": 322, + "1": 216 + }, + "size": { + "0": 311.4233703613281, + "1": 118 + }, + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 306, + "widget": { + "name": "text" + } + }, + { + "name": "replace", + "type": "STRING", + "link": 285, + "widget": { + "name": "replace" + } + } + ], + "outputs": [ + { + "name": "result_text", + "type": "STRING", + "links": [ + 327 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "replacement_count_number", + "type": "NUMBER", + "links": null, + "shape": 3 + }, + { + "name": "replacement_count_float", + "type": "FLOAT", + "links": null, + "shape": 3 + }, + { + "name": "replacement_count_int", + "type": "INT", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Text Find and Replace" + }, + "widgets_values": [ + "", + "xxx", + "" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 117, + "type": "Text Find and Replace", + "pos": { + "0": 330, + "1": 389 + }, + "size": { + "0": 311.4233703613281, + "1": 118 + }, + "flags": {}, + "order": 18, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 327, + "widget": { + "name": "text" + } + }, + { + "name": "replace", + "type": "STRING", + "link": 287, + "widget": { + "name": "replace" + } + } + ], + "outputs": [ + { + "name": "result_text", + "type": "STRING", + "links": [ + 288, + 289 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "replacement_count_number", + "type": "NUMBER", + "links": null, + "shape": 3 + }, + { + "name": "replacement_count_float", + "type": "FLOAT", + "links": null, + "shape": 3 + }, + { + "name": "replacement_count_int", + "type": "INT", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Text Find and Replace" + }, + "widgets_values": [ + "", + "yyy", + "" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 113, + "type": "DF_Text", + "pos": { + "0": -33, + "1": 353 + }, + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 287 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "DF_Text" + }, + "widgets_values": [ + "on a white jar" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 6, + "type": "CLIPTextEncode", + "pos": { + "0": 318, + "1": 567 + }, + "size": { + "0": 324.510986328125, + "1": 95.31903076171875 + }, + "flags": {}, + "order": 21, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 10 + }, + { + "name": "text", + "type": "STRING", + "link": 288, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 41 + ], + "slot_index": 0 + } + ], + "title": "CLIP Text Encode (Positive Prompt)", + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "photo of clouds in the shape of the word \"love\"" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 46, + "type": "SetLatentNoiseMask", + "pos": { + "0": 16, + "1": 905 + }, + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 34, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 130 + }, + { + "name": "mask", + "type": "MASK", + "link": 309 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 191 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "SetLatentNoiseMask" + }, + "widgets_values": [] + }, + { + "id": 26, + "type": "FluxGuidance", + "pos": { + "0": 721.918212890625, + "1": 256.97265625 + }, + "size": { + "0": 211.60000610351562, + "1": 58 + }, + "flags": {}, + "order": 25, + "mode": 4, + "inputs": [ + { + "name": "conditioning", + "type": "CONDITIONING", + "link": 41 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 225 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "FluxGuidance" + }, + "widgets_values": [ + 2 + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 22, + "type": "BasicGuider", + "pos": { + "0": 718.918212890625, + "1": 487.97265625 + }, + "size": { + "0": 222.3482666015625, + "1": 46 + }, + "flags": {}, + "order": 28, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 145, + "slot_index": 0 + }, + { + "name": "conditioning", + "type": "CONDITIONING", + "link": 225, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "GUIDER", + "type": "GUIDER", + "links": [ + 30 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "BasicGuider" + }, + "widgets_values": [], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 25, + "type": "RandomNoise", + "pos": { + "0": 729, + "1": 597 + }, + "size": { + "0": 220.7213897705078, + "1": 82 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "NOISE", + "type": "NOISE", + "links": [ + 37 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "RandomNoise" + }, + "widgets_values": [ + 395424871278091, + "fixed" + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 16, + "type": "KSamplerSelect", + "pos": { + "0": 994, + "1": 385 + }, + "size": { + "0": 264.5431823730469, + "1": 58 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "SAMPLER", + "type": "SAMPLER", + "links": [ + 19 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "KSamplerSelect" + }, + "widgets_values": [ + "euler" + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 17, + "type": "BasicScheduler", + "pos": { + "0": 992, + "1": 490 + }, + "size": { + "0": 266.90228271484375, + "1": 106 + }, + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 119, + "slot_index": 0 + } + ], + "outputs": [ + { + "name": "SIGMAS", + "type": "SIGMAS", + "links": [ + 20 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "BasicScheduler" + }, + "widgets_values": [ + "simple", + 20, + 0.91 + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 65, + "type": "DifferentialDiffusion", + "pos": { + "0": 735, + "1": 387 + }, + "size": { + "0": 210, + "1": 26 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 144 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 145 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "DifferentialDiffusion" + }, + "widgets_values": [], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 66, + "type": "MaskBlur+", + "pos": { + "0": -56, + "1": 1891 + }, + "size": { + "0": 315, + "1": 82 + }, + "flags": {}, + "order": 32, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 203 + } + ], + "outputs": [ + { + "name": "MASK", + "type": "MASK", + "links": [ + 148, + 309, + 339 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "MaskBlur+" + }, + "widgets_values": [ + 200, + "auto" + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 8, + "type": "VAEDecode", + "pos": { + "0": 1023, + "1": 639 + }, + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 36, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 131 + }, + { + "name": "vae", + "type": "VAE", + "link": 12 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 244, + 257, + 273, + 335, + 336 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + }, + "widgets_values": [], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 91, + "type": "ImageResizeKJ", + "pos": { + "0": 2099, + "1": 494 + }, + "size": { + "0": 315, + "1": 242 + }, + "flags": {}, + "order": 48, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 249 + }, + { + "name": "get_image_size", + "type": "IMAGE", + "link": null, + "shape": 7 + }, + { + "name": "width_input", + "type": "INT", + "link": null, + "widget": { + "name": "width_input" + } + }, + { + "name": "height_input", + "type": "INT", + "link": null, + "widget": { + "name": "height_input" + } + }, + { + "name": "width", + "type": "INT", + "link": 331, + "widget": { + "name": "width" + } + }, + { + "name": "height", + "type": "INT", + "link": 330, + "widget": { + "name": "height" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 303 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "width", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "height", + "type": "INT", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ImageResizeKJ" + }, + "widgets_values": [ + 1024, + 1024, + "lanczos", + false, + 2, + 0, + 0, + "disabled" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 80, + "type": "ImageCompositeMasked", + "pos": { + "0": 2099, + "1": 796 + }, + "size": { + "0": 315, + "1": 146 + }, + "flags": {}, + "order": 49, + "mode": 0, + "inputs": [ + { + "name": "destination", + "type": "IMAGE", + "link": 254 + }, + { + "name": "source", + "type": "IMAGE", + "link": 303 + }, + { + "name": "mask", + "type": "MASK", + "link": 302, + "shape": 7 + }, + { + "name": "x", + "type": "INT", + "link": 332, + "widget": { + "name": "x" + } + }, + { + "name": "y", + "type": "INT", + "link": 333, + "widget": { + "name": "y" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 178, + 320 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ImageCompositeMasked" + }, + "widgets_values": [ + 0, + 0, + false + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 81, + "type": "PreviewImage", + "pos": { + "0": 2127.64892578125, + "1": 1135.728271484375 + }, + "size": { + "0": 210, + "1": 246 + }, + "flags": {}, + "order": 40, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 230 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewImage" + }, + "widgets_values": [] + }, + { + "id": 120, + "type": "DF_Text", + "pos": { + "0": 1335.6488037109375, + "1": 1339.728271484375 + }, + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "DF_Text" + }, + "widgets_values": [ + "" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 93, + "type": "GroundingDinoSAMSegment (segment anything)", + "pos": { + "0": 1743.6488037109375, + "1": 1107.728271484375 + }, + "size": { + "0": 352.79998779296875, + "1": 122 + }, + "flags": {}, + "order": 37, + "mode": 0, + "inputs": [ + { + "name": "sam_model", + "type": "SAM_MODEL", + "link": 232, + "slot_index": 0 + }, + { + "name": "grounding_dino_model", + "type": "GROUNDING_DINO_MODEL", + "link": 231 + }, + { + "name": "image", + "type": "IMAGE", + "link": 244 + }, + { + "name": "prompt", + "type": "STRING", + "link": 341, + "widget": { + "name": "prompt" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 230 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": [ + 241 + ], + "slot_index": 1, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "GroundingDinoSAMSegment (segment anything)" + }, + "widgets_values": [ + "", + 0.3 + ] + }, + { + "id": 108, + "type": "PreviewBridge", + "pos": { + "0": 1355, + "1": 638 + }, + "size": [ + 315, + 338 + ], + "flags": {}, + "order": 39, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 273 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [], + "slot_index": 0, + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": [ + 290 + ], + "slot_index": 1, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "PreviewBridge" + }, + "widgets_values": [ + "$108-0", + false, + "never" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 104, + "type": "PreviewBridge", + "pos": { + "0": 1346, + "1": 264 + }, + "size": [ + 315, + 338 + ], + "flags": {}, + "order": 38, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 257 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [], + "slot_index": 0, + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": [ + 266 + ], + "slot_index": 1, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "PreviewBridge" + }, + "widgets_values": [ + "$104-0", + false, + "never" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 103, + "type": "ImageMaskSwitch", + "pos": { + "0": 2089, + "1": 226 + }, + "size": { + "0": 315, + "1": 198 + }, + "flags": { + "collapsed": false + }, + "order": 47, + "mode": 0, + "inputs": [ + { + "name": "images1", + "type": "IMAGE", + "link": 336 + }, + { + "name": "mask1_opt", + "type": "MASK", + "link": 339, + "shape": 7 + }, + { + "name": "images2_opt", + "type": "IMAGE", + "link": 335, + "shape": 7 + }, + { + "name": "mask2_opt", + "type": "MASK", + "link": 317, + "shape": 7 + }, + { + "name": "images3_opt", + "type": "IMAGE", + "link": null, + "shape": 7 + }, + { + "name": "mask3_opt", + "type": "MASK", + "link": null, + "shape": 7 + }, + { + "name": "images4_opt", + "type": "IMAGE", + "link": null, + "shape": 7 + }, + { + "name": "mask4_opt", + "type": "MASK", + "link": null, + "shape": 7 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 249 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": [ + 302 + ], + "slot_index": 1, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ImageMaskSwitch" + }, + "widgets_values": [ + 1 + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 10, + "type": "VAELoader", + "pos": { + "0": -408.4108581542969, + "1": 516.2380981445312 + }, + "size": { + "0": 311.81634521484375, + "1": 60.429901123046875 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "links": [ + 12, + 128 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "VAELoader" + }, + "widgets_values": [ + "ae.safetensors" + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 11, + "type": "DualCLIPLoader", + "pos": { + "0": -409, + "1": 362 + }, + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 10 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "DualCLIPLoader" + }, + "widgets_values": [ + "t5xxl_fp8_e4m3fn.safetensors", + "clip_l.safetensors", + "flux" + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 12, + "type": "UNETLoader", + "pos": { + "0": -411.4108581542969, + "1": 231.2381134033203 + }, + "size": { + "0": 315, + "1": 82 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 119, + 144 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "UNETLoader" + }, + "widgets_values": [ + "flux1-dev.safetensors", + "fp8_e4m3fn" + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 47, + "type": "LoadImage", + "pos": { + "0": -423, + "1": 673 + }, + "size": { + "0": 315, + "1": 314 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 168, + 179, + 254 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": [ + 195, + 196, + 294 + ], + "slot_index": 1, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "clipspace/clipspace-mask-87757.png [input]", + "image" + ] + }, + { + "id": 118, + "type": "ShowText|pysssss", + "pos": { + "0": -24, + "1": 590 + }, + "size": { + "0": 315, + "1": 76 + }, + "flags": {}, + "order": 22, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 289, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": null, + "shape": 6 + } + ], + "properties": { + "Node name for S&R": "ShowText|pysssss" + }, + "widgets_values": [ + "", + "photo of the word \"FLUX\" on a white jar , high quality, detailed" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 114, + "type": "DF_Text", + "pos": { + "0": -36, + "1": 230 + }, + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 285, + 341 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "DF_Text" + }, + "widgets_values": [ + "the word \"FLUX\"" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 92, + "type": "GroundingDinoModelLoader (segment anything)", + "pos": { + "0": 1331.4486083984375, + "1": 1217.2493896484375 + }, + "size": { + "0": 368.2646789550781, + "1": 58 + }, + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "GROUNDING_DINO_MODEL", + "type": "GROUNDING_DINO_MODEL", + "links": [ + 231 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "GroundingDinoModelLoader (segment anything)" + }, + "widgets_values": [ + "GroundingDINO_SwinT_OGC (694MB)" + ] + } + ], + "links": [ + [ + 10, + 11, + 0, + 6, + 0, + "CLIP" + ], + [ + 12, + 10, + 0, + 8, + 1, + "VAE" + ], + [ + 19, + 16, + 0, + 13, + 2, + "SAMPLER" + ], + [ + 20, + 17, + 0, + 13, + 3, + "SIGMAS" + ], + [ + 30, + 22, + 0, + 13, + 1, + "GUIDER" + ], + [ + 37, + 25, + 0, + 13, + 0, + "NOISE" + ], + [ + 41, + 6, + 0, + 26, + 0, + "CONDITIONING" + ], + [ + 119, + 12, + 0, + 17, + 0, + "MODEL" + ], + [ + 128, + 10, + 0, + 48, + 1, + "VAE" + ], + [ + 130, + 48, + 0, + 46, + 0, + "LATENT" + ], + [ + 131, + 13, + 0, + 8, + 0, + "LATENT" + ], + [ + 144, + 12, + 0, + 65, + 0, + "MODEL" + ], + [ + 145, + 65, + 0, + 22, + 0, + "MODEL" + ], + [ + 148, + 66, + 0, + 67, + 0, + "MASK" + ], + [ + 161, + 73, + 0, + 78, + 0, + "IMAGE" + ], + [ + 162, + 78, + 0, + 74, + 0, + "IMAGE" + ], + [ + 163, + 71, + 0, + 79, + 0, + "IMAGE" + ], + [ + 164, + 79, + 0, + 72, + 0, + "IMAGE" + ], + [ + 168, + 47, + 0, + 71, + 0, + "IMAGE" + ], + [ + 178, + 80, + 0, + 83, + 1, + "IMAGE" + ], + [ + 179, + 47, + 0, + 83, + 0, + "IMAGE" + ], + [ + 191, + 46, + 0, + 13, + 4, + "LATENT" + ], + [ + 195, + 47, + 1, + 70, + 0, + "MASK" + ], + [ + 196, + 47, + 1, + 89, + 0, + "MASK" + ], + [ + 200, + 79, + 0, + 48, + 0, + "IMAGE" + ], + [ + 203, + 74, + 0, + 66, + 0, + "MASK" + ], + [ + 204, + 70, + 0, + 73, + 0, + "MASK" + ], + [ + 224, + 88, + 1, + 77, + 0, + "*" + ], + [ + 225, + 26, + 0, + 22, + 1, + "CONDITIONING" + ], + [ + 230, + 93, + 0, + 81, + 0, + "IMAGE" + ], + [ + 231, + 92, + 0, + 93, + 1, + "GROUNDING_DINO_MODEL" + ], + [ + 232, + 98, + 0, + 93, + 0, + "SAM_MODEL" + ], + [ + 241, + 93, + 1, + 101, + 0, + "MASK" + ], + [ + 244, + 8, + 0, + 93, + 2, + "IMAGE" + ], + [ + 249, + 103, + 0, + 91, + 0, + "IMAGE" + ], + [ + 254, + 47, + 0, + 80, + 0, + "IMAGE" + ], + [ + 257, + 8, + 0, + 104, + 0, + "IMAGE" + ], + [ + 266, + 104, + 1, + 107, + 0, + "MASK" + ], + [ + 273, + 8, + 0, + 108, + 0, + "IMAGE" + ], + [ + 276, + 105, + 0, + 109, + 0, + "MASK" + ], + [ + 279, + 101, + 0, + 105, + 0, + "MASK" + ], + [ + 280, + 107, + 0, + 105, + 1, + "MASK" + ], + [ + 282, + 109, + 0, + 106, + 0, + "MASK" + ], + [ + 285, + 114, + 0, + 116, + 1, + "STRING" + ], + [ + 287, + 113, + 0, + 117, + 1, + "STRING" + ], + [ + 288, + 117, + 0, + 6, + 1, + "STRING" + ], + [ + 289, + 117, + 0, + 118, + 0, + "STRING" + ], + [ + 290, + 108, + 1, + 119, + 0, + "MASK" + ], + [ + 291, + 119, + 0, + 109, + 1, + "MASK" + ], + [ + 294, + 47, + 1, + 121, + 0, + "MASK" + ], + [ + 302, + 103, + 1, + 80, + 2, + "MASK" + ], + [ + 303, + 91, + 0, + 80, + 1, + "IMAGE" + ], + [ + 306, + 115, + 0, + 116, + 0, + "STRING" + ], + [ + 308, + 88, + 1, + 70, + 1, + "INT" + ], + [ + 309, + 66, + 0, + 46, + 1, + "MASK" + ], + [ + 317, + 109, + 0, + 103, + 3, + "MASK" + ], + [ + 320, + 80, + 0, + 122, + 0, + "IMAGE" + ], + [ + 321, + 121, + 6, + 88, + 0, + "*" + ], + [ + 322, + 70, + 6, + 71, + 1, + "INT" + ], + [ + 323, + 70, + 7, + 71, + 2, + "INT" + ], + [ + 325, + 70, + 2, + 71, + 4, + "INT" + ], + [ + 326, + 70, + 3, + 71, + 3, + "INT" + ], + [ + 327, + 116, + 0, + 117, + 0, + "STRING" + ], + [ + 330, + 70, + 7, + 91, + 5, + "INT" + ], + [ + 331, + 70, + 6, + 91, + 4, + "INT" + ], + [ + 332, + 70, + 3, + 80, + 3, + "INT" + ], + [ + 333, + 70, + 2, + 80, + 4, + "INT" + ], + [ + 335, + 8, + 0, + 103, + 2, + "IMAGE" + ], + [ + 336, + 8, + 0, + 103, + 0, + "IMAGE" + ], + [ + 339, + 66, + 0, + 103, + 1, + "MASK" + ], + [ + 341, + 114, + 0, + 93, + 3, + "STRING" + ] + ], + "groups": [ + { + "title": "prepare image and mask", + "bounding": [ + -422, + 1052, + 1375, + 953 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + }, + { + "title": "Latent", + "bounding": [ + 701, + 146, + 574, + 554 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + }, + { + "title": "SegAnyThing", + "bounding": [ + 1298, + 1029, + 1067, + 393 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + }, + { + "title": "Composite", + "bounding": [ + 1304, + 147, + 1131, + 819 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + }, + { + "title": "Prompt", + "bounding": [ + -50, + 147, + 705, + 562 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + }, + { + "title": "Models", + "bounding": [ + -419, + 148, + 336, + 439 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + } + ], + "config": {}, + "extra": { + "ds": { + "scale": 0.4950000000000016, + "offset": [ + 893.2109426425709, + 375.90764353298914 + ] + }, + "groupNodes": {} + }, + "version": 0.4 +} \ No newline at end of file diff --git a/workflows/text2img.json b/workflows/text2img.json new file mode 100644 index 000000000..90a6e68b2 --- /dev/null +++ b/workflows/text2img.json @@ -0,0 +1,883 @@ +{ + "last_node_id": 37, + "last_link_id": 116, + "nodes": [ + { + "id": 17, + "type": "BasicScheduler", + "pos": { + "0": 480, + "1": 1008 + }, + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 55, + "slot_index": 0 + } + ], + "outputs": [ + { + "name": "SIGMAS", + "type": "SIGMAS", + "links": [ + 20 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "BasicScheduler" + }, + "widgets_values": [ + "simple", + 20, + 1 + ] + }, + { + "id": 16, + "type": "KSamplerSelect", + "pos": { + "0": 480, + "1": 912 + }, + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "SAMPLER", + "type": "SAMPLER", + "links": [ + 19 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "KSamplerSelect" + }, + "widgets_values": [ + "euler" + ] + }, + { + "id": 26, + "type": "FluxGuidance", + "pos": { + "0": 480, + "1": 144 + }, + "size": { + "0": 317.4000244140625, + "1": 58 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "conditioning", + "type": "CONDITIONING", + "link": 41 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 42 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "FluxGuidance" + }, + "widgets_values": [ + 3.5 + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 22, + "type": "BasicGuider", + "pos": { + "0": 576, + "1": 48 + }, + "size": { + "0": 222.3482666015625, + "1": 46 + }, + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 54, + "slot_index": 0 + }, + { + "name": "conditioning", + "type": "CONDITIONING", + "link": 42, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "GUIDER", + "type": "GUIDER", + "links": [ + 30 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "BasicGuider" + }, + "widgets_values": [] + }, + { + "id": 13, + "type": "SamplerCustomAdvanced", + "pos": { + "0": 864, + "1": 192 + }, + "size": { + "0": 272.3617858886719, + "1": 124.53733825683594 + }, + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "noise", + "type": "NOISE", + "link": 37, + "slot_index": 0 + }, + { + "name": "guider", + "type": "GUIDER", + "link": 30, + "slot_index": 1 + }, + { + "name": "sampler", + "type": "SAMPLER", + "link": 19, + "slot_index": 2 + }, + { + "name": "sigmas", + "type": "SIGMAS", + "link": 20, + "slot_index": 3 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 116, + "slot_index": 4 + } + ], + "outputs": [ + { + "name": "output", + "type": "LATENT", + "links": [ + 24 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "denoised_output", + "type": "LATENT", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "SamplerCustomAdvanced" + }, + "widgets_values": [] + }, + { + "id": 25, + "type": "RandomNoise", + "pos": { + "0": 480, + "1": 768 + }, + "size": { + "0": 315, + "1": 82 + }, + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "NOISE", + "type": "NOISE", + "links": [ + 37 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "RandomNoise" + }, + "widgets_values": [ + 220436814890502, + "randomize" + ], + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 8, + "type": "VAEDecode", + "pos": { + "0": 866, + "1": 367 + }, + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 24 + }, + { + "name": "vae", + "type": "VAE", + "link": 12 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 9 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + }, + "widgets_values": [] + }, + { + "id": 6, + "type": "CLIPTextEncode", + "pos": { + "0": 384, + "1": 240 + }, + "size": { + "0": 422.84503173828125, + "1": 164.31304931640625 + }, + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 10 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 41 + ], + "slot_index": 0 + } + ], + "title": "CLIP Text Encode (Positive Prompt)", + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "cute anime girl with massive fluffy fennec ears and a big fluffy tail blonde messy long hair blue eyes wearing a maid outfit with a long black gold leaf pattern dress and a white apron mouth open holding a fancy black forest cake with candles on top in the kitchen of an old dark Victorian mansion lit by candlelight with a bright window to the foggy forest and very expensive stuff everywhere" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 30, + "type": "ModelSamplingFlux", + "pos": { + "0": 480, + "1": 1152 + }, + "size": { + "0": 315, + "1": 130 + }, + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 56, + "slot_index": 0 + }, + { + "name": "width", + "type": "INT", + "link": 115, + "slot_index": 1, + "widget": { + "name": "width" + } + }, + { + "name": "height", + "type": "INT", + "link": 114, + "slot_index": 2, + "widget": { + "name": "height" + } + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 54, + 55 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ModelSamplingFlux" + }, + "widgets_values": [ + 1.15, + 0.5, + 1024, + 1024 + ] + }, + { + "id": 27, + "type": "EmptySD3LatentImage", + "pos": { + "0": 480, + "1": 624 + }, + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "width", + "type": "INT", + "link": 112, + "widget": { + "name": "width" + } + }, + { + "name": "height", + "type": "INT", + "link": 113, + "widget": { + "name": "height" + } + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 116 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "EmptySD3LatentImage" + }, + "widgets_values": [ + 1024, + 1024, + 1 + ] + }, + { + "id": 34, + "type": "PrimitiveNode", + "pos": { + "0": 432, + "1": 480 + }, + "size": { + "0": 210, + "1": 82 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": [ + 112, + 115 + ], + "slot_index": 0, + "widget": { + "name": "width" + } + } + ], + "title": "width", + "properties": { + "Run widget replace on values": false + }, + "widgets_values": [ + 1024, + "fixed" + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 35, + "type": "PrimitiveNode", + "pos": { + "0": 672, + "1": 480 + }, + "size": { + "0": 210, + "1": 82 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": [ + 113, + 114 + ], + "slot_index": 0, + "widget": { + "name": "height" + } + } + ], + "title": "height", + "properties": { + "Run widget replace on values": false + }, + "widgets_values": [ + 1024, + "fixed" + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 12, + "type": "UNETLoader", + "pos": { + "0": 48, + "1": 144 + }, + "size": { + "0": 315, + "1": 82 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 56 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "UNETLoader" + }, + "widgets_values": [ + "flux1-dev.safetensors", + "default" + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 9, + "type": "SaveImage", + "pos": { + "0": 1155, + "1": 196 + }, + "size": { + "0": 985.3012084960938, + "1": 1060.3828125 + }, + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 9 + } + ], + "outputs": [], + "properties": {}, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 37, + "type": "Note", + "pos": { + "0": 480, + "1": 1344 + }, + "size": { + "0": 314.99755859375, + "1": 117.98363494873047 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [], + "outputs": [], + "properties": { + "text": "" + }, + "widgets_values": [ + "The reference sampling implementation auto adjusts the shift value based on the resolution, if you don't want this you can just bypass (CTRL-B) this ModelSamplingFlux node.\n" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 10, + "type": "VAELoader", + "pos": { + "0": 48, + "1": 432 + }, + "size": { + "0": 311.81634521484375, + "1": 60.429901123046875 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "links": [ + 12 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "VAELoader" + }, + "widgets_values": [ + "ae.safetensors" + ] + }, + { + "id": 28, + "type": "Note", + "pos": { + "0": 48, + "1": 576 + }, + "size": { + "0": 336, + "1": 288 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [], + "properties": { + "text": "" + }, + "widgets_values": [ + "If you get an error in any of the nodes above make sure the files are in the correct directories.\n\nSee the top of the examples page for the links : https://comfyanonymous.github.io/ComfyUI_examples/flux/\n\nflux1-dev.safetensors goes in: ComfyUI/models/unet/\n\nt5xxl_fp16.safetensors and clip_l.safetensors go in: ComfyUI/models/clip/\n\nae.safetensors goes in: ComfyUI/models/vae/\n\n\nTip: You can set the weight_dtype above to one of the fp8 types if you have memory issues." + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 11, + "type": "DualCLIPLoader", + "pos": { + "0": 48, + "1": 288 + }, + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 10 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "DualCLIPLoader" + }, + "widgets_values": [ + "t5xxl_fp8_e4m3fn.safetensors", + "clip_l.safetensors", + "flux" + ] + } + ], + "links": [ + [ + 9, + 8, + 0, + 9, + 0, + "IMAGE" + ], + [ + 10, + 11, + 0, + 6, + 0, + "CLIP" + ], + [ + 12, + 10, + 0, + 8, + 1, + "VAE" + ], + [ + 19, + 16, + 0, + 13, + 2, + "SAMPLER" + ], + [ + 20, + 17, + 0, + 13, + 3, + "SIGMAS" + ], + [ + 24, + 13, + 0, + 8, + 0, + "LATENT" + ], + [ + 30, + 22, + 0, + 13, + 1, + "GUIDER" + ], + [ + 37, + 25, + 0, + 13, + 0, + "NOISE" + ], + [ + 41, + 6, + 0, + 26, + 0, + "CONDITIONING" + ], + [ + 42, + 26, + 0, + 22, + 1, + "CONDITIONING" + ], + [ + 54, + 30, + 0, + 22, + 0, + "MODEL" + ], + [ + 55, + 30, + 0, + 17, + 0, + "MODEL" + ], + [ + 56, + 12, + 0, + 30, + 0, + "MODEL" + ], + [ + 112, + 34, + 0, + 27, + 0, + "INT" + ], + [ + 113, + 35, + 0, + 27, + 1, + "INT" + ], + [ + 114, + 35, + 0, + 30, + 2, + "INT" + ], + [ + 115, + 34, + 0, + 30, + 1, + "INT" + ], + [ + 116, + 27, + 0, + 13, + 4, + "LATENT" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.9646149645000012, + "offset": [ + -826.0109021893566, + -21.387113272386685 + ] + }, + "groupNodes": {} + }, + "version": 0.4 +} \ No newline at end of file diff --git a/workflows/upscale_algorithm.json b/workflows/upscale_algorithm.json new file mode 100644 index 000000000..bfb51c378 --- /dev/null +++ b/workflows/upscale_algorithm.json @@ -0,0 +1,141 @@ +{ + "last_node_id": 3, + "last_link_id": 2, + "nodes": [ + { + "id": 1, + "type": "LoadImage", + "pos": { + "0": 291, + "1": 544 + }, + "size": [ + 315, + 314 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 1 + ], + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "flux_dev_example.png", + "image" + ] + }, + { + "id": 2, + "type": "ImageScale", + "pos": { + "0": 741, + "1": 560 + }, + "size": { + "0": 315, + "1": 130 + }, + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 1 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 2 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ImageScale" + }, + "widgets_values": [ + "nearest-exact", + 512, + 512, + "disabled" + ] + }, + { + "id": 3, + "type": "PreviewImage", + "pos": { + "0": 1222, + "1": 599 + }, + "size": [ + 516, + 490 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 2 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewImage" + } + } + ], + "links": [ + [ + 1, + 1, + 0, + 2, + 0, + "IMAGE" + ], + [ + 2, + 2, + 0, + 3, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 1, + "offset": [ + 0, + 0 + ] + } + }, + "version": 0.4 +} diff --git a/workflows/upscale_diffbir_and_algorithm.json b/workflows/upscale_diffbir_and_algorithm.json new file mode 100644 index 000000000..463f76566 --- /dev/null +++ b/workflows/upscale_diffbir_and_algorithm.json @@ -0,0 +1,316 @@ +{ + "last_node_id": 7, + "last_link_id": 13, + "nodes": [ + { + "id": 4, + "type": "PreviewImage", + "pos": { + "0": 1508, + "1": -5 + }, + "size": { + "0": 619.78515625, + "1": 608.61328125 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 11 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewImage" + }, + "widgets_values": [] + }, + { + "id": 6, + "type": "Simple_load", + "pos": { + "0": 469, + "1": -6 + }, + "size": { + "0": 315, + "1": 142 + }, + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "stage1_model", + "type": "STAGE1", + "links": [ + 6 + ], + "shape": 3 + }, + { + "name": "cldm", + "type": "CLDM", + "links": [ + 7 + ], + "slot_index": 1, + "shape": 3 + }, + { + "name": "diffusion", + "type": "DIFFUSION", + "links": [ + 8 + ], + "slot_index": 2, + "shape": 3 + }, + { + "name": "infer_type", + "type": "INFER_TYPE", + "links": [ + 9 + ], + "slot_index": 3, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Simple_load" + }, + "widgets_values": [ + "cuda", + "float32" + ] + }, + { + "id": 7, + "type": "ImageScale", + "pos": { + "0": 577.2297973632812, + "1": 349.1929626464844 + }, + "size": { + "0": 315, + "1": 130 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 12 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 13 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ImageScale" + }, + "widgets_values": [ + "nearest-exact", + 512, + 512, + "disabled" + ] + }, + { + "id": 5, + "type": "DiffBIR_sample", + "pos": { + "0": 973, + "1": -5 + }, + "size": { + "0": 400, + "1": 446 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "stage1_model", + "type": "STAGE1", + "link": 6, + "slot_index": 0 + }, + { + "name": "cldm", + "type": "CLDM", + "link": 7 + }, + { + "name": "diffusion", + "type": "DIFFUSION", + "link": 8 + }, + { + "name": "infer_type", + "type": "INFER_TYPE", + "link": 9 + }, + { + "name": "image", + "type": "IMAGE", + "link": 13, + "slot_index": 4 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 11 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "DiffBIR_sample" + }, + "widgets_values": [ + 1, + 20, + 4, + true, + true, + 512, + 480, + "best quality, hdr, 4k", + "low quality, blurry, low-resolution, noisy, unsharp, weird textures", + 1, + "fixed", + "cuda" + ] + }, + { + "id": 1, + "type": "LoadImage", + "pos": { + "0": 182, + "1": 272 + }, + "size": { + "0": 326.1577453613281, + "1": 314 + }, + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 12 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "3.png", + "image" + ] + } + ], + "links": [ + [ + 6, + 6, + 0, + 5, + 0, + "STAGE1" + ], + [ + 7, + 6, + 1, + 5, + 1, + "CLDM" + ], + [ + 8, + 6, + 2, + 5, + 2, + "DIFFUSION" + ], + [ + 9, + 6, + 3, + 5, + 3, + "INFER_TYPE" + ], + [ + 11, + 5, + 0, + 4, + 0, + "IMAGE" + ], + [ + 12, + 1, + 0, + 7, + 0, + "IMAGE" + ], + [ + 13, + 7, + 0, + 5, + 4, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 1.1671841070450018, + "offset": [ + -425.58276143922296, + 311.37119267524326 + ] + } + }, + "version": 0.4 +} diff --git a/workflows/upscale_model.json b/workflows/upscale_model.json new file mode 100644 index 000000000..388cd5c20 --- /dev/null +++ b/workflows/upscale_model.json @@ -0,0 +1,179 @@ +{ + "last_node_id": 7, + "last_link_id": 5, + "nodes": [ + { + "id": 4, + "type": "LoadImage", + "pos": { + "0": 139, + "1": 868 + }, + "size": [ + 315, + 314 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 3 + ], + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "flux_dev_example.png", + "image" + ] + }, + { + "id": 5, + "type": "ImageUpscaleWithModel", + "pos": { + "0": 611, + "1": 882 + }, + "size": { + "0": 340.20001220703125, + "1": 46 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "upscale_model", + "type": "UPSCALE_MODEL", + "link": 4 + }, + { + "name": "image", + "type": "IMAGE", + "link": 3 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 5 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ImageUpscaleWithModel" + } + }, + { + "id": 7, + "type": "PreviewImage", + "pos": { + "0": 1211, + "1": 867 + }, + "size": [ + 502, + 372 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 5 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 6, + "type": "UpscaleModelLoader", + "pos": { + "0": 103, + "1": 651 + }, + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "UPSCALE_MODEL", + "type": "UPSCALE_MODEL", + "links": [ + 4 + ] + } + ], + "properties": { + "Node name for S&R": "UpscaleModelLoader" + }, + "widgets_values": [ + null + ] + } + ], + "links": [ + [ + 3, + 4, + 0, + 5, + 1, + "IMAGE" + ], + [ + 4, + 6, + 0, + 5, + 0, + "UPSCALE_MODEL" + ], + [ + 5, + 5, + 0, + 7, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 1, + "offset": [ + 210, + -151 + ] + } + }, + "version": 0.4 +}