{
  "id": "a43632b1-a554-4c59-b6fc-8f775301a92a",
  "revision": 0,
  "last_node_id": 255,
  "last_link_id": 730,
  "nodes": [
    {
      "id": 234,
      "type": "VAEDecode",
      "pos": [
        6070,
        1680
      ],
      "size": [
        250,
        50
      ],
      "flags": {},
      "order": 19,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 674
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 675
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            673
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.28",
        "Node name for S&R": "VAEDecode",
        "widget_ue_connectable": {}
      },
      "widgets_values": []
    },
    {
      "id": 235,
      "type": "CLIPTextEncode",
      "pos": [
        5410,
        1310
      ],
      "size": [
        340,
        200
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 676
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            679
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.28",
        "Node name for S&R": "CLIPTextEncode",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "hair"
      ]
    },
    {
      "id": 237,
      "type": "InpaintModelConditioning",
      "pos": [
        5760,
        1740
      ],
      "size": [
        290,
        138
      ],
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 678
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 679
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 680
        },
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 681
        },
        {
          "name": "mask",
          "type": "MASK",
          "link": 682
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "links": [
            684
          ]
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "links": [
            685
          ]
        },
        {
          "name": "latent",
          "type": "LATENT",
          "links": [
            686
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.28",
        "Node name for S&R": "InpaintModelConditioning",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        true
      ]
    },
    {
      "id": 222,
      "type": "PreviewImage",
      "pos": [
        6359.87941060109,
        -35.15011703333139
      ],
      "size": [
        580,
        950
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 728
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.14.1",
        "Node name for S&R": "PreviewImage"
      },
      "widgets_values": [],
      "color": "#222",
      "bgcolor": "#000"
    },
    {
      "id": 245,
      "type": "CLIPTextEncode",
      "pos": [
        5410,
        210
      ],
      "size": [
        340,
        200
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 723
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            713
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.28",
        "Node name for S&R": "CLIPTextEncode",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "hair"
      ]
    },
    {
      "id": 247,
      "type": "InpaintModelConditioning",
      "pos": [
        5760,
        640
      ],
      "size": [
        290,
        138
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 712
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 713
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 722
        },
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 714
        },
        {
          "name": "mask",
          "type": "MASK",
          "link": 715
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "links": [
            716
          ]
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "links": [
            717
          ]
        },
        {
          "name": "latent",
          "type": "LATENT",
          "links": [
            718
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.28",
        "Node name for S&R": "InpaintModelConditioning",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        true
      ]
    },
    {
      "id": 244,
      "type": "VAEDecode",
      "pos": [
        6070,
        570
      ],
      "size": [
        250,
        50
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 711
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 721
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            720
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.28",
        "Node name for S&R": "VAEDecode",
        "widget_ue_connectable": {}
      },
      "widgets_values": []
    },
    {
      "id": 249,
      "type": "InpaintStitchImproved",
      "pos": [
        6070,
        660
      ],
      "size": [
        250,
        46
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "stitcher",
          "type": "STITCHER",
          "link": 719
        },
        {
          "name": "inpainted_image",
          "type": "IMAGE",
          "link": 720
        }
      ],
      "outputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "links": [
            728,
            729
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-inpaint-cropandstitch",
        "ver": "2.1.7",
        "Node name for S&R": "InpaintStitchImproved",
        "widget_ue_connectable": {}
      },
      "widgets_values": []
    },
    {
      "id": 1,
      "type": "CheckpointLoaderSimple",
      "pos": [
        5123.859711954111,
        -32.10790207267878
      ],
      "size": [
        270,
        98
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            725
          ]
        },
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            723,
            724
          ]
        },
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            675,
            680,
            721,
            722
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.18.1",
        "Node name for S&R": "CheckpointLoaderSimple"
      },
      "widgets_values": [
        "lustify_v8_apex_inpainting_00001_.safetensors"
      ]
    },
    {
      "id": 2,
      "type": "CheckpointLoaderSimple",
      "pos": [
        5129.591124981521,
        1074.324951184173
      ],
      "size": [
        270,
        98
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            690
          ]
        },
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            676,
            677
          ]
        },
        {
          "name": "VAE",
          "type": "VAE",
          "links": []
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.18.1",
        "Node name for S&R": "CheckpointLoaderSimple"
      },
      "widgets_values": [
        "lustifySDXLNSFW_apexV8.safetensors"
      ]
    },
    {
      "id": 250,
      "type": "InpaintCropImproved",
      "pos": [
        5760,
        -30
      ],
      "size": [
        297.44140625,
        626
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 726
        },
        {
          "name": "mask",
          "shape": 7,
          "type": "MASK",
          "link": 727
        },
        {
          "name": "optional_context_mask",
          "shape": 7,
          "type": "MASK",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "stitcher",
          "type": "STITCHER",
          "links": [
            719
          ]
        },
        {
          "name": "cropped_image",
          "type": "IMAGE",
          "links": [
            714
          ]
        },
        {
          "name": "cropped_mask",
          "type": "MASK",
          "links": [
            715
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-inpaint-cropandstitch",
        "ver": "2.1.7",
        "Node name for S&R": "InpaintCropImproved",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "lanczos",
        "lanczos",
        false,
        "ensure minimum resolution",
        1024,
        1024,
        16384,
        16384,
        true,
        0,
        false,
        32,
        0.1,
        false,
        1,
        1,
        1,
        1,
        1.2,
        true,
        896,
        1152,
        "32"
      ]
    },
    {
      "id": 239,
      "type": "InpaintCropImproved",
      "pos": [
        5760,
        1070
      ],
      "size": [
        297.44140625,
        626
      ],
      "flags": {},
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 729
        },
        {
          "name": "mask",
          "shape": 7,
          "type": "MASK",
          "link": 693
        },
        {
          "name": "optional_context_mask",
          "shape": 7,
          "type": "MASK",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "stitcher",
          "type": "STITCHER",
          "links": [
            672
          ]
        },
        {
          "name": "cropped_image",
          "type": "IMAGE",
          "links": [
            681
          ]
        },
        {
          "name": "cropped_mask",
          "type": "MASK",
          "links": [
            682
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-inpaint-cropandstitch",
        "ver": "2.1.7",
        "Node name for S&R": "InpaintCropImproved",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "lanczos",
        "lanczos",
        false,
        "ensure minimum resolution",
        1024,
        1024,
        16384,
        16384,
        true,
        0,
        false,
        32,
        0.1,
        false,
        1,
        1,
        1,
        1,
        1.2,
        true,
        896,
        1152,
        "32"
      ]
    },
    {
      "id": 246,
      "type": "CLIPTextEncode",
      "pos": [
        5410,
        -30
      ],
      "size": [
        340,
        200
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 724
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            712
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.28",
        "Node name for S&R": "CLIPTextEncode",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "1girl, topless, breasts, nipples, naked, view from above"
      ]
    },
    {
      "id": 238,
      "type": "KSampler",
      "pos": [
        6070,
        1060
      ],
      "size": [
        250,
        570
      ],
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 690
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 684
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 685
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 686
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            674
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.28",
        "Node name for S&R": "KSampler",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        275421388680644,
        "fixed",
        30,
        3.5,
        "dpmpp_2m_sde",
        "karras",
        0.4
      ]
    },
    {
      "id": 240,
      "type": "PreviewImage",
      "pos": [
        6352.830455433015,
        980.6538418911323
      ],
      "size": [
        580,
        950
      ],
      "flags": {},
      "order": 21,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 689
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.14.1",
        "Node name for S&R": "PreviewImage"
      },
      "widgets_values": [],
      "color": "#222",
      "bgcolor": "#000"
    },
    {
      "id": 241,
      "type": "GrowMask",
      "pos": [
        5470,
        1550
      ],
      "size": [
        270,
        82
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "mask",
          "type": "MASK",
          "link": 692
        }
      ],
      "outputs": [
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            693
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.18.1",
        "Node name for S&R": "GrowMask"
      },
      "widgets_values": [
        26,
        true
      ]
    },
    {
      "id": 224,
      "type": "LoadImage",
      "pos": [
        5090,
        480
      ],
      "size": [
        400,
        420
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            726
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            692,
            727
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.28",
        "Node name for S&R": "LoadImage",
        "widget_ue_connectable": {},
        "image": "clipspace/clipspace-painted-masked-1776670544564.png [input]"
      },
      "widgets_values": [
        "clipspace/clipspace-painted-masked-1776670544564.png [input]",
        "image"
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 236,
      "type": "CLIPTextEncode",
      "pos": [
        5410,
        1070
      ],
      "size": [
        340,
        200
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 677
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            678
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.28",
        "Node name for S&R": "CLIPTextEncode",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "1girl, topless, breasts, nipples, naked, view from above"
      ]
    },
    {
      "id": 248,
      "type": "KSampler",
      "pos": [
        6070,
        -40
      ],
      "size": [
        250,
        570
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 725
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 716
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 717
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 718
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            711
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.28",
        "Node name for S&R": "KSampler",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        275421388678911,
        "fixed",
        30,
        3.5,
        "dpmpp_2m_sde",
        "karras",
        1
      ]
    },
    {
      "id": 233,
      "type": "InpaintStitchImproved",
      "pos": [
        6070,
        1770
      ],
      "size": [
        250,
        46
      ],
      "flags": {},
      "order": 20,
      "mode": 0,
      "inputs": [
        {
          "name": "stitcher",
          "type": "STITCHER",
          "link": 672
        },
        {
          "name": "inpainted_image",
          "type": "IMAGE",
          "link": 673
        }
      ],
      "outputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "links": [
            689,
            730
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-inpaint-cropandstitch",
        "ver": "2.1.7",
        "Node name for S&R": "InpaintStitchImproved",
        "widget_ue_connectable": {}
      },
      "widgets_values": []
    },
    {
      "id": 255,
      "type": "SaveImage",
      "pos": [
        7009.889366849106,
        1125.1342188960498
      ],
      "size": [
        310,
        330
      ],
      "flags": {},
      "order": 22,
      "mode": 4,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 730
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.18.1",
        "Node name for S&R": "SaveImage"
      },
      "widgets_values": [
        "ComfyUI"
      ]
    },
    {
      "id": 253,
      "type": "Fast Groups Bypasser (rgthree)",
      "pos": [
        4938.40047412689,
        317.3142601573855
      ],
      "size": [
        247.2955078125,
        106
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "OPT_CONNECTION",
          "type": "*",
          "links": null
        }
      ],
      "properties": {
        "matchColors": "",
        "matchTitle": "",
        "showNav": true,
        "showAllGraphs": true,
        "sort": "position",
        "customSortAlphabet": "",
        "toggleRestriction": "default"
      }
    },
    {
      "id": 251,
      "type": "Note",
      "pos": [
        4646.83628005593,
        482.87563633295264
      ],
      "size": [
        420,
        440
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "To use inpainting, upload your image into the \"Load Image\", right click -> Open in MaskEditor -> mask out what you need -> press save.\nThen edit everything you need in the nodes to the right (e.g. resolution at width/height, seed, steps, sampler, prompt, etc).\n\nEven though V8 Apex was trained on 1536 resolution, the inpainting version didn't inherit it that much, use on your own risk :P. You can use it for the refinement pass though!\n\nTo be fair, I'm not sure why would you use the SDXL inpainting in 2026 - it's old and doesn't respect the original forms. Seriously, consider switching to Flux Klein 9b for the inpainting purposes."
      ],
      "color": "#233",
      "bgcolor": "#355"
    }
  ],
  "links": [
    [
      672,
      239,
      0,
      233,
      0,
      "STITCHER"
    ],
    [
      673,
      234,
      0,
      233,
      1,
      "IMAGE"
    ],
    [
      674,
      238,
      0,
      234,
      0,
      "LATENT"
    ],
    [
      675,
      1,
      2,
      234,
      1,
      "VAE"
    ],
    [
      676,
      2,
      1,
      235,
      0,
      "CLIP"
    ],
    [
      677,
      2,
      1,
      236,
      0,
      "CLIP"
    ],
    [
      678,
      236,
      0,
      237,
      0,
      "CONDITIONING"
    ],
    [
      679,
      235,
      0,
      237,
      1,
      "CONDITIONING"
    ],
    [
      680,
      1,
      2,
      237,
      2,
      "VAE"
    ],
    [
      681,
      239,
      1,
      237,
      3,
      "IMAGE"
    ],
    [
      682,
      239,
      2,
      237,
      4,
      "MASK"
    ],
    [
      684,
      237,
      0,
      238,
      1,
      "CONDITIONING"
    ],
    [
      685,
      237,
      1,
      238,
      2,
      "CONDITIONING"
    ],
    [
      686,
      237,
      2,
      238,
      3,
      "LATENT"
    ],
    [
      689,
      233,
      0,
      240,
      0,
      "IMAGE"
    ],
    [
      690,
      2,
      0,
      238,
      0,
      "MODEL"
    ],
    [
      692,
      224,
      1,
      241,
      0,
      "MASK"
    ],
    [
      693,
      241,
      0,
      239,
      1,
      "MASK"
    ],
    [
      711,
      248,
      0,
      244,
      0,
      "LATENT"
    ],
    [
      712,
      246,
      0,
      247,
      0,
      "CONDITIONING"
    ],
    [
      713,
      245,
      0,
      247,
      1,
      "CONDITIONING"
    ],
    [
      714,
      250,
      1,
      247,
      3,
      "IMAGE"
    ],
    [
      715,
      250,
      2,
      247,
      4,
      "MASK"
    ],
    [
      716,
      247,
      0,
      248,
      1,
      "CONDITIONING"
    ],
    [
      717,
      247,
      1,
      248,
      2,
      "CONDITIONING"
    ],
    [
      718,
      247,
      2,
      248,
      3,
      "LATENT"
    ],
    [
      719,
      250,
      0,
      249,
      0,
      "STITCHER"
    ],
    [
      720,
      244,
      0,
      249,
      1,
      "IMAGE"
    ],
    [
      721,
      1,
      2,
      244,
      1,
      "VAE"
    ],
    [
      722,
      1,
      2,
      247,
      2,
      "VAE"
    ],
    [
      723,
      1,
      1,
      245,
      0,
      "CLIP"
    ],
    [
      724,
      1,
      1,
      246,
      0,
      "CLIP"
    ],
    [
      725,
      1,
      0,
      248,
      0,
      "MODEL"
    ],
    [
      726,
      224,
      0,
      250,
      0,
      "IMAGE"
    ],
    [
      727,
      224,
      1,
      250,
      1,
      "MASK"
    ],
    [
      728,
      249,
      0,
      222,
      0,
      "IMAGE"
    ],
    [
      729,
      249,
      0,
      239,
      0,
      "IMAGE"
    ],
    [
      730,
      233,
      0,
      255,
      0,
      "IMAGE"
    ]
  ],
  "groups": [
    {
      "id": 11,
      "title": "Refinement Pass",
      "bounding": [
        5090,
        986.4,
        1240,
        901.6
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 12,
      "title": "Save",
      "bounding": [
        6999.889366849106,
        1051.5342188960499,
        330,
        413.5999999999999
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 1.0345331588142588,
      "offset": [
        -4545.869660483149,
        140.96661957278022
      ]
    },
    "frontendVersion": "1.42.8",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}