Files
lquesada-ComfyUI-Inpaint-Cr…/inpaint-cropandstitch_example_workflow_freesize.json
T

623 lines
9.7 KiB
JSON

{
"last_node_id": 16,
"last_link_id": 35,
"nodes": [
{
"id": 15,
"type": "VAEDecode",
"pos": [
1900,
350
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 33,
"slot_index": 0
},
{
"name": "vae",
"type": "VAE",
"link": 32,
"slot_index": 1
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
34
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 14,
"type": "KSampler",
"pos": [
1620,
550
],
"size": [
320,
470
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 28
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 29
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 30
},
{
"name": "latent_image",
"type": "LATENT",
"link": 31,
"slot_index": 3
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
33
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
1043944979400846,
"randomize",
20,
8,
"dpmpp_3m_sde",
"karras",
1
]
},
{
"id": 12,
"type": "CLIPTextEncode",
"pos": [
1260,
920
],
"size": {
"0": 300,
"1": 120
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 24,
"slot_index": 0
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
30
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"ugly, text, watermark"
]
},
{
"id": 2,
"type": "InpaintStitch",
"pos": [
2130,
170
],
"size": {
"0": 210,
"1": 78
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "stitch",
"type": "STITCH",
"link": 8
},
{
"name": "inpainted_image",
"type": "IMAGE",
"link": 34
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
12
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "InpaintStitch"
},
"widgets_values": [
"bislerp"
]
},
{
"id": 10,
"type": "CheckpointLoaderSimple",
"pos": [
790,
540
],
"size": {
"0": 450,
"1": 100
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
28
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
21,
24
],
"shape": 3,
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
26,
32
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"sd1.5-inpainting/lazymixRealAmateur_v40Inpainting.safetensors"
]
},
{
"id": 6,
"type": "VAEEncodeForInpaint",
"pos": [
1260,
260
],
"size": {
"0": 230,
"1": 100
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 9
},
{
"name": "vae",
"type": "VAE",
"link": 26
},
{
"name": "mask",
"type": "MASK",
"link": 13
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
31
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEEncodeForInpaint"
},
"widgets_values": [
12
]
},
{
"id": 3,
"type": "LoadImage",
"pos": [
290,
210
],
"size": {
"0": 400,
"1": 500
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
1
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [
2
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"clipspace/clipspace-mask-1389672.600000009.png [input]",
"image"
]
},
{
"id": 1,
"type": "InpaintCrop",
"pos": [
790,
170
],
"size": [
320,
270
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 1
},
{
"name": "mask",
"type": "MASK",
"link": 2
},
{
"name": "optional_context_mask",
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "stitch",
"type": "STITCH",
"links": [
8
],
"shape": 3,
"slot_index": 0
},
{
"name": "cropped_image",
"type": "IMAGE",
"links": [
9
],
"shape": 3,
"slot_index": 1
},
{
"name": "cropped_mask",
"type": "MASK",
"links": [
13
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "InpaintCrop"
},
"widgets_values": [
10,
2,
false,
2,
"bilinear",
"free size",
1024,
1024,
1,
32,
512,
512,
768,
768
]
},
{
"id": 7,
"type": "PreviewImage",
"pos": [
2380,
340
],
"size": {
"0": 670,
"1": 950
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 12
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 11,
"type": "CLIPTextEncode",
"pos": [
1260,
710
],
"size": {
"0": 310,
"1": 140
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 21
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
29
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"clean sky"
]
}
],
"links": [
[
1,
3,
0,
1,
0,
"IMAGE"
],
[
2,
3,
1,
1,
1,
"MASK"
],
[
8,
1,
0,
2,
0,
"STITCH"
],
[
9,
1,
1,
6,
0,
"IMAGE"
],
[
12,
2,
0,
7,
0,
"IMAGE"
],
[
13,
1,
2,
6,
2,
"MASK"
],
[
21,
10,
1,
11,
0,
"CLIP"
],
[
24,
10,
1,
12,
0,
"CLIP"
],
[
26,
10,
2,
6,
1,
"VAE"
],
[
28,
10,
0,
14,
0,
"MODEL"
],
[
29,
11,
0,
14,
1,
"CONDITIONING"
],
[
30,
12,
0,
14,
2,
"CONDITIONING"
],
[
31,
6,
0,
14,
3,
"LATENT"
],
[
32,
10,
2,
15,
1,
"VAE"
],
[
33,
14,
0,
15,
0,
"LATENT"
],
[
34,
15,
0,
2,
1,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.740024994425817,
"offset": [
168.1683427740263,
210.5138753162865
]
}
},
"version": 0.4
}