Skip to content

Instantly share code, notes, and snippets.

@4rmx
Created September 6, 2023 14:16
Show Gist options
  • Save 4rmx/dc23ec540dc11fe81af459cc72ca509e to your computer and use it in GitHub Desktop.
Save 4rmx/dc23ec540dc11fe81af459cc72ca509e to your computer and use it in GitHub Desktop.
workflow for ComfyUI Inpainting (only masked)
{
"last_node_id": 446,
"last_link_id": 711,
"nodes": [
{
"id": 416,
"type": "CLIPTextEncode",
"pos": [
0,
30
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 659
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
661,
663
],
"shape": 3,
"slot_index": 0
}
],
"title": "CLIP Text Encode (Prompt) +",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"full body, 1girl, solo, Korean idol, solo, detailed face, detailed eyes, messy hair, floating hair, full body, shirt, shorts, (simple background:1.21), dramatic lighting, best quality, masterpiece, ultra high res, (photorealistic:1.21)"
]
},
{
"id": 91,
"type": "EmptyLatentImage",
"pos": [
450,
330
],
"size": {
"0": 210,
"1": 80
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "width",
"type": "INT",
"link": 147,
"widget": {
"name": "width",
"config": [
"INT",
{
"default": 512,
"min": 64,
"max": 8192,
"step": 8
}
]
}
},
{
"name": "height",
"type": "INT",
"link": 148,
"widget": {
"name": "height",
"config": [
"INT",
{
"default": 512,
"min": 64,
"max": 8192,
"step": 8
}
]
}
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
146
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
512,
768,
1
]
},
{
"id": 412,
"type": "Reroute",
"pos": [
450,
1000
],
"size": [
75,
26
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 665
}
],
"outputs": [
{
"name": "",
"type": "INT",
"links": [
651
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 33,
"type": "VAEDecode",
"pos": [
690,
340
],
"size": {
"0": 140,
"1": 50
},
"flags": {},
"order": 30,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 79
},
{
"name": "vae",
"type": "VAE",
"link": 90
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
29
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 25,
"type": "KSampler",
"pos": [
450,
30
],
"size": {
"0": 380,
"1": 262
},
"flags": {},
"order": 25,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 46
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 661
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 662,
"slot_index": 2
},
{
"name": "latent_image",
"type": "LATENT",
"link": 146,
"slot_index": 3
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
79
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
427694003370975,
"fixed",
30,
7,
"dpmpp_2m_sde",
"karras",
1
]
},
{
"id": 417,
"type": "CLIPTextEncode",
"pos": [
0,
260
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 660
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
662,
664
],
"shape": 3,
"slot_index": 0
}
],
"title": "CLIP Text Encode (Prompt) +",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"embedding:ng_deepnegative_v1_75t.pt, embedding:badhandv4.pt, (worst quality:1.33), (low quality:1.33), (normal quality:1.33), lowres, nsfw, (text, watermark:1.15)"
]
},
{
"id": 35,
"type": "Reroute",
"pos": [
650,
-60
],
"size": [
75,
26
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 31
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
90,
672
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 14,
"type": "CLIPSetLastLayer",
"pos": [
-240,
-80
],
"size": {
"0": 210,
"1": 60
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 687
}
],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
659,
660
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPSetLastLayer"
},
"widgets_values": [
-2
]
},
{
"id": 42,
"type": "Reroute",
"pos": [
320,
-90
],
"size": [
75,
26
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 45
}
],
"outputs": [
{
"name": "",
"type": "MODEL",
"links": [
46,
666
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 420,
"type": "Reroute",
"pos": [
1400,
-100
],
"size": [
75,
26
],
"flags": {},
"order": 16,
"mode": 2,
"inputs": [
{
"name": "",
"type": "*",
"link": 666
}
],
"outputs": [
{
"name": "",
"type": "MODEL",
"links": [
667
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 422,
"type": "Reroute",
"pos": [
1400,
-130
],
"size": [
75,
26
],
"flags": {},
"order": 31,
"mode": 2,
"inputs": [
{
"name": "",
"type": "*",
"link": 669
}
],
"outputs": [
{
"name": "",
"type": "CONDITIONING",
"links": [
670
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 421,
"type": "Reroute",
"pos": [
1400,
-160
],
"size": [
75,
26
],
"flags": {},
"order": 29,
"mode": 2,
"inputs": [
{
"name": "",
"type": "*",
"link": 668
}
],
"outputs": [
{
"name": "",
"type": "CONDITIONING",
"links": [
671
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 419,
"type": "Reroute",
"pos": [
440,
-130
],
"size": [
75,
26
],
"flags": {},
"order": 26,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 664
}
],
"outputs": [
{
"name": "",
"type": "CONDITIONING",
"links": [
669
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 418,
"type": "Reroute",
"pos": [
440,
-160
],
"size": [
75,
26
],
"flags": {},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 663
}
],
"outputs": [
{
"name": "",
"type": "CONDITIONING",
"links": [
668
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 358,
"type": "PreviewImage",
"pos": [
2180,
40
],
"size": {
"0": 210,
"1": 250
},
"flags": {},
"order": 40,
"mode": 2,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 560
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 95,
"type": "Mask Dilate Region",
"pos": [
1140,
840
],
"size": {
"0": 210,
"1": 60
},
"flags": {},
"order": 12,
"mode": 2,
"inputs": [
{
"name": "masks",
"type": "MASK",
"link": 499
}
],
"outputs": [
{
"name": "MASKS",
"type": "MASK",
"links": [
491
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Mask Dilate Region"
},
"widgets_values": [
4
]
},
{
"id": 103,
"type": "Mask Gaussian Region",
"pos": [
1370,
840
],
"size": {
"0": 210,
"1": 60
},
"flags": {},
"order": 20,
"mode": 2,
"inputs": [
{
"name": "masks",
"type": "MASK",
"link": 491
}
],
"outputs": [
{
"name": "MASKS",
"type": "MASK",
"links": [
639
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Mask Gaussian Region"
},
"widgets_values": [
6
]
},
{
"id": 357,
"type": "VAEDecode",
"pos": [
1860,
40
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 39,
"mode": 2,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 558
},
{
"name": "vae",
"type": "VAE",
"link": 673
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
560,
683
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 290,
"type": "MaskToImage",
"pos": [
1610,
840
],
"size": {
"0": 210,
"1": 26
},
"flags": {},
"order": 27,
"mode": 2,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 639
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
475
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MaskToImage"
}
},
{
"id": 298,
"type": "Image Crop Location",
"pos": [
1140,
680
],
"size": {
"0": 210,
"1": 114
},
"flags": {},
"order": 13,
"mode": 2,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 470
},
{
"name": "top",
"type": "INT",
"link": 464,
"widget": {
"name": "top",
"config": [
"INT",
{
"default": 0,
"max": 10000000,
"min": 0,
"step": 1
}
]
}
},
{
"name": "left",
"type": "INT",
"link": 465,
"widget": {
"name": "left",
"config": [
"INT",
{
"default": 0,
"max": 10000000,
"min": 0,
"step": 1
}
]
}
},
{
"name": "right",
"type": "INT",
"link": 466,
"widget": {
"name": "right",
"config": [
"INT",
{
"default": 256,
"max": 10000000,
"min": 0,
"step": 1
}
]
}
},
{
"name": "bottom",
"type": "INT",
"link": 467,
"widget": {
"name": "bottom",
"config": [
"INT",
{
"default": 256,
"max": 10000000,
"min": 0,
"step": 1
}
]
}
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
645,
678,
688
],
"shape": 3,
"slot_index": 0
},
{
"name": "CROP_DATA",
"type": "CROP_DATA",
"links": [
456
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "Image Crop Location"
},
"widgets_values": [
0,
0,
256,
256
]
},
{
"id": 439,
"type": "Image Size to Number",
"pos": [
1380,
510
],
"size": {
"0": 170,
"1": 130
},
"flags": {},
"order": 22,
"mode": 2,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 688
}
],
"outputs": [
{
"name": "width_num",
"type": "NUMBER",
"links": null,
"shape": 3,
"slot_index": 0
},
{
"name": "height_num",
"type": "NUMBER",
"links": null,
"shape": 3
},
{
"name": "width_float",
"type": "FLOAT",
"links": null,
"shape": 3,
"slot_index": 2
},
{
"name": "height_float",
"type": "FLOAT",
"links": null,
"shape": 3
},
{
"name": "width_int",
"type": "INT",
"links": [
689
],
"shape": 3,
"slot_index": 4
},
{
"name": "height_int",
"type": "INT",
"links": [
690
],
"shape": 3,
"slot_index": 5
}
],
"properties": {
"Node name for S&R": "Image Size to Number"
}
},
{
"id": 285,
"type": "Image Paste Crop",
"pos": [
1860,
670
],
"size": {
"0": 210,
"1": 122
},
"flags": {},
"order": 42,
"mode": 2,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 694
},
{
"name": "crop_image",
"type": "IMAGE",
"link": 693
},
{
"name": "crop_data",
"type": "CROP_DATA",
"link": 456
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
691
],
"shape": 3,
"slot_index": 0
},
{
"name": "IMAGE",
"type": "IMAGE",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Image Paste Crop"
},
"widgets_values": [
0,
0
]
},
{
"id": 443,
"type": "PreviewImage",
"pos": [
1430,
1100
],
"size": {
"0": 210,
"1": 250
},
"flags": {},
"order": 43,
"mode": 2,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 696
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 426,
"type": "ImageScale",
"pos": [
1570,
520
],
"size": {
"0": 280,
"1": 122
},
"flags": {},
"order": 41,
"mode": 2,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 683
},
{
"name": "width",
"type": "INT",
"link": 689,
"widget": {
"name": "width",
"config": [
"INT",
{
"default": 512,
"min": 1,
"max": 8192,
"step": 1
}
]
}
},
{
"name": "height",
"type": "INT",
"link": 690,
"widget": {
"name": "height",
"config": [
"INT",
{
"default": 512,
"min": 1,
"max": 8192,
"step": 1
}
]
}
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
693,
696
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageScale"
},
"widgets_values": [
"bilinear",
512,
512,
"disabled"
]
},
{
"id": 440,
"type": "PreviewImage",
"pos": [
2450,
380
],
"size": {
"0": 430,
"1": 610
},
"flags": {},
"order": 44,
"mode": 2,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 691
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 356,
"type": "KSampler",
"pos": [
1510,
30
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 38,
"mode": 2,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 667
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 671
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 670
},
{
"name": "latent_image",
"type": "LATENT",
"link": 701
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
558
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
1042597679513086,
"fixed",
30,
7,
"dpmpp_2m_sde",
"karras",
0.6
]
},
{
"id": 316,
"type": "ImageToMask",
"pos": [
1380,
410
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 34,
"mode": 2,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 658
}
],
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": [
697
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageToMask"
},
"widgets_values": [
"red"
]
},
{
"id": 427,
"type": "PreviewImage",
"pos": [
1210,
1100
],
"size": {
"0": 210,
"1": 250
},
"flags": {},
"order": 21,
"mode": 2,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 678
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 423,
"type": "Reroute",
"pos": [
1750,
-60
],
"size": [
75,
26
],
"flags": {},
"order": 19,
"mode": 2,
"inputs": [
{
"name": "",
"type": "*",
"link": 672
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
673,
700
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 445,
"type": "SetLatentNoiseMask",
"pos": [
2110,
390
],
"size": {
"0": 210,
"1": 46
},
"flags": {
"collapsed": false
},
"order": 36,
"mode": 2,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 699
},
{
"name": "mask",
"type": "MASK",
"link": 697
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
701
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "SetLatentNoiseMask"
}
},
{
"id": 446,
"type": "VAEEncode",
"pos": [
1870,
390
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 28,
"mode": 2,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 698
},
{
"name": "vae",
"type": "VAE",
"link": 700
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
699
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEEncode"
}
},
{
"id": 415,
"type": "PreviewImage",
"pos": [
2250,
1080
],
"size": {
"0": 210,
"1": 250
},
"flags": {},
"order": 37,
"mode": 2,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 652
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 403,
"type": "ImageBlend",
"pos": [
1920,
1090
],
"size": {
"0": 315,
"1": 102
},
"flags": {},
"order": 35,
"mode": 2,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 707
},
{
"name": "image2",
"type": "IMAGE",
"link": 706
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
652
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageBlend"
},
"widgets_values": [
0.5,
"normal"
]
},
{
"id": 308,
"type": "ImageScale",
"pos": [
1860,
840
],
"size": {
"0": 210,
"1": 122
},
"flags": {},
"order": 32,
"mode": 2,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 475
},
{
"name": "width",
"type": "INT",
"link": 710,
"widget": {
"name": "width",
"config": [
"INT",
{
"default": 512,
"min": 1,
"max": 8192,
"step": 1
}
]
}
},
{
"name": "height",
"type": "INT",
"link": 711,
"widget": {
"name": "height",
"config": [
"INT",
{
"default": 512,
"min": 1,
"max": 8192,
"step": 1
}
]
}
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
658,
706
],
"shape": 3,
"slot_index": 0
}
],
"title": "Upscale Mask",
"properties": {
"Node name for S&R": "ImageScale"
},
"widgets_values": [
"bilinear",
512,
512,
"disabled"
]
},
{
"id": 410,
"type": "ImageScale",
"pos": [
1370,
680
],
"size": {
"0": 210,
"1": 122
},
"flags": {},
"order": 23,
"mode": 2,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 645
},
{
"name": "width",
"type": "INT",
"link": 708,
"widget": {
"name": "width",
"config": [
"INT",
{
"default": 512,
"min": 1,
"max": 8192,
"step": 1
}
]
}
},
{
"name": "height",
"type": "INT",
"link": 709,
"widget": {
"name": "height",
"config": [
"INT",
{
"default": 512,
"min": 1,
"max": 8192,
"step": 1
}
]
}
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
698,
707
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageScale"
},
"widgets_values": [
"bilinear",
512,
512,
"disabled"
]
},
{
"id": 31,
"type": "Constant Number",
"pos": [
190,
510
],
"size": {
"0": 210,
"1": 122
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "NUMBER",
"type": "NUMBER",
"links": [],
"shape": 3,
"slot_index": 0
},
{
"name": "FLOAT",
"type": "FLOAT",
"links": [],
"shape": 3,
"slot_index": 1
},
{
"name": "INT",
"type": "INT",
"links": [
147,
648
],
"shape": 3,
"slot_index": 2
}
],
"title": "width",
"properties": {
"Node name for S&R": "Constant Number"
},
"widgets_values": [
"integer",
512
]
},
{
"id": 32,
"type": "Constant Number",
"pos": [
190,
660
],
"size": {
"0": 210,
"1": 122
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "NUMBER",
"type": "NUMBER",
"links": [],
"shape": 3,
"slot_index": 0
},
{
"name": "FLOAT",
"type": "FLOAT",
"links": [],
"shape": 3,
"slot_index": 1
},
{
"name": "INT",
"type": "INT",
"links": [
148,
665
],
"shape": 3,
"slot_index": 2
}
],
"title": "height",
"properties": {
"Node name for S&R": "Constant Number"
},
"widgets_values": [
"integer",
768
]
},
{
"id": 411,
"type": "Reroute",
"pos": [
450,
970
],
"size": [
75,
26
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 648
}
],
"outputs": [
{
"name": "",
"type": "INT",
"links": [
650
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 413,
"type": "Reroute",
"pos": [
1270,
970
],
"size": [
75,
26
],
"flags": {},
"order": 14,
"mode": 2,
"inputs": [
{
"name": "",
"type": "*",
"link": 650
}
],
"outputs": [
{
"name": "",
"type": "INT",
"links": [
708,
709,
710,
711
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 414,
"type": "Reroute",
"pos": [
1270,
1000
],
"size": [
75,
26
],
"flags": {},
"order": 15,
"mode": 2,
"inputs": [
{
"name": "",
"type": "*",
"link": 651
}
],
"outputs": [
{
"name": "",
"type": "INT",
"links": [],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 94,
"type": "Mask Crop Region",
"pos": [
890,
660
],
"size": {
"0": 210,
"1": 222
},
"flags": {},
"order": 5,
"mode": 2,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 149
}
],
"outputs": [
{
"name": "cropped_mask",
"type": "MASK",
"links": [
499
],
"shape": 3,
"slot_index": 0
},
{
"name": "crop_data",
"type": "CROP_DATA",
"links": [],
"shape": 3,
"slot_index": 1
},
{
"name": "top_int",
"type": "INT",
"links": [
464
],
"shape": 3,
"slot_index": 2
},
{
"name": "left_int",
"type": "INT",
"links": [
465
],
"shape": 3,
"slot_index": 3
},
{
"name": "right_int",
"type": "INT",
"links": [
466
],
"shape": 3,
"slot_index": 4
},
{
"name": "bottom_int",
"type": "INT",
"links": [
467
],
"shape": 3,
"slot_index": 5
},
{
"name": "width_int",
"type": "INT",
"links": [],
"shape": 3,
"slot_index": 6
},
{
"name": "height_int",
"type": "INT",
"links": [],
"shape": 3,
"slot_index": 7
}
],
"properties": {
"Node name for S&R": "Mask Crop Region"
},
"widgets_values": [
32,
"dominant"
]
},
{
"id": 34,
"type": "PreviewImage",
"pos": [
450,
460
],
"size": {
"0": 380,
"1": 470
},
"flags": {},
"order": 33,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 29
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 13,
"type": "CheckpointLoaderSimple",
"pos": [
-640,
-100
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
45
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
687
],
"shape": 3,
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
31
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"majicmixRealistic_betterV2V25.safetensors"
]
},
{
"id": 92,
"type": "LoadImage",
"pos": [
870,
30
],
"size": {
"0": 440,
"1": 580
},
"flags": {},
"order": 0,
"mode": 2,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
470,
694
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [
149
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"example.png",
"image"
]
},
{
"id": 444,
"type": "LoadImage",
"pos": [
2880,
310
],
"size": {
"0": 430,
"1": 680
},
"flags": {},
"order": 1,
"mode": 2,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": null,
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"example.png",
"image"
]
}
],
"links": [
[
29,
33,
0,
34,
0,
"IMAGE"
],
[
31,
13,
2,
35,
0,
"*"
],
[
45,
13,
0,
42,
0,
"*"
],
[
46,
42,
0,
25,
0,
"MODEL"
],
[
79,
25,
0,
33,
0,
"LATENT"
],
[
90,
35,
0,
33,
1,
"VAE"
],
[
146,
91,
0,
25,
3,
"LATENT"
],
[
147,
31,
2,
91,
0,
"INT"
],
[
148,
32,
2,
91,
1,
"INT"
],
[
149,
92,
1,
94,
0,
"MASK"
],
[
456,
298,
1,
285,
2,
"CROP_DATA"
],
[
464,
94,
2,
298,
1,
"INT"
],
[
465,
94,
3,
298,
2,
"INT"
],
[
466,
94,
4,
298,
3,
"INT"
],
[
467,
94,
5,
298,
4,
"INT"
],
[
470,
92,
0,
298,
0,
"IMAGE"
],
[
475,
290,
0,
308,
0,
"IMAGE"
],
[
491,
95,
0,
103,
0,
"MASK"
],
[
499,
94,
0,
95,
0,
"MASK"
],
[
558,
356,
0,
357,
0,
"LATENT"
],
[
560,
357,
0,
358,
0,
"IMAGE"
],
[
639,
103,
0,
290,
0,
"MASK"
],
[
645,
298,
0,
410,
0,
"IMAGE"
],
[
648,
31,
2,
411,
0,
"*"
],
[
650,
411,
0,
413,
0,
"*"
],
[
651,
412,
0,
414,
0,
"*"
],
[
652,
403,
0,
415,
0,
"IMAGE"
],
[
658,
308,
0,
316,
0,
"IMAGE"
],
[
659,
14,
0,
416,
0,
"CLIP"
],
[
660,
14,
0,
417,
0,
"CLIP"
],
[
661,
416,
0,
25,
1,
"CONDITIONING"
],
[
662,
417,
0,
25,
2,
"CONDITIONING"
],
[
663,
416,
0,
418,
0,
"*"
],
[
664,
417,
0,
419,
0,
"*"
],
[
665,
32,
2,
412,
0,
"*"
],
[
666,
42,
0,
420,
0,
"*"
],
[
667,
420,
0,
356,
0,
"MODEL"
],
[
668,
418,
0,
421,
0,
"*"
],
[
669,
419,
0,
422,
0,
"*"
],
[
670,
422,
0,
356,
2,
"CONDITIONING"
],
[
671,
421,
0,
356,
1,
"CONDITIONING"
],
[
672,
35,
0,
423,
0,
"*"
],
[
673,
423,
0,
357,
1,
"VAE"
],
[
678,
298,
0,
427,
0,
"IMAGE"
],
[
683,
357,
0,
426,
0,
"IMAGE"
],
[
687,
13,
1,
14,
0,
"CLIP"
],
[
688,
298,
0,
439,
0,
"IMAGE"
],
[
689,
439,
4,
426,
1,
"INT"
],
[
690,
439,
5,
426,
2,
"INT"
],
[
691,
285,
0,
440,
0,
"IMAGE"
],
[
693,
426,
0,
285,
1,
"IMAGE"
],
[
694,
92,
0,
285,
0,
"IMAGE"
],
[
696,
426,
0,
443,
0,
"IMAGE"
],
[
697,
316,
0,
445,
1,
"MASK"
],
[
698,
410,
0,
446,
0,
"IMAGE"
],
[
699,
446,
0,
445,
0,
"LATENT"
],
[
700,
423,
0,
446,
1,
"VAE"
],
[
701,
445,
0,
356,
3,
"LATENT"
],
[
706,
308,
0,
403,
1,
"IMAGE"
],
[
707,
410,
0,
403,
0,
"IMAGE"
],
[
708,
413,
0,
410,
1,
"INT"
],
[
709,
413,
0,
410,
2,
"INT"
],
[
710,
413,
0,
308,
1,
"INT"
],
[
711,
413,
0,
308,
2,
"INT"
]
],
"groups": [
{
"title": "Txt2Img",
"bounding": [
0,
-34,
850,
1005
],
"color": "#444",
"locked": false
},
{
"title": "Img2Img",
"bounding": [
870,
-33,
1532,
1003
],
"color": "#444",
"locked": false
}
],
"config": {},
"extra": {},
"version": 0.4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment