{
  "id": "9734273f-1bb3-4996-ba57-400e2571a2d5",
  "revision": 0,
  "last_node_id": 18,
  "last_link_id": 25,
  "nodes": [
    {
      "id": 1,
      "type": "KSampler",
      "pos": [
        -3613.596413275624,
        4311.791551842023
      ],
      "size": [
        320,
        262
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 1
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 2
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 3
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 4
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "slot_index": 0,
          "links": [
            23
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "KSampler",
        "cnr_id": "comfy-core",
        "ver": "0.3.39"
      },
      "widgets_values": [
        502082085128648,
        "randomize",
        30,
        1,
        "deis",
        "normal",
        1
      ],
      "color": "#323",
      "bgcolor": "#535"
    },
    {
      "id": 2,
      "type": "VAELoader",
      "pos": [
        -4440.5964132756235,
        3916.791551842026
      ],
      "size": [
        320,
        60
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "slot_index": 0,
          "links": [
            7,
            10
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAELoader",
        "cnr_id": "comfy-core",
        "ver": "0.3.39"
      },
      "widgets_values": [
        "flux/ae.safetensors"
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 3,
      "type": "InpaintModelConditioning",
      "pos": [
        -3962.596413275624,
        4328.791551842023
      ],
      "size": [
        210,
        140
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 5
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 6
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 7
        },
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 8
        },
        {
          "name": "mask",
          "type": "MASK",
          "link": 9
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            2
          ]
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "slot_index": 1,
          "links": [
            3
          ]
        },
        {
          "name": "latent",
          "type": "LATENT",
          "slot_index": 2,
          "links": [
            4
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "InpaintModelConditioning",
        "cnr_id": "comfy-core",
        "ver": "0.3.39"
      },
      "widgets_values": [
        true
      ]
    },
    {
      "id": 4,
      "type": "DualCLIPLoader",
      "pos": [
        -5933.596413275615,
        3921.791551842026
      ],
      "size": [
        320,
        130
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "slot_index": 0,
          "links": [
            19,
            20
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "DualCLIPLoader",
        "cnr_id": "comfy-core",
        "ver": "0.3.39"
      },
      "widgets_values": [
        "sd3m/clip_l.safetensors",
        "t5/google_t5-v1_1-xxl_encoderonly-fp8_e4m3fn.safetensors",
        "flux",
        "default"
      ]
    },
    {
      "id": 5,
      "type": "Reroute",
      "pos": [
        -3323.5964132756217,
        3921.791551842026
      ],
      "size": [
        75,
        26
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [
        {
          "name": "",
          "type": "*",
          "link": 10
        }
      ],
      "outputs": [
        {
          "name": "",
          "type": "VAE",
          "links": [
            24
          ]
        }
      ],
      "properties": {
        "showOutputText": false,
        "horizontal": false
      }
    },
    {
      "id": 6,
      "type": "SAM3Segment",
      "pos": [
        -5831.208421067992,
        4420.775710145322
      ],
      "size": [
        400,
        394
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 11
        },
        {
          "name": "background_color",
          "shape": 7,
          "type": "COLORCODE",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": []
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            17
          ]
        },
        {
          "name": "MASK_IMAGE",
          "type": "IMAGE",
          "links": []
        }
      ],
      "properties": {
        "Node name for S&R": "SAM3Segment",
        "cnr_id": "comfyui-rmbg",
        "ver": "a1ca256ce5ef3d2d990935415bad76c4269aa80d"
      },
      "widgets_values": [
        "string",
        "Merged",
        0.05,
        10,
        0,
        0,
        0,
        "GPU",
        false,
        false,
        "Alpha"
      ],
      "color": "#222e40",
      "bgcolor": "#364254"
    },
    {
      "id": 7,
      "type": "AILab_MaskOverlay",
      "pos": [
        -4367.045269456046,
        4868.2526743282815
      ],
      "size": [
        300,
        316
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "mask_color",
          "type": "COLORCODE",
          "link": null
        },
        {
          "name": "image",
          "shape": 7,
          "type": "IMAGE",
          "link": 12
        },
        {
          "name": "mask",
          "shape": 7,
          "type": "MASK",
          "link": 13
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": []
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": []
        }
      ],
      "properties": {
        "Node name for S&R": "AILab_MaskOverlay",
        "cnr_id": "comfyui-rmbg",
        "ver": "a1ca256ce5ef3d2d990935415bad76c4269aa80d"
      },
      "widgets_values": [
        0.5
      ],
      "color": "#2e3e57",
      "bgcolor": "#4b5b73"
    },
    {
      "id": 8,
      "type": "FluxGuidance",
      "pos": [
        -4433.057241996313,
        4138.413287568747
      ],
      "size": [
        320,
        60
      ],
      "flags": {
        "collapsed": false
      },
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 14
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            5
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "FluxGuidance",
        "cnr_id": "comfy-core",
        "ver": "0.3.39"
      },
      "widgets_values": [
        30
      ]
    },
    {
      "id": 9,
      "type": "GrowMaskWithBlur",
      "pos": [
        -4955.226868166295,
        4705.82001623936
      ],
      "size": [
        320,
        250
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "mask",
          "type": "MASK",
          "link": 15
        }
      ],
      "outputs": [
        {
          "name": "mask",
          "type": "MASK",
          "slot_index": 0,
          "links": [
            9,
            13
          ]
        },
        {
          "name": "mask_inverted",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "GrowMaskWithBlur",
        "cnr_id": "comfyui-kjnodes",
        "ver": "1.1.1"
      },
      "widgets_values": [
        5,
        0,
        true,
        false,
        5,
        1,
        1,
        false
      ]
    },
    {
      "id": 10,
      "type": "UNETLoader",
      "pos": [
        -3944.088178044136,
        4080.071251962424
      ],
      "size": [
        320,
        82
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "slot_index": 0,
          "links": [
            16
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "UNETLoader",
        "cnr_id": "comfy-core",
        "ver": "0.3.39"
      },
      "widgets_values": [
        "FLUX.1-Fill-dev/flux1-fill-dev.safetensors",
        "default"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 11,
      "type": "DifferentialDiffusion",
      "pos": [
        -3584.6537339552965,
        4081.57582027024
      ],
      "size": [
        280,
        58
      ],
      "flags": {
        "collapsed": false
      },
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 16
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "slot_index": 0,
          "links": [
            1
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "DifferentialDiffusion",
        "cnr_id": "comfy-core",
        "ver": "0.3.39"
      },
      "widgets_values": [
        1
      ]
    },
    {
      "id": 12,
      "type": "LoadImage",
      "pos": [
        -6483.881160605859,
        4581.959056198398
      ],
      "size": [
        490,
        510
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "slot_index": 0,
          "links": [
            8,
            11,
            12,
            22
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "slot_index": 1,
          "links": [
            18
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.39",
        "image": "clipspace/clipspace-painted-masked-1773937077245.png [input]"
      },
      "widgets_values": [
        "clipspace/clipspace-painted-masked-1773937077245.png [input]",
        "image"
      ]
    },
    {
      "id": 13,
      "type": "ComfySwitchNode",
      "pos": [
        -5287.458778534485,
        4695.1468530582615
      ],
      "size": [
        270,
        78
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "on_false",
          "type": "MASK",
          "link": 17
        },
        {
          "name": "on_true",
          "type": "MASK",
          "link": 18
        }
      ],
      "outputs": [
        {
          "name": "output",
          "type": "MASK",
          "links": [
            15
          ]
        }
      ],
      "title": "Use Painted Mask",
      "properties": {
        "Node name for S&R": "ComfySwitchNode",
        "cnr_id": "comfy-core",
        "ver": "0.10.0"
      },
      "widgets_values": [
        true
      ]
    },
    {
      "id": 14,
      "type": "CLIPTextEncode",
      "pos": [
        -5233.5964132756235,
        3921.791551842026
      ],
      "size": [
        620,
        250
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 19
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            14
          ]
        }
      ],
      "title": "CLIP Text Encode (Positive Prompt)",
      "properties": {
        "Node name for S&R": "CLIPTextEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.39"
      },
      "widgets_values": [
        "empty table"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 15,
      "type": "CLIPTextEncode",
      "pos": [
        -5233.5964132756235,
        4231.791551842023
      ],
      "size": [
        630,
        200
      ],
      "flags": {
        "collapsed": false
      },
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 20
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            6
          ]
        }
      ],
      "title": "CLIP Text Encode (Negative Prompt)",
      "properties": {
        "Node name for S&R": "CLIPTextEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.39"
      },
      "widgets_values": [
        "cup"
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 16,
      "type": "Image Comparer (rgthree)",
      "pos": [
        -2919.3394565142517,
        4431.180421123314
      ],
      "size": [
        540,
        440
      ],
      "flags": {},
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "dir": 3,
          "name": "image_a",
          "shape": 7,
          "type": "IMAGE",
          "link": 21
        },
        {
          "dir": 3,
          "name": "image_b",
          "shape": 7,
          "type": "IMAGE",
          "link": 22
        }
      ],
      "outputs": [],
      "properties": {
        "Node name for S&R": "Image Comparer (rgthree)",
        "cnr_id": "rgthree-comfy",
        "ver": "1.0.2506081210",
        "comparer_mode": "Slide"
      },
      "widgets_values": []
    },
    {
      "id": 17,
      "type": "VAEDecode",
      "pos": [
        -3174.4438884093015,
        4428.26157626125
      ],
      "size": [
        210,
        50
      ],
      "flags": {
        "collapsed": false
      },
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 23
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 24
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "slot_index": 0,
          "links": [
            21,
            25
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAEDecode",
        "cnr_id": "comfy-core",
        "ver": "0.3.39"
      },
      "widgets_values": []
    },
    {
      "id": 18,
      "type": "SaveImage",
      "pos": [
        -2817.324423460608,
        4036.9969018529337
      ],
      "size": [
        270,
        58
      ],
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 25
        }
      ],
      "outputs": [],
      "properties": {
        "Node name for S&R": "SaveImage",
        "cnr_id": "comfy-core",
        "ver": "0.10.0"
      },
      "widgets_values": [
        "ComfyUI"
      ]
    }
  ],
  "links": [
    [
      1,
      11,
      0,
      1,
      0,
      "MODEL"
    ],
    [
      2,
      3,
      0,
      1,
      1,
      "CONDITIONING"
    ],
    [
      3,
      3,
      1,
      1,
      2,
      "CONDITIONING"
    ],
    [
      4,
      3,
      2,
      1,
      3,
      "LATENT"
    ],
    [
      5,
      8,
      0,
      3,
      0,
      "CONDITIONING"
    ],
    [
      6,
      15,
      0,
      3,
      1,
      "CONDITIONING"
    ],
    [
      7,
      2,
      0,
      3,
      2,
      "VAE"
    ],
    [
      8,
      12,
      0,
      3,
      3,
      "IMAGE"
    ],
    [
      9,
      9,
      0,
      3,
      4,
      "MASK"
    ],
    [
      10,
      2,
      0,
      5,
      0,
      "VAE"
    ],
    [
      11,
      12,
      0,
      6,
      0,
      "IMAGE"
    ],
    [
      12,
      12,
      0,
      7,
      1,
      "IMAGE"
    ],
    [
      13,
      9,
      0,
      7,
      2,
      "MASK"
    ],
    [
      14,
      14,
      0,
      8,
      0,
      "CONDITIONING"
    ],
    [
      15,
      13,
      0,
      9,
      0,
      "MASK"
    ],
    [
      16,
      10,
      0,
      11,
      0,
      "MODEL"
    ],
    [
      17,
      6,
      1,
      13,
      0,
      "MASK"
    ],
    [
      18,
      12,
      1,
      13,
      1,
      "MASK"
    ],
    [
      19,
      4,
      0,
      14,
      0,
      "CLIP"
    ],
    [
      20,
      4,
      0,
      15,
      0,
      "CLIP"
    ],
    [
      21,
      17,
      0,
      16,
      0,
      "IMAGE"
    ],
    [
      22,
      12,
      0,
      16,
      1,
      "IMAGE"
    ],
    [
      23,
      1,
      0,
      17,
      0,
      "LATENT"
    ],
    [
      24,
      5,
      0,
      17,
      1,
      "VAE"
    ],
    [
      25,
      17,
      0,
      18,
      0,
      "IMAGE"
    ]
  ],
  "groups": [
    {
      "id": 1,
      "title": "Single Image",
      "bounding": [
        -6493.881160605859,
        3843.191551842026,
        4124.541704091607,
        1351.0611224862555
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    }
  ],
  "config": {},
  "extra": {
    "workflowRendererVersion": "LG",
    "ds": {
      "scale": 0.1948717100000017,
      "offset": [
        9827.486967204115,
        -1440.0885450163298
      ]
    },
    "frontendVersion": "1.36.14"
  },
  "version": 0.4
}