{
"last_node_id": 21,
"last_link_id": 56,
"nodes": [
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
170.84028808593754,
417.3001922607424
],
"size": {
"0": 425.27801513671875,
"1": 180.6060791015625
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 41
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
6
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"text, watermark"
]
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
970.8402880859369,
227.30019226074222
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 7
},
{
"name": "vae",
"type": "VAE",
"link": 25
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
9
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
170.84028808593754,
207.30019226074194
],
"size": {
"0": 422.84503173828125,
"1": 164.31304931640625
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 40
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
4
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"anime girl"
]
},
{
"id": 15,
"type": "VAELoader",
"pos": [
-294,
543
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
24,
25,
44
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"kl-f8-anime2.ckpt"
]
},
{
"id": 14,
"type": "CheckpointSave",
"pos": [
1314,
-86
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 11,
"mode": 2,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 37
},
{
"name": "clip",
"type": "CLIP",
"link": 42
},
{
"name": "vae",
"type": "VAE",
"link": 24
}
],
"properties": {
"Node name for S&R": "CheckpointSave"
},
"widgets_values": [
"checkpoints/ComfyUI"
]
},
{
"id": 19,
"type": "LoadImage",
"pos": [
32,
664
],
"size": {
"0": 315,
"1": 314
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
43
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [
45
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"yosemite_inpaint_example.png",
"image"
]
},
{
"id": 17,
"type": "ModelMergeSubtract",
"pos": [
252,
-142
],
"size": {
"0": 315,
"1": 78
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "model1",
"type": "MODEL",
"link": 34
},
{
"name": "model2",
"type": "MODEL",
"link": 35
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
36
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ModelMergeSubtract"
},
"widgets_values": [
1
]
},
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
-300,
-80
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
34
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"sd-v1-5-inpainting.ckpt"
]
},
{
"id": 11,
"type": "CheckpointLoaderSimple",
"pos": [
-300,
80
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
35
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": null,
"shape": 3
},
{
"name": "VAE",
"type": "VAE",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"v1-5-pruned-emaonly.ckpt"
]
},
{
"id": 13,
"type": "CheckpointLoaderSimple",
"pos": [
-300,
240
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
39
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
40,
41,
42
],
"shape": 3,
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"AOM3A1.safetensors"
]
},
{
"id": 20,
"type": "VAEEncodeForInpaint",
"pos": [
377,
671
],
"size": {
"0": 226.8000030517578,
"1": 98
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 43
},
{
"name": "vae",
"type": "VAE",
"link": 44,
"slot_index": 1
},
{
"name": "mask",
"type": "MASK",
"link": 45,
"slot_index": 2
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
54
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEEncodeForInpaint"
},
"widgets_values": [
6
]
},
{
"id": 21,
"type": "RepeatLatentBatch",
"pos": [
648,
692
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 54
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
55
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "RepeatLatentBatch"
},
"widgets_values": [
4
]
},
{
"id": 18,
"type": "ModelMergeAdd",
"pos": [
616,
-128
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "model1",
"type": "MODEL",
"link": 36
},
{
"name": "model2",
"type": "MODEL",
"link": 39
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
37,
56
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ModelMergeAdd"
}
},
{
"id": 9,
"type": "SaveImage",
"pos": [
1219,
226
],
"size": {
"0": 573.7468872070312,
"1": 480.0403137207031
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 9
}
],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 3,
"type": "KSampler",
"pos": [
620.8402880859362,
207.30019226074194
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 56
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 4
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 6
},
{
"name": "latent_image",
"type": "LATENT",
"link": 55
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
7
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
156680208700286,
"fixed",
20,
8,
"euler",
"normal",
1
]
}
],
"links": [
[
4,
6,
0,
3,
1,
"CONDITIONING"
],
[
6,
7,
0,
3,
2,
"CONDITIONING"
],
[
7,
3,
0,
8,
0,
"LATENT"
],
[
9,
8,
0,
9,
0,
"IMAGE"
],
[
24,
15,
0,
14,
2,
"VAE"
],
[
25,
15,
0,
8,
1,
"VAE"
],
[
34,
4,
0,
17,
0,
"MODEL"
],
[
35,
11,
0,
17,
1,
"MODEL"
],
[
36,
17,
0,
18,
0,
"MODEL"
],
[
37,
18,
0,
14,
0,
"MODEL"
],
[
39,
13,
0,
18,
1,
"MODEL"
],
[
40,
13,
1,
6,
0,
"CLIP"
],
[
41,
13,
1,
7,
0,
"CLIP"
],
[
42,
13,
1,
14,
1,
"CLIP"
],
[
43,
19,
0,
20,
0,
"IMAGE"
],
[
44,
15,
0,
20,
1,
"VAE"
],
[
45,
19,
1,
20,
2,
"MASK"
],
[
54,
20,
0,
21,
0,
"LATENT"
],
[
55,
21,
0,
3,
3,
"LATENT"
],
[
56,
18,
0,
3,
0,
"MODEL"
]
],
"groups": [
{
"title": "Load Checkpoints",
"bounding": [
-340,
-204,
417,
587
],
"color": "#3f789e"
},
{
"title": "Basic Inpainting pipeline for testing the merge",
"bounding": [
102,
91,
1707,
822
],
"color": "#A88"
},
{
"title": "Save checkpoint when done (CTRL-M to unmute)",
"bounding": [
1198,
-195,
546,
255
],
"color": "#8A8"
},
{
"title": "Load the VAE",
"bounding": [
-345,
448,
418,
194
],
"color": "#3f789e"
},
{
"title": "Create inpaint model.",
"bounding": [
220,
-236,
796,
319
],
"color": "#8AA"
}
],
"config": {},
"extra": {},
"version": 0.4
}