ComfyUI/user/default/workflows/Flux_Inpainting.json
2025-01-15 15:24:05 +09:00

3237 lines
54 KiB
JSON

{
"last_node_id": 122,
"last_link_id": 341,
"nodes": [
{
"id": 74,
"type": "ImageToMask",
"pos": [
-54.14750095583561,
1776.8787042003119
],
"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": [
1721.7305578676373,
367.1257204868575
],
"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"
},
"color": "#233",
"bgcolor": "#355"
},
{
"id": 106,
"type": "PreviewMask_",
"pos": [
1731.7305578676373,
464.1257204868575
],
"size": {
"0": 210,
"1": 246
},
"flags": {},
"order": 46,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 282
}
],
"properties": {
"Node name for S&R": "PreviewMask_"
},
"color": "#233",
"bgcolor": "#355"
},
{
"id": 109,
"type": "SubtractMask",
"pos": [
1728.7305578676373,
763.1257204868576
],
"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"
},
"color": "#233",
"bgcolor": "#355"
},
{
"id": 98,
"type": "SAMModelLoader (segment anything)",
"pos": [
1328.8651892194637,
1111.7642747750863
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 0,
"mode": 0,
"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": [
1765.5389499818311,
1319.776118602475
],
"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": [
-49.22221877938153,
1404.9293856786721
],
"size": {
"0": 210,
"1": 26
},
"flags": {},
"order": 24,
"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"
},
"color": "#222",
"bgcolor": "#000"
},
{
"id": 92,
"type": "GroundingDinoModelLoader (segment anything)",
"pos": [
1331.4486694172929,
1217.2494073946746
],
"size": {
"0": 368.2646789550781,
"1": 58
},
"flags": {},
"order": 1,
"mode": 0,
"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)"
]
},
{
"id": 107,
"type": "MaskBlur+",
"pos": [
1706.3244489338972,
227.8500868744632
],
"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": [
1707.3244489338972,
867.8500868744632
],
"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": 11,
"type": "DualCLIPLoader",
"pos": [
-409.4108437772789,
362.2381126387799
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 2,
"mode": 0,
"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": 79,
"type": "ImageResizeKJ",
"pos": [
313.3246395174619,
1467.570136339781
],
"size": {
"0": 315,
"1": 242
},
"flags": {},
"order": 28,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 163
},
{
"name": "get_image_size",
"type": "IMAGE",
"link": null
},
{
"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": [
-49.675360482538196,
1480.570136339781
],
"size": {
"0": 315,
"1": 242
},
"flags": {},
"order": 27,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 161
},
{
"name": "get_image_size",
"type": "IMAGE",
"link": null
},
{
"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": [
3687,
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,
"shape": 3
}
],
"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": [
986.6365314217197,
214.06660492477002
],
"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"
},
"color": "#323",
"bgcolor": "#535"
},
{
"id": 83,
"type": "Image Comparer (rgthree)",
"pos": {
"0": 2489,
"1": 182,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"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_aaxrx_00039_.png&type=temp&subfolder=&rand=0.31688617627826443"
},
{
"name": "B",
"selected": true,
"url": "/api/view?filename=rgthree.compare._temp_aaxrx_00040_.png&type=temp&subfolder=&rand=0.917430744446853"
}
]
]
},
{
"id": 48,
"type": "VAEEncode",
"pos": [
20,
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"
}
},
{
"id": 89,
"type": "GetMaskSizeAndCount",
"pos": [
-387,
1170
],
"size": {
"0": 210,
"1": 86
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 196
}
],
"outputs": [
{
"name": "mask",
"type": "MASK",
"links": null,
"shape": 3
},
{
"name": "1216 width",
"type": "INT",
"links": [],
"slot_index": 1,
"shape": 3
},
{
"name": "832 height",
"type": "INT",
"links": null,
"shape": 3
},
{
"name": "1 count",
"type": "INT",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "GetMaskSizeAndCount"
},
"color": "#222",
"bgcolor": "#000"
},
{
"id": 88,
"type": "MultiplicationNode",
"pos": [
-405,
1612
],
"size": {
"0": 315,
"1": 102
},
"flags": {},
"order": 18,
"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": [
-396,
1750
],
"size": {
"0": 210,
"1": 89.4234390258789
},
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "source",
"type": "*",
"link": 224,
"dir": 3
}
],
"properties": {
"Node name for S&R": "Display Any (rgthree)"
},
"widgets_values": [
""
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 121,
"type": "Mask Crop Region",
"pos": [
-403,
1328
],
"size": {
"0": 315,
"1": 222
},
"flags": {},
"order": 14,
"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": [
-50,
1139
],
"size": {
"0": 315,
"1": 222
},
"flags": {},
"order": 22,
"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": [
327,
1127
],
"size": {
"0": 315,
"1": 194
},
"flags": {},
"order": 25,
"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": [
681,
1128
],
"size": {
"0": 234.10751342773438,
"1": 246
},
"flags": {},
"order": 30,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 164
}
],
"properties": {
"Node name for S&R": "PreviewImage"
},
"color": "#222",
"bgcolor": "#000"
},
{
"id": 67,
"type": "MaskPreview+",
"pos": [
691,
1453
],
"size": {
"0": 236.90216064453125,
"1": 269.5352478027344
},
"flags": {},
"order": 33,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 148
}
],
"properties": {
"Node name for S&R": "MaskPreview+"
},
"color": "#222",
"bgcolor": "#000"
},
{
"id": 115,
"type": "DF_Text",
"pos": [
-32,
472
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 3,
"mode": 0,
"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": [
322,
216
],
"size": {
"0": 311.4233703613281,
"1": 118
},
"flags": {},
"order": 12,
"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": [
330,
389
],
"size": {
"0": 311.4233703613281,
"1": 118
},
"flags": {},
"order": 17,
"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": 118,
"type": "ShowText|pysssss",
"pos": [
-24,
590
],
"size": {
"0": 315,
"1": 76
},
"flags": {},
"order": 20,
"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 speech bubble , high quality, detailed"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
318,
567
],
"size": {
"0": 324.510986328125,
"1": 95.31903076171875
},
"flags": {},
"order": 19,
"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": [
16,
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"
}
},
{
"id": 26,
"type": "FluxGuidance",
"pos": [
721.918215849406,
256.97265152534834
],
"size": {
"0": 211.60000610351562,
"1": 58
},
"flags": {},
"order": 23,
"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": [
718.918215849406,
487.97265152534834
],
"size": {
"0": 222.3482666015625,
"1": 46
},
"flags": {},
"order": 26,
"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"
},
"color": "#323",
"bgcolor": "#535"
},
{
"id": 16,
"type": "KSamplerSelect",
"pos": [
994,
385
],
"size": {
"0": 264.5431823730469,
"1": 58
},
"flags": {},
"order": 4,
"mode": 0,
"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": [
992,
490
],
"size": {
"0": 266.90228271484375,
"1": 106
},
"flags": {},
"order": 15,
"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": [
735,
387
],
"size": {
"0": 210,
"1": 26
},
"flags": {},
"order": 16,
"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"
},
"color": "#323",
"bgcolor": "#535"
},
{
"id": 66,
"type": "MaskBlur+",
"pos": [
-56,
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": [
1023,
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"
},
"color": "#323",
"bgcolor": "#535"
},
{
"id": 91,
"type": "ImageResizeKJ",
"pos": [
2099,
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
},
{
"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": [
2099,
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
},
{
"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": 114,
"type": "DF_Text",
"pos": [
-36,
230
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 5,
"mode": 0,
"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": 81,
"type": "PreviewImage",
"pos": [
2127.6488423084907,
1135.7283300381102
],
"size": {
"0": 210,
"1": 246
},
"flags": {},
"order": 40,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 230
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 120,
"type": "DF_Text",
"pos": [
1335.6488423084916,
1339.7283300381102
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 6,
"mode": 0,
"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": [
1743.6488423084916,
1107.7283300381102
],
"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": [
1355,
638
],
"size": {
"0": 315,
"1": 290.0000305175781
},
"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"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 104,
"type": "PreviewBridge",
"pos": [
1346,
264
],
"size": {
"0": 315,
"1": 290
},
"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"
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 103,
"type": "ImageMaskSwitch",
"pos": [
2089,
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
},
{
"name": "images2_opt",
"type": "IMAGE",
"link": 335
},
{
"name": "mask2_opt",
"type": "MASK",
"link": 317
},
{
"name": "images3_opt",
"type": "IMAGE",
"link": null
},
{
"name": "mask3_opt",
"type": "MASK",
"link": null
},
{
"name": "images4_opt",
"type": "IMAGE",
"link": null
},
{
"name": "mask4_opt",
"type": "MASK",
"link": null
}
],
"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": 47,
"type": "LoadImage",
"pos": [
-423,
673
],
"size": {
"0": 315,
"1": 314
},
"flags": {},
"order": 7,
"mode": 0,
"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-2702742.4000000022.png [input]",
"image"
]
},
{
"id": 12,
"type": "UNETLoader",
"pos": [
-411.4108437772789,
231.2381126387799
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 8,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
119,
144
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "UNETLoader"
},
"widgets_values": [
"flux/flux1-dev.safetensors",
"fp8_e4m3fn"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 10,
"type": "VAELoader",
"pos": [
-408.4108437772789,
516.2381126387796
],
"size": {
"0": 311.81634521484375,
"1": 60.429901123046875
},
"flags": {},
"order": 9,
"mode": 0,
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
12,
128
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"flux_dev/ae.safetensors"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 113,
"type": "DF_Text",
"pos": [
-33,
353
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 10,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
287
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "DF_Text"
},
"widgets_values": [
"on a speech bubble"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 25,
"type": "RandomNoise",
"pos": [
729,
597
],
"size": {
"0": 220.7213897705078,
"1": 82
},
"flags": {},
"order": 11,
"mode": 0,
"outputs": [
{
"name": "NOISE",
"type": "NOISE",
"links": [
37
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "RandomNoise"
},
"widgets_values": [
676055877606430,
"randomize"
],
"color": "#323",
"bgcolor": "#535"
}
],
"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,
"locked": false
},
{
"title": "Latent",
"bounding": [
701,
146,
574,
554
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "SegAnyThing",
"bounding": [
1298,
1029,
1067,
393
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "Composite",
"bounding": [
1304,
147,
1131,
819
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "Prompt",
"bounding": [
-50,
147,
705,
562
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "Models",
"bounding": [
-419,
148,
336,
439
],
"color": "#3f789e",
"font_size": 24,
"locked": false
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.5445000000000011,
"offset": [
122.90922300987268,
117.50833242427706
]
},
"groupNodes": {}
},
"version": 0.4
}