{
  "id": "d26732fd-91ea-4503-8d0d-383544823cec",
  "revision": 0,
  "last_node_id": 52,
  "last_link_id": 114,
  "nodes": [
    {
      "id": 7,
      "type": "CLIPTextEncode",
      "pos": [
        307,
        282
      ],
      "size": [
        425.2799987792969,
        180.61000061035156
      ],
      "flags": {
        "collapsed": true
      },
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 63
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            81
          ]
        }
      ],
      "title": "CLIP Text Encode (Negative Prompt)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "CLIPTextEncode",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        ""
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 26,
      "type": "FluxGuidance",
      "pos": [
        593,
        44
      ],
      "size": [
        317.3999938964844,
        58
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 41
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            80
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "FluxGuidance",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        30
      ]
    },
    {
      "id": 39,
      "type": "DifferentialDiffusion",
      "pos": [
        1001,
        -68
      ],
      "size": [
        277.20001220703125,
        26
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 85
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "slot_index": 0,
          "links": [
            86
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "DifferentialDiffusion",
        "widget_ue_connectable": {}
      },
      "widgets_values": []
    },
    {
      "id": 45,
      "type": "MarkdownNote",
      "pos": [
        -225,
        255
      ],
      "size": [
        225,
        88
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "🛈 [Learn more about this workflow](https://comfyanonymous.github.io/ComfyUI_examples/flux/#fill-inpainting-model)"
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 34,
      "type": "DualCLIPLoader",
      "pos": [
        -237,
        79
      ],
      "size": [
        315,
        130
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            62,
            63
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "DualCLIPLoader",
        "models": [
          {
            "name": "clip_l.safetensors",
            "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors?download=true",
            "directory": "text_encoders"
          },
          {
            "name": "t5xxl_fp16.safetensors",
            "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors?download=true",
            "directory": "text_encoders"
          }
        ],
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "SDV3\\clip_l.safetensors",
        "FLUX\\t5xxl_fp16.safetensors",
        "flux",
        "default"
      ]
    },
    {
      "id": 31,
      "type": "UNETLoader",
      "pos": [
        602,
        -120
      ],
      "size": [
        315,
        82
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "slot_index": 0,
          "links": [
            85
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "UNETLoader",
        "models": [
          {
            "name": "flux1-fill-dev.safetensors",
            "url": "https://huggingface.co/black-forest-labs/FLUX.1-Fill-dev/blob/main/flux1-fill-dev.safetensors",
            "directory": "diffusion_models"
          }
        ],
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "FLUX\\flux1-fill-dev.safetensors",
        "default"
      ]
    },
    {
      "id": 8,
      "type": "VAEDecode",
      "pos": [
        1685.0001220703125,
        69.49121856689453
      ],
      "size": [
        210,
        46
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 112
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 60
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "slot_index": 0,
          "links": [
            95
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "VAEDecode",
        "widget_ue_connectable": {}
      },
      "widgets_values": []
    },
    {
      "id": 49,
      "type": "CR Latent Batch Size",
      "pos": [
        959.2691040039062,
        354.2141418457031
      ],
      "size": [
        270,
        58
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "latent",
          "type": "LATENT",
          "link": 110
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            111
          ]
        }
      ],
      "properties": {
        "cnr_id": "ComfyUI_Comfyroll_CustomNodes",
        "ver": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
        "Node name for S&R": "CR Latent Batch Size",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        2
      ]
    },
    {
      "id": 38,
      "type": "InpaintModelConditioning",
      "pos": [
        916.876953125,
        124.41231536865234
      ],
      "size": [
        302.3999938964844,
        138
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 80
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 81
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 82
        },
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 113
        },
        {
          "name": "mask",
          "type": "MASK",
          "link": 114
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            77
          ]
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "slot_index": 1,
          "links": [
            78
          ]
        },
        {
          "name": "latent",
          "type": "LATENT",
          "slot_index": 2,
          "links": [
            110
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "InpaintModelConditioning",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        false
      ]
    },
    {
      "id": 3,
      "type": "KSampler",
      "pos": [
        1280,
        100
      ],
      "size": [
        315,
        262
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 86
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 77
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 78
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 111
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "slot_index": 0,
          "links": [
            112
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "KSampler",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        1006953529460557,
        "randomize",
        20,
        1,
        "euler",
        "normal",
        1
      ]
    },
    {
      "id": 32,
      "type": "VAELoader",
      "pos": [
        1329.6622314453125,
        479.7701416015625
      ],
      "size": [
        315,
        58
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "slot_index": 0,
          "links": [
            60,
            82
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "VAELoader",
        "models": [
          {
            "name": "ae.safetensors",
            "url": "https://huggingface.co/black-forest-labs/FLUX.1-schnell/resolve/main/ae.safetensors?download=true",
            "directory": "vae"
          }
        ],
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "FLUX\\ae.safetensors"
      ]
    },
    {
      "id": 9,
      "type": "SaveImage",
      "pos": [
        1936.2982177734375,
        82.75439453125
      ],
      "size": [
        828.9500122070312,
        893.8499755859375
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 95
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "SaveImage",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "ComfyUI"
      ]
    },
    {
      "id": 23,
      "type": "CLIPTextEncode",
      "pos": [
        -905.195556640625,
        924.5140991210938
      ],
      "size": [
        311.0955810546875,
        108.43277740478516
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 62
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            41
          ]
        }
      ],
      "title": "CLIP Text Encode (Positive Prompt)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "CLIPTextEncode",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "grass"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 51,
      "type": "Note",
      "pos": [
        -916.8970947265625,
        476.72564697265625
      ],
      "size": [
        350.92510986328125,
        250.50831604003906
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "How to Use Polygonal Selection\n- Start Drawing: Hold Shift + S and left-click to place the first point of your polygonal selection.\n\n- Add Points: Continue left-clicking to place additional points. Each click adds a new vertex to your polygon.\n\n- Close Selection: Click back on the first point (or close to it) to complete and close the polygonal selection.\n\n- Run Inpainting: Once your selection is complete, run your inpainting workflow as usual. The generated content will seamlessly integrate with the existing image."
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 52,
      "type": "Note",
      "pos": [
        -911.10205078125,
        769.1378173828125
      ],
      "size": [
        350.28143310546875,
        99.23915100097656
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "Add a description at the bottom to tell the model what to generate."
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 50,
      "type": "LayerForgeNode",
      "pos": [
        -553.9073486328125,
        478.2644348144531
      ],
      "size": [
        1879.927490234375,
        1259.4072265625
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "links": [
            113
          ]
        },
        {
          "name": "mask",
          "type": "MASK",
          "links": [
            114
          ]
        }
      ],
      "properties": {
        "cnr_id": "layerforge",
        "ver": "1bd261bee0c96c03cfac992ccabdea9544616a57",
        "Node name for S&R": "LayerForgeNode",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        false,
        false,
        true,
        18,
        "50",
        ""
      ]
    }
  ],
  "links": [
    [
      41,
      23,
      0,
      26,
      0,
      "CONDITIONING"
    ],
    [
      60,
      32,
      0,
      8,
      1,
      "VAE"
    ],
    [
      62,
      34,
      0,
      23,
      0,
      "CLIP"
    ],
    [
      63,
      34,
      0,
      7,
      0,
      "CLIP"
    ],
    [
      77,
      38,
      0,
      3,
      1,
      "CONDITIONING"
    ],
    [
      78,
      38,
      1,
      3,
      2,
      "CONDITIONING"
    ],
    [
      80,
      26,
      0,
      38,
      0,
      "CONDITIONING"
    ],
    [
      81,
      7,
      0,
      38,
      1,
      "CONDITIONING"
    ],
    [
      82,
      32,
      0,
      38,
      2,
      "VAE"
    ],
    [
      85,
      31,
      0,
      39,
      0,
      "MODEL"
    ],
    [
      86,
      39,
      0,
      3,
      0,
      "MODEL"
    ],
    [
      95,
      8,
      0,
      9,
      0,
      "IMAGE"
    ],
    [
      110,
      38,
      2,
      49,
      0,
      "LATENT"
    ],
    [
      111,
      49,
      0,
      3,
      3,
      "LATENT"
    ],
    [
      112,
      3,
      0,
      8,
      0,
      "LATENT"
    ],
    [
      113,
      50,
      0,
      38,
      3,
      "IMAGE"
    ],
    [
      114,
      50,
      1,
      38,
      4,
      "MASK"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.6588450000000008,
      "offset": [
        1117.7398801488407,
        -110.40634975151642
      ]
    },
    "ue_links": [],
    "links_added_by_ue": [],
    "frontendVersion": "1.23.4",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}