{
"last_node_id": 76,
"last_link_id": 355,
"nodes": [
{
"id": 42,
"type": "CheckpointLoaderSimple",
"pos": [
960,
96
],
"size": {
"0": 349.90911865234375,
"1": 98
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
113
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": null,
"shape": 3
},
{
"name": "VAE",
"type": "VAE",
"links": [
114
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"stable_cascade_stage_b.safetensors"
]
},
{
"id": 41,
"type": "CheckpointLoaderSimple",
"pos": [
-261,
356
],
"size": {
"0": 336,
"1": 98
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
110
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
111,
112
],
"shape": 3,
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"stable_cascade_stage_c.safetensors"
]
},
{
"id": 36,
"type": "StableCascade_StageB_Conditioning",
"pos": [
960,
240
],
"size": {
"0": 277.20001220703125,
"1": 46
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 116,
"slot_index": 0
},
{
"name": "stage_c",
"type": "LATENT",
"link": 88
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
86
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "StableCascade_StageB_Conditioning"
}
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
96,
287
],
"size": {
"0": 432,
"1": 192
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 111
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
116,
118
],
"slot_index": 0
}
],
"title": "CLIP Text Encode (Positive Prompt)",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"evening sunset scenery blue sky nature, glass bottle with a fizzy ice cold freezing rainbow liquid in it"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
43,
516
],
"size": {
"0": 432,
"1": 96
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 112
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
117,
119
],
"slot_index": 0
}
],
"title": "CLIP Text Encode (Negative Prompt)",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"text, watermark"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 49,
"type": "ControlNetApplyAdvanced",
"pos": [
160,
-18
],
"size": {
"0": 315,
"1": 166
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "positive",
"type": "CONDITIONING",
"link": 118
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 119
},
{
"name": "control_net",
"type": "CONTROL_NET",
"link": 122
},
{
"name": "image",
"type": "IMAGE",
"link": 336,
"slot_index": 3
}
],
"outputs": [
{
"name": "positive",
"type": "CONDITIONING",
"links": [
120
],
"shape": 3,
"slot_index": 0
},
{
"name": "negative",
"type": "CONDITIONING",
"links": [
142
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "ControlNetApplyAdvanced"
},
"widgets_values": [
1,
0,
1
]
},
{
"id": 47,
"type": "ControlNetLoader",
"pos": [
-287,
-76
],
"size": [
381.5635253906248,
58
],
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "CONTROL_NET",
"type": "CONTROL_NET",
"links": [
122
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ControlNetLoader"
},
"widgets_values": [
"stable_cascade_inpainting.safetensors"
]
},
{
"id": 68,
"type": "workflow/StableCascadeInpaintCnet",
"pos": [
-150,
54
],
"size": [
210,
54
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 338
},
{
"name": "mask",
"type": "MASK",
"link": 337
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
336
],
"shape": 3
}
],
"title": "StableCascadeInpaint",
"properties": {
"Node name for S&R": "workflow/StableCascadeInpaintCnet"
},
"widgets_values": [
512,
512,
1,
16777215,
0.5,
0,
0,
true
]
},
{
"id": 34,
"type": "StableCascade_EmptyLatentImage",
"pos": [
210,
725
],
"size": {
"0": 315,
"1": 150
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "stage_c",
"type": "LATENT",
"links": [
82
],
"shape": 3,
"slot_index": 0
},
{
"name": "stage_b",
"type": "LATENT",
"links": [
83
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "StableCascade_EmptyLatentImage"
},
"widgets_values": [
1024,
768,
42,
1
]
},
{
"id": 9,
"type": "SaveImage",
"pos": [
2582,
310
],
"size": [
1042.8776879882817,
816.5899353027346
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 342
}
],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 69,
"type": "ImageCompositeMasked",
"pos": [
2225,
308
],
"size": {
"0": 315,
"1": 146
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "destination",
"type": "IMAGE",
"link": 339
},
{
"name": "source",
"type": "IMAGE",
"link": 340
},
{
"name": "mask",
"type": "MASK",
"link": 353
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
342
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageCompositeMasked"
},
"widgets_values": [
0,
0,
true
]
},
{
"id": 70,
"type": "InvertMask",
"pos": [
1812,
353
],
"size": [
140,
26
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 343
}
],
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": [
354
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "InvertMask"
}
},
{
"id": 46,
"type": "Note",
"pos": [
2228,
498
],
"size": [
303.3631347656251,
145.52235717773442
],
"flags": {},
"order": 4,
"mode": 0,
"properties": {
"text": ""
},
"widgets_values": [
"This is an optional step to composite the inpainted part of the image back on the original image"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 50,
"type": "LoadImage",
"pos": [
-683,
60
],
"size": [
319.70399085993176,
334.6662398551047
],
"flags": {},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
338,
340
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [
337,
343
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"yosemite_inpaint_example.png",
"image"
]
},
{
"id": 71,
"type": "GrowMask",
"pos": [
1990,
349
],
"size": [
210,
82
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 354
}
],
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": [
353
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "GrowMask"
},
"widgets_values": [
-8,
true
]
},
{
"id": 33,
"type": "KSampler",
"pos": [
1278,
265
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 113,
"slot_index": 0
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 86
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 117
},
{
"name": "latent_image",
"type": "LATENT",
"link": 83
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
98
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
276702736250973,
"randomize",
10,
1.1,
"euler_ancestral",
"simple",
1
]
},
{
"id": 3,
"type": "KSampler",
"pos": [
552,
293
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 110,
"slot_index": 0
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 120
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 142
},
{
"name": "latent_image",
"type": "LATENT",
"link": 82
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
88
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
596288924835940,
"randomize",
20,
4,
"euler_ancestral",
"simple",
1
]
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
1627,
266
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 98
},
{
"name": "vae",
"type": "VAE",
"link": 114,
"slot_index": 1
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
339,
355
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 76,
"type": "PreviewImage",
"pos": [
1727,
703
],
"size": [
772.685302734375,
563.2671508789062
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 355
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
}
],
"links": [
[
82,
34,
0,
3,
3,
"LATENT"
],
[
83,
34,
1,
33,
3,
"LATENT"
],
[
86,
36,
0,
33,
1,
"CONDITIONING"
],
[
88,
3,
0,
36,
1,
"LATENT"
],
[
98,
33,
0,
8,
0,
"LATENT"
],
[
110,
41,
0,
3,
0,
"MODEL"
],
[
111,
41,
1,
6,
0,
"CLIP"
],
[
112,
41,
1,
7,
0,
"CLIP"
],
[
113,
42,
0,
33,
0,
"MODEL"
],
[
114,
42,
2,
8,
1,
"VAE"
],
[
116,
6,
0,
36,
0,
"CONDITIONING"
],
[
117,
7,
0,
33,
2,
"CONDITIONING"
],
[
118,
6,
0,
49,
0,
"CONDITIONING"
],
[
119,
7,
0,
49,
1,
"CONDITIONING"
],
[
120,
49,
0,
3,
1,
"CONDITIONING"
],
[
122,
47,
0,
49,
2,
"CONTROL_NET"
],
[
142,
49,
1,
3,
2,
"CONDITIONING"
],
[
336,
68,
0,
49,
3,
"IMAGE"
],
[
337,
50,
1,
68,
1,
"MASK"
],
[
338,
50,
0,
68,
0,
"IMAGE"
],
[
339,
8,
0,
69,
0,
"IMAGE"
],
[
340,
50,
0,
69,
1,
"IMAGE"
],
[
342,
69,
0,
9,
0,
"IMAGE"
],
[
343,
50,
1,
70,
0,
"MASK"
],
[
353,
71,
0,
69,
2,
"MASK"
],
[
354,
70,
0,
71,
0,
"MASK"
],
[
355,
8,
0,
76,
0,
"IMAGE"
]
],
"groups": [
{
"title": "Stage B",
"bounding": [
877,
-63,
736,
662
],
"color": "#8A8",
"font_size": 24
},
{
"title": "Stage C",
"bounding": [
-284,
188,
1159,
491
],
"color": "#b06634",
"font_size": 24
}
],
"config": {},
"extra": {
"groupNodes": {
"StableCascadeInpaintCnet": {
"nodes": [
{
"type": "EmptyImage",
"pos": [
-304,
-267
],
"size": {
"0": 315,
"1": 130
},
"flags": {},
"order": 10,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [],
"shape": 3
}
],
"properties": {
"Node name for S&R": "EmptyImage"
},
"widgets_values": [
512,
512,
1,
16777215
],
"index": 0
},
{
"type": "ThresholdMask",
"pos": [
-225,
-369
],
"size": {
"0": 210,
"1": 58
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": null,
"slot_index": 0
}
],
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": [],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ThresholdMask"
},
"widgets_values": [
0.5
],
"index": 1
},
{
"type": "InvertMask",
"pos": [
-224,
-451
],
"size": {
"0": 210,
"1": 26
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": [],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "InvertMask"
},
"index": 2
},
{
"type": "ImageCompositeMasked",
"pos": [
38,
-396
],
"size": {
"0": 315,
"1": 146
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "destination",
"type": "IMAGE",
"link": null
},
{
"name": "source",
"type": "IMAGE",
"link": null,
"slot_index": 1
},
{
"name": "mask",
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageCompositeMasked"
},
"widgets_values": [
0,
0,
true
],
"index": 3
},
{
"type": "Reroute",
"pos": [
-372,
-443
],
"size": [
75,
26
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": null
}
],
"outputs": [
{
"name": "",
"type": "*",
"links": null
}
],
"properties": {
"showOutputText": false,
"horizontal": false
},
"index": 4
},
{
"type": "JoinImageWithAlpha",
"pos": [
375,
-460
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": null
},
{
"name": "alpha",
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "JoinImageWithAlpha"
},
"index": 5
}
],
"links": [
[
null,
1,
4,
0,
50,
"MASK"
],
[
4,
0,
1,
0,
66,
"MASK"
],
[
4,
0,
2,
0,
66,
"MASK"
],
[
null,
0,
3,
0,
50,
"IMAGE"
],
[
0,
0,
3,
1,
62,
"IMAGE"
],
[
1,
0,
3,
2,
64,
"MASK"
],
[
3,
0,
5,
0,
59,
"IMAGE"
],
[
2,
0,
5,
1,
61,
"MASK"
]
],
"external": [
[
{
"type": "JoinImageWithAlpha",
"pos": [
375,
-460
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": null
},
{
"name": "alpha",
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "JoinImageWithAlpha"
},
"index": 5
},
0,
"IMAGE"
]
],
"config": {
"0": {
"input": {
"width": {
"visible": false
},
"height": {
"visible": false
},
"batch_size": {
"visible": false
},
"color": {
"visible": false
}
}
},
"1": {
"input": {
"value": {
"visible": false
}
}
},
"2": {},
"3": {
"input": {
"x": {
"visible": false
},
"y": {
"visible": false
},
"resize_source": {
"visible": false
},
"destination": {
"name": "image"
}
}
},
"4": {
"output": {
"0": {
"name": ""
}
},
"input": {
"MASK": {
"name": "mask"
}
}
},
"5": {}
}
}
}
},
"version": 0.4
}