Files
kijai-ComfyUI-BrushNet-Wrapper/examples/brushnet_example_incremental_outpainting.json

929 lines
15 KiB
JSON

{
"last_node_id": 80,
"last_link_id": 175,
"nodes": [
{
"id": 24,
"type": "ImageResize+",
"pos": [
453,
569
],
"size": {
"0": 315,
"1": 218
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 39
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
111,
130
],
"shape": 3,
"slot_index": 0
},
{
"name": "width",
"type": "INT",
"links": null,
"shape": 3
},
{
"name": "height",
"type": "INT",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ImageResize+"
},
"widgets_values": [
512,
512,
"lanczos",
true,
"always",
2
]
},
{
"id": 55,
"type": "ImageRemoveBackground+",
"pos": [
505,
849
],
"size": {
"0": 241.79998779296875,
"1": 46
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "rembg_session",
"type": "REMBG_SESSION",
"link": 110,
"slot_index": 0
},
{
"name": "image",
"type": "IMAGE",
"link": 111
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": null,
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [
143
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "ImageRemoveBackground+"
}
},
{
"id": 56,
"type": "RemBGSession+",
"pos": [
436,
970
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "REMBG_SESSION",
"type": "REMBG_SESSION",
"links": [
110
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "RemBGSession+"
},
"widgets_values": [
"u2net_human_seg: human segmentation",
"CPU"
]
},
{
"id": 73,
"type": "ImagePadForOutpaintMasked",
"pos": [
973,
1563
],
"size": {
"0": 315,
"1": 174
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 165
},
{
"name": "mask",
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
167
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [
168
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "ImagePadForOutpaintMasked"
},
"widgets_values": [
0,
0,
0,
256,
0
]
},
{
"id": 66,
"type": "ImagePadForOutpaintMasked",
"pos": [
806,
584
],
"size": {
"0": 315,
"1": 174
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 130
},
{
"name": "mask",
"type": "MASK",
"link": 143
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
157
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [
135,
158
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "ImagePadForOutpaintMasked"
},
"widgets_values": [
128,
128,
128,
0,
0
]
},
{
"id": 7,
"type": "LoadImage",
"pos": [
1631,
173
],
"size": {
"0": 316,
"1": 405
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
39
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"oldman.jpg",
"image"
]
},
{
"id": 54,
"type": "MaskPreview+",
"pos": [
1293,
729
],
"size": {
"0": 315.012451171875,
"1": 337.9891662597656
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 135
}
],
"properties": {
"Node name for S&R": "MaskPreview+"
}
},
{
"id": 70,
"type": "ImagePadForOutpaintMasked",
"pos": [
857,
1122
],
"size": {
"0": 315,
"1": 174
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 160
},
{
"name": "mask",
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
162
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [
163
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "ImagePadForOutpaintMasked"
},
"widgets_values": [
0,
0,
0,
256,
0
]
},
{
"id": 47,
"type": "PreviewImage",
"pos": [
1972,
197
],
"size": {
"0": 598.1146240234375,
"1": 551.4878540039062
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 159,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 71,
"type": "PreviewImage",
"pos": [
2591,
187
],
"size": {
"0": 704.5072021484375,
"1": 839.8850708007812
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 164,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 74,
"type": "PreviewImage",
"pos": [
3320,
187
],
"size": {
"0": 786.09912109375,
"1": 1164.818603515625
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 169,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 75,
"type": "brushnet_sampler",
"pos": [
1208,
145
],
"size": [
393.54825627441437,
477.48640561035177
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "brushnet",
"type": "BRUSHNET",
"link": 156
},
{
"name": "image",
"type": "IMAGE",
"link": 157
},
{
"name": "mask",
"type": "MASK",
"link": 158
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
159,
160
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "brushnet_sampler"
},
"widgets_values": [
25,
7.5,
1,
0,
1,
false,
0,
127,
"fixed",
"UniPCMultistepScheduler",
"seaside, old man, scenery",
"bad quality"
]
},
{
"id": 1,
"type": "brushnet_model_loader",
"pos": [
688,
402
],
"size": [
378.24762954139715,
98.14945294189465
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 1,
"slot_index": 0
},
{
"name": "clip",
"type": "CLIP",
"link": 2
},
{
"name": "vae",
"type": "VAE",
"link": 3
}
],
"outputs": [
{
"name": "brushnet",
"type": "BRUSHNET",
"links": [
156,
161,
166
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "brushnet_model_loader"
},
"widgets_values": [
"brushnet_segmentation_mask"
]
},
{
"id": 3,
"type": "CheckpointLoaderSimple",
"pos": [
202,
402
],
"size": [
401.15305795288054,
98
],
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
1
],
"shape": 3
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
2
],
"shape": 3,
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
3
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"1_5\\realisticVisionV60B1_v51VAE.safetensors"
]
},
{
"id": 76,
"type": "brushnet_sampler",
"pos": [
1371,
1159
],
"size": [
393.5482482910156,
477.4864196777344
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "brushnet",
"type": "BRUSHNET",
"link": 161
},
{
"name": "image",
"type": "IMAGE",
"link": 162
},
{
"name": "mask",
"type": "MASK",
"link": 163
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
164,
165
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "brushnet_sampler"
},
"widgets_values": [
25,
7.5,
1,
0,
1,
false,
0,
137,
"fixed",
"UniPCMultistepScheduler",
"closeup, jacket, lower body, arms crossed",
"bad quality"
]
},
{
"id": 77,
"type": "brushnet_sampler",
"pos": [
1379,
1690
],
"size": [
393.5482482910156,
477.4864196777344
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "brushnet",
"type": "BRUSHNET",
"link": 166
},
{
"name": "image",
"type": "IMAGE",
"link": 167
},
{
"name": "mask",
"type": "MASK",
"link": 168
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
169
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "brushnet_sampler"
},
"widgets_values": [
25,
7.5,
1,
0,
1,
false,
0,
128,
"fixed",
"UniPCMultistepScheduler",
"old man, chair",
"bad quality"
]
}
],
"links": [
[
1,
3,
0,
1,
0,
"MODEL"
],
[
2,
3,
1,
1,
1,
"CLIP"
],
[
3,
3,
2,
1,
2,
"VAE"
],
[
39,
7,
0,
24,
0,
"IMAGE"
],
[
110,
56,
0,
55,
0,
"REMBG_SESSION"
],
[
111,
24,
0,
55,
1,
"IMAGE"
],
[
130,
24,
0,
66,
0,
"IMAGE"
],
[
135,
66,
1,
54,
0,
"MASK"
],
[
143,
55,
1,
66,
1,
"MASK"
],
[
156,
1,
0,
75,
0,
"BRUSHNET"
],
[
157,
66,
0,
75,
1,
"IMAGE"
],
[
158,
66,
1,
75,
2,
"MASK"
],
[
159,
75,
0,
47,
0,
"IMAGE"
],
[
160,
75,
0,
70,
0,
"IMAGE"
],
[
161,
1,
0,
76,
0,
"BRUSHNET"
],
[
162,
70,
0,
76,
1,
"IMAGE"
],
[
163,
70,
1,
76,
2,
"MASK"
],
[
164,
76,
0,
71,
0,
"IMAGE"
],
[
165,
76,
0,
73,
0,
"IMAGE"
],
[
166,
1,
0,
77,
0,
"BRUSHNET"
],
[
167,
73,
0,
77,
1,
"IMAGE"
],
[
168,
73,
1,
77,
2,
"MASK"
],
[
169,
77,
0,
74,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}