Advertisement
MunchkinT

workflow SDXL - Union Repaint Masked Only

Oct 4th, 2024
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 17.55 KB | Software | 0 0
  1. {
  2.   "last_node_id": 33,
  3.   "last_link_id": 95,
  4.   "nodes": [
  5.     {
  6.       "id": 8,
  7.       "type": "CLIPTextEncode",
  8.       "pos": {
  9.         "0": 794,
  10.         "1": 323
  11.       },
  12.       "size": {
  13.         "0": 380.0229187011719,
  14.         "1": 76
  15.       },
  16.       "flags": {},
  17.       "order": 7,
  18.       "mode": 0,
  19.       "inputs": [
  20.         {
  21.           "name": "clip",
  22.           "type": "CLIP",
  23.           "link": 42
  24.         }
  25.       ],
  26.       "outputs": [
  27.         {
  28.           "name": "CONDITIONING",
  29.           "type": "CONDITIONING",
  30.           "links": [
  31.             49
  32.           ],
  33.           "shape": 3
  34.         }
  35.       ],
  36.       "properties": {
  37.         "Node name for S&R": "CLIPTextEncode"
  38.       },
  39.       "widgets_values": [
  40.         "bad quality, low resolution, blurry"
  41.       ]
  42.     },
  43.     {
  44.       "id": 14,
  45.       "type": "ControlNetApplyAdvanced",
  46.       "pos": {
  47.         "0": 1264,
  48.         "1": 266
  49.       },
  50.       "size": {
  51.         "0": 315,
  52.         "1": 186
  53.       },
  54.       "flags": {},
  55.       "order": 12,
  56.       "mode": 0,
  57.       "inputs": [
  58.         {
  59.           "name": "positive",
  60.           "type": "CONDITIONING",
  61.           "link": 48
  62.         },
  63.         {
  64.           "name": "negative",
  65.           "type": "CONDITIONING",
  66.           "link": 49
  67.         },
  68.         {
  69.           "name": "control_net",
  70.           "type": "CONTROL_NET",
  71.           "link": 50
  72.         },
  73.         {
  74.           "name": "image",
  75.           "type": "IMAGE",
  76.           "link": 51
  77.         },
  78.         {
  79.           "name": "vae",
  80.           "type": "VAE",
  81.           "link": null
  82.         }
  83.       ],
  84.       "outputs": [
  85.         {
  86.           "name": "positive",
  87.           "type": "CONDITIONING",
  88.           "links": [
  89.             74
  90.           ],
  91.           "slot_index": 0,
  92.           "shape": 3
  93.         },
  94.         {
  95.           "name": "negative",
  96.           "type": "CONDITIONING",
  97.           "links": [
  98.             75
  99.           ],
  100.           "slot_index": 1,
  101.           "shape": 3
  102.         }
  103.       ],
  104.       "properties": {
  105.         "Node name for S&R": "ControlNetApplyAdvanced"
  106.       },
  107.       "widgets_values": [
  108.         1,
  109.         0,
  110.         1
  111.       ]
  112.     },
  113.     {
  114.       "id": 9,
  115.       "type": "EmptyImage",
  116.       "pos": {
  117.         "0": 619,
  118.         "1": 747
  119.       },
  120.       "size": {
  121.         "0": 226.90933227539062,
  122.         "1": 130
  123.       },
  124.       "flags": {},
  125.       "order": 0,
  126.       "mode": 0,
  127.       "inputs": [],
  128.       "outputs": [
  129.         {
  130.           "name": "IMAGE",
  131.           "type": "IMAGE",
  132.           "links": [
  133.             45
  134.           ],
  135.           "shape": 3
  136.         }
  137.       ],
  138.       "properties": {
  139.         "Node name for S&R": "EmptyImage"
  140.       },
  141.       "widgets_values": [
  142.         1024,
  143.         1024,
  144.         1,
  145.         0
  146.       ]
  147.     },
  148.     {
  149.       "id": 10,
  150.       "type": "ThresholdMask",
  151.       "pos": {
  152.         "0": 532,
  153.         "1": 920
  154.       },
  155.       "size": {
  156.         "0": 315,
  157.         "1": 58
  158.       },
  159.       "flags": {},
  160.       "order": 9,
  161.       "mode": 0,
  162.       "inputs": [
  163.         {
  164.           "name": "mask",
  165.           "type": "MASK",
  166.           "link": 94
  167.         }
  168.       ],
  169.       "outputs": [
  170.         {
  171.           "name": "MASK",
  172.           "type": "MASK",
  173.           "links": [
  174.             46
  175.           ],
  176.           "shape": 3
  177.         }
  178.       ],
  179.       "properties": {
  180.         "Node name for S&R": "ThresholdMask"
  181.       },
  182.       "widgets_values": [
  183.         0.5
  184.       ]
  185.     },
  186.     {
  187.       "id": 13,
  188.       "type": "SetUnionControlNetType",
  189.       "pos": {
  190.         "0": 835,
  191.         "1": 626
  192.       },
  193.       "size": {
  194.         "0": 315,
  195.         "1": 58
  196.       },
  197.       "flags": {},
  198.       "order": 4,
  199.       "mode": 0,
  200.       "inputs": [
  201.         {
  202.           "name": "control_net",
  203.           "type": "CONTROL_NET",
  204.           "link": 47
  205.         }
  206.       ],
  207.       "outputs": [
  208.         {
  209.           "name": "CONTROL_NET",
  210.           "type": "CONTROL_NET",
  211.           "links": [
  212.             50
  213.           ],
  214.           "shape": 3
  215.         }
  216.       ],
  217.       "properties": {
  218.         "Node name for S&R": "SetUnionControlNetType"
  219.       },
  220.       "widgets_values": [
  221.         "repaint"
  222.       ]
  223.     },
  224.     {
  225.       "id": 11,
  226.       "type": "ImageCompositeMasked",
  227.       "pos": {
  228.         "0": 944,
  229.         "1": 740
  230.       },
  231.       "size": {
  232.         "0": 315,
  233.         "1": 146
  234.       },
  235.       "flags": {},
  236.       "order": 11,
  237.       "mode": 0,
  238.       "inputs": [
  239.         {
  240.           "name": "destination",
  241.           "type": "IMAGE",
  242.           "link": 95
  243.         },
  244.         {
  245.           "name": "source",
  246.           "type": "IMAGE",
  247.           "link": 45
  248.         },
  249.         {
  250.           "name": "mask",
  251.           "type": "MASK",
  252.           "link": 46
  253.         }
  254.       ],
  255.       "outputs": [
  256.         {
  257.           "name": "IMAGE",
  258.           "type": "IMAGE",
  259.           "links": [
  260.             51,
  261.             85
  262.           ],
  263.           "slot_index": 0,
  264.           "shape": 3
  265.         }
  266.       ],
  267.       "properties": {
  268.         "Node name for S&R": "ImageCompositeMasked"
  269.       },
  270.       "widgets_values": [
  271.         0,
  272.         0,
  273.         false
  274.       ]
  275.     },
  276.     {
  277.       "id": 16,
  278.       "type": "SetLatentNoiseMask",
  279.       "pos": {
  280.         "0": 838,
  281.         "1": 522
  282.       },
  283.       "size": {
  284.         "0": 210,
  285.         "1": 46
  286.       },
  287.       "flags": {},
  288.       "order": 10,
  289.       "mode": 0,
  290.       "inputs": [
  291.         {
  292.           "name": "samples",
  293.           "type": "LATENT",
  294.           "link": 54
  295.         },
  296.         {
  297.           "name": "mask",
  298.           "type": "MASK",
  299.           "link": 93
  300.         }
  301.       ],
  302.       "outputs": [
  303.         {
  304.           "name": "LATENT",
  305.           "type": "LATENT",
  306.           "links": [
  307.             76
  308.           ],
  309.           "slot_index": 0,
  310.           "shape": 3
  311.         }
  312.       ],
  313.       "properties": {
  314.         "Node name for S&R": "SetLatentNoiseMask"
  315.       },
  316.       "widgets_values": []
  317.     },
  318.     {
  319.       "id": 15,
  320.       "type": "VAEEncode",
  321.       "pos": {
  322.         "0": 548,
  323.         "1": 409
  324.       },
  325.       "size": {
  326.         "0": 210,
  327.         "1": 46
  328.       },
  329.       "flags": {},
  330.       "order": 8,
  331.       "mode": 0,
  332.       "inputs": [
  333.         {
  334.           "name": "pixels",
  335.           "type": "IMAGE",
  336.           "link": 90
  337.         },
  338.         {
  339.           "name": "vae",
  340.           "type": "VAE",
  341.           "link": 52
  342.         }
  343.       ],
  344.       "outputs": [
  345.         {
  346.           "name": "LATENT",
  347.           "type": "LATENT",
  348.           "links": [
  349.             54
  350.           ],
  351.           "shape": 3
  352.         }
  353.       ],
  354.       "properties": {
  355.         "Node name for S&R": "VAEEncode"
  356.       },
  357.       "widgets_values": []
  358.     },
  359.     {
  360.       "id": 31,
  361.       "type": "PreviewImage",
  362.       "pos": {
  363.         "0": 1382,
  364.         "1": 618
  365.       },
  366.       "size": {
  367.         "0": 210,
  368.         "1": 246
  369.       },
  370.       "flags": {},
  371.       "order": 13,
  372.       "mode": 0,
  373.       "inputs": [
  374.         {
  375.           "name": "images",
  376.           "type": "IMAGE",
  377.           "link": 85,
  378.           "slot_index": 0
  379.         }
  380.       ],
  381.       "outputs": [],
  382.       "properties": {
  383.         "Node name for S&R": "PreviewImage"
  384.       },
  385.       "widgets_values": []
  386.     },
  387.     {
  388.       "id": 23,
  389.       "type": "VAEDecode",
  390.       "pos": {
  391.         "0": 1980,
  392.         "1": 268
  393.       },
  394.       "size": {
  395.         "0": 210,
  396.         "1": 46
  397.       },
  398.       "flags": {},
  399.       "order": 15,
  400.       "mode": 0,
  401.       "inputs": [
  402.         {
  403.           "name": "samples",
  404.           "type": "LATENT",
  405.           "link": 77
  406.         },
  407.         {
  408.           "name": "vae",
  409.           "type": "VAE",
  410.           "link": 66
  411.         }
  412.       ],
  413.       "outputs": [
  414.         {
  415.           "name": "IMAGE",
  416.           "type": "IMAGE",
  417.           "links": [
  418.             91
  419.           ],
  420.           "slot_index": 0,
  421.           "shape": 3
  422.         }
  423.       ],
  424.       "properties": {
  425.         "Node name for S&R": "VAEDecode"
  426.       },
  427.       "widgets_values": []
  428.     },
  429.     {
  430.       "id": 33,
  431.       "type": "InpaintStitch",
  432.       "pos": {
  433.         "0": 2302,
  434.         "1": 218
  435.       },
  436.       "size": {
  437.         "0": 210,
  438.         "1": 78
  439.       },
  440.       "flags": {},
  441.       "order": 16,
  442.       "mode": 0,
  443.       "inputs": [
  444.         {
  445.           "name": "stitch",
  446.           "type": "STITCH",
  447.           "link": 87
  448.         },
  449.         {
  450.           "name": "inpainted_image",
  451.           "type": "IMAGE",
  452.           "link": 91
  453.         }
  454.       ],
  455.       "outputs": [
  456.         {
  457.           "name": "image",
  458.           "type": "IMAGE",
  459.           "links": [
  460.             92
  461.           ],
  462.           "slot_index": 0,
  463.           "shape": 3
  464.         }
  465.       ],
  466.       "properties": {
  467.         "Node name for S&R": "InpaintStitch"
  468.       },
  469.       "widgets_values": [
  470.         "bislerp"
  471.       ]
  472.     },
  473.     {
  474.       "id": 29,
  475.       "type": "PreviewImage",
  476.       "pos": {
  477.         "0": 2266,
  478.         "1": 494
  479.       },
  480.       "size": {
  481.         "0": 444.41131591796875,
  482.         "1": 448.2503967285156
  483.       },
  484.       "flags": {},
  485.       "order": 17,
  486.       "mode": 0,
  487.       "inputs": [
  488.         {
  489.           "name": "images",
  490.           "type": "IMAGE",
  491.           "link": 92,
  492.           "slot_index": 0
  493.         }
  494.       ],
  495.       "outputs": [],
  496.       "properties": {
  497.         "Node name for S&R": "PreviewImage"
  498.       },
  499.       "widgets_values": []
  500.     },
  501.     {
  502.       "id": 7,
  503.       "type": "CLIPTextEncode",
  504.       "pos": {
  505.         "0": 780,
  506.         "1": 197
  507.       },
  508.       "size": {
  509.         "0": 400.87933349609375,
  510.         "1": 81.98371124267578
  511.       },
  512.       "flags": {},
  513.       "order": 6,
  514.       "mode": 0,
  515.       "inputs": [
  516.         {
  517.           "name": "clip",
  518.           "type": "CLIP",
  519.           "link": 41
  520.         }
  521.       ],
  522.       "outputs": [
  523.         {
  524.           "name": "CONDITIONING",
  525.           "type": "CONDITIONING",
  526.           "links": [
  527.             48
  528.           ],
  529.           "shape": 3
  530.         }
  531.       ],
  532.       "properties": {
  533.         "Node name for S&R": "CLIPTextEncode"
  534.       },
  535.       "widgets_values": [
  536.         "a woman, up close, park"
  537.       ]
  538.     },
  539.     {
  540.       "id": 12,
  541.       "type": "ControlNetLoader",
  542.       "pos": {
  543.         "0": 226,
  544.         "1": 597
  545.       },
  546.       "size": {
  547.         "0": 487.1623229980469,
  548.         "1": 61.75481033325195
  549.       },
  550.       "flags": {},
  551.       "order": 1,
  552.       "mode": 0,
  553.       "inputs": [],
  554.       "outputs": [
  555.         {
  556.           "name": "CONTROL_NET",
  557.           "type": "CONTROL_NET",
  558.           "links": [
  559.             47
  560.           ],
  561.           "shape": 3
  562.         }
  563.       ],
  564.       "properties": {
  565.         "Node name for S&R": "ControlNetLoader"
  566.       },
  567.       "widgets_values": [
  568.         "xinsir\\diffusion_pytorch_model_promax.safetensors"
  569.       ]
  570.     },
  571.     {
  572.       "id": 30,
  573.       "type": "LoadImage",
  574.       "pos": {
  575.         "0": -513,
  576.         "1": 150
  577.       },
  578.       "size": {
  579.         "0": 315,
  580.         "1": 314
  581.       },
  582.       "flags": {},
  583.       "order": 2,
  584.       "mode": 0,
  585.       "inputs": [],
  586.       "outputs": [
  587.         {
  588.           "name": "IMAGE",
  589.           "type": "IMAGE",
  590.           "links": [
  591.             88
  592.           ],
  593.           "slot_index": 0,
  594.           "shape": 3
  595.         },
  596.         {
  597.           "name": "MASK",
  598.           "type": "MASK",
  599.           "links": [
  600.             89
  601.           ],
  602.           "slot_index": 1,
  603.           "shape": 3
  604.         }
  605.       ],
  606.       "properties": {
  607.         "Node name for S&R": "LoadImage"
  608.       },
  609.       "widgets_values": [
  610.         "clipspace/clipspace-mask-10340029.png [input]",
  611.         "image"
  612.       ]
  613.     },
  614.     {
  615.       "id": 1,
  616.       "type": "CheckpointLoaderSimple",
  617.       "pos": {
  618.         "0": 169,
  619.         "1": 117
  620.       },
  621.       "size": {
  622.         "0": 444.93963623046875,
  623.         "1": 99.7787094116211
  624.       },
  625.       "flags": {},
  626.       "order": 3,
  627.       "mode": 0,
  628.       "inputs": [],
  629.       "outputs": [
  630.         {
  631.           "name": "MODEL",
  632.           "type": "MODEL",
  633.           "links": [
  634.             86
  635.           ],
  636.           "shape": 3
  637.         },
  638.         {
  639.           "name": "CLIP",
  640.           "type": "CLIP",
  641.           "links": [
  642.             41,
  643.             42
  644.           ],
  645.           "shape": 3
  646.         },
  647.         {
  648.           "name": "VAE",
  649.           "type": "VAE",
  650.           "links": [
  651.             52,
  652.             66
  653.           ],
  654.           "shape": 3
  655.         }
  656.       ],
  657.       "properties": {
  658.         "Node name for S&R": "CheckpointLoaderSimple"
  659.       },
  660.       "widgets_values": [
  661.         "XL\\nightvisionxl_V900.safetensors"
  662.       ]
  663.     },
  664.     {
  665.       "id": 28,
  666.       "type": "KSampler",
  667.       "pos": {
  668.         "0": 1663,
  669.         "1": 265
  670.       },
  671.       "size": [
  672.         286.62933349609375,
  673.         474
  674.       ],
  675.       "flags": {},
  676.       "order": 14,
  677.       "mode": 0,
  678.       "inputs": [
  679.         {
  680.           "name": "model",
  681.           "type": "MODEL",
  682.           "link": 86
  683.         },
  684.         {
  685.           "name": "positive",
  686.           "type": "CONDITIONING",
  687.           "link": 74
  688.         },
  689.         {
  690.           "name": "negative",
  691.           "type": "CONDITIONING",
  692.           "link": 75
  693.         },
  694.         {
  695.           "name": "latent_image",
  696.           "type": "LATENT",
  697.           "link": 76
  698.         }
  699.       ],
  700.       "outputs": [
  701.         {
  702.           "name": "LATENT",
  703.           "type": "LATENT",
  704.           "links": [
  705.             77
  706.           ],
  707.           "slot_index": 0,
  708.           "shape": 3
  709.         }
  710.       ],
  711.       "properties": {
  712.         "Node name for S&R": "KSampler"
  713.       },
  714.       "widgets_values": [
  715.         4213,
  716.         "fixed",
  717.         20,
  718.         3,
  719.         "dpmpp_2m",
  720.         "karras",
  721.         1
  722.       ]
  723.     },
  724.     {
  725.       "id": 32,
  726.       "type": "InpaintCrop",
  727.       "pos": {
  728.         "0": -148,
  729.         "1": 288
  730.       },
  731.       "size": [
  732.         320,
  733.         386
  734.       ],
  735.       "flags": {},
  736.       "order": 5,
  737.       "mode": 0,
  738.       "inputs": [
  739.         {
  740.           "name": "image",
  741.           "type": "IMAGE",
  742.           "link": 88
  743.         },
  744.         {
  745.           "name": "mask",
  746.           "type": "MASK",
  747.           "link": 89
  748.         },
  749.         {
  750.           "name": "optional_context_mask",
  751.           "type": "MASK",
  752.           "link": null
  753.         }
  754.       ],
  755.       "outputs": [
  756.         {
  757.           "name": "stitch",
  758.           "type": "STITCH",
  759.           "links": [
  760.             87
  761.           ],
  762.           "slot_index": 0,
  763.           "shape": 3
  764.         },
  765.         {
  766.           "name": "cropped_image",
  767.           "type": "IMAGE",
  768.           "links": [
  769.             90,
  770.             95
  771.           ],
  772.           "slot_index": 1,
  773.           "shape": 3
  774.         },
  775.         {
  776.           "name": "cropped_mask",
  777.           "type": "MASK",
  778.           "links": [
  779.             93,
  780.             94
  781.           ],
  782.           "slot_index": 2,
  783.           "shape": 3
  784.         }
  785.       ],
  786.       "properties": {
  787.         "Node name for S&R": "InpaintCrop"
  788.       },
  789.       "widgets_values": [
  790.         20,
  791.         1,
  792.         true,
  793.         16,
  794.         false,
  795.         16,
  796.         "bicubic",
  797.         "ranged size",
  798.         1024,
  799.         1024,
  800.         1,
  801.         1024,
  802.         1024,
  803.         1024,
  804.         1024,
  805.         64
  806.       ]
  807.     }
  808.   ],
  809.   "links": [
  810.     [
  811.       41,
  812.       1,
  813.       1,
  814.       7,
  815.       0,
  816.       "CLIP"
  817.     ],
  818.     [
  819.       42,
  820.       1,
  821.       1,
  822.       8,
  823.       0,
  824.       "CLIP"
  825.     ],
  826.     [
  827.       45,
  828.       9,
  829.       0,
  830.       11,
  831.       1,
  832.       "IMAGE"
  833.     ],
  834.     [
  835.       46,
  836.       10,
  837.       0,
  838.       11,
  839.       2,
  840.       "MASK"
  841.     ],
  842.     [
  843.       47,
  844.       12,
  845.       0,
  846.       13,
  847.       0,
  848.       "CONTROL_NET"
  849.     ],
  850.     [
  851.       48,
  852.       7,
  853.       0,
  854.       14,
  855.       0,
  856.       "CONDITIONING"
  857.     ],
  858.     [
  859.       49,
  860.       8,
  861.       0,
  862.       14,
  863.       1,
  864.       "CONDITIONING"
  865.     ],
  866.     [
  867.       50,
  868.       13,
  869.       0,
  870.       14,
  871.       2,
  872.       "CONTROL_NET"
  873.     ],
  874.     [
  875.       51,
  876.       11,
  877.       0,
  878.       14,
  879.       3,
  880.       "IMAGE"
  881.     ],
  882.     [
  883.       52,
  884.       1,
  885.       2,
  886.       15,
  887.       1,
  888.       "VAE"
  889.     ],
  890.     [
  891.       54,
  892.       15,
  893.       0,
  894.       16,
  895.       0,
  896.       "LATENT"
  897.     ],
  898.     [
  899.       66,
  900.       1,
  901.       2,
  902.       23,
  903.       1,
  904.       "VAE"
  905.     ],
  906.     [
  907.       74,
  908.       14,
  909.       0,
  910.       28,
  911.       1,
  912.       "CONDITIONING"
  913.     ],
  914.     [
  915.       75,
  916.       14,
  917.       1,
  918.       28,
  919.       2,
  920.       "CONDITIONING"
  921.     ],
  922.     [
  923.       76,
  924.       16,
  925.       0,
  926.       28,
  927.       3,
  928.       "LATENT"
  929.     ],
  930.     [
  931.       77,
  932.       28,
  933.       0,
  934.       23,
  935.       0,
  936.       "LATENT"
  937.     ],
  938.     [
  939.       85,
  940.       11,
  941.       0,
  942.       31,
  943.       0,
  944.       "IMAGE"
  945.     ],
  946.     [
  947.       86,
  948.       1,
  949.       0,
  950.       28,
  951.       0,
  952.       "MODEL"
  953.     ],
  954.     [
  955.       87,
  956.       32,
  957.       0,
  958.       33,
  959.       0,
  960.       "STITCH"
  961.     ],
  962.     [
  963.       88,
  964.       30,
  965.       0,
  966.       32,
  967.       0,
  968.       "IMAGE"
  969.     ],
  970.     [
  971.       89,
  972.       30,
  973.       1,
  974.       32,
  975.       1,
  976.       "MASK"
  977.     ],
  978.     [
  979.       90,
  980.       32,
  981.       1,
  982.       15,
  983.       0,
  984.       "IMAGE"
  985.     ],
  986.     [
  987.       91,
  988.       23,
  989.       0,
  990.       33,
  991.       1,
  992.       "IMAGE"
  993.     ],
  994.     [
  995.       92,
  996.       33,
  997.       0,
  998.       29,
  999.       0,
  1000.       "IMAGE"
  1001.     ],
  1002.     [
  1003.       93,
  1004.       32,
  1005.       2,
  1006.       16,
  1007.       1,
  1008.       "MASK"
  1009.     ],
  1010.     [
  1011.       94,
  1012.       32,
  1013.       2,
  1014.       10,
  1015.       0,
  1016.       "MASK"
  1017.     ],
  1018.     [
  1019.       95,
  1020.       32,
  1021.       1,
  1022.       11,
  1023.       0,
  1024.       "IMAGE"
  1025.     ]
  1026.   ],
  1027.   "groups": [],
  1028.   "config": {},
  1029.   "extra": {
  1030.     "ds": {
  1031.       "scale": 0.7247295000000009,
  1032.       "offset": [
  1033.         1174.8114872739734,
  1034.         451.7827695859561
  1035.       ]
  1036.     }
  1037.   },
  1038.   "version": 0.4
  1039. }
Tags: ComfyUI
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement