{
  "config": {},
  "definitions": {
    "subgraphs": [
      {
        "config": {},
        "extra": {},
        "groups": [],
        "id": "cade3e30-0eb2-4fd2-bf6e-8518f3a96e0c",
        "inputNode": {
          "bounding": [
            290,
            3536,
            120,
            100
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "3ac60d5e-8f9d-4663-9b24-b3a15a3e9e20",
            "linkIds": [
              279
            ],
            "localized_name": "mask",
            "name": "mask",
            "pos": [
              390,
              3556
            ],
            "type": "MASK"
          },
          {
            "id": "d1ab0cf5-7062-41ac-9f4b-8c660fc4a714",
            "linkIds": [
              379
            ],
            "name": "expand",
            "pos": [
              390,
              3576
            ],
            "type": "INT"
          },
          {
            "id": "1a787af5-da9f-44c5-9f5a-3f71609ca0ef",
            "linkIds": [
              380
            ],
            "name": "blur_radius",
            "pos": [
              390,
              3596
            ],
            "type": "INT"
          }
        ],
        "links": [
          {
            "id": 373,
            "origin_id": 251,
            "origin_slot": 0,
            "target_id": 252,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 377,
            "origin_id": 252,
            "origin_slot": 0,
            "target_id": 253,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 372,
            "origin_id": 199,
            "origin_slot": 0,
            "target_id": 251,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 279,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 199,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 378,
            "origin_id": 253,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 379,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 199,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 380,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 252,
            "target_slot": 1,
            "type": "INT"
          }
        ],
        "name": "Grow and Blur Mask",
        "nodes": [
          {
            "flags": {},
            "id": 253,
            "inputs": [
              {
                "link": 377,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 3,
            "outputs": [
              {
                "links": [
                  378
                ],
                "localized_name": "MASK",
                "name": "MASK",
                "type": "MASK"
              }
            ],
            "pos": [
              800,
              3630
            ],
            "properties": {
              "Node name for S&R": "ImageToMask",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              270,
              58
            ],
            "type": "ImageToMask",
            "widgets_values": [
              "red"
            ]
          },
          {
            "flags": {},
            "id": 251,
            "inputs": [
              {
                "link": 372,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  373
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              780,
              3470
            ],
            "properties": {
              "Node name for S&R": "MaskToImage",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              260,
              70
            ],
            "type": "MaskToImage",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 199,
            "inputs": [
              {
                "link": 279,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              },
              {
                "link": 379,
                "localized_name": "expand",
                "name": "expand",
                "type": "INT",
                "widget": {
                  "name": "expand"
                }
              }
            ],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  372
                ],
                "localized_name": "MASK",
                "name": "MASK",
                "type": "MASK"
              }
            ],
            "pos": [
              470,
              3460
            ],
            "properties": {
              "Node name for S&R": "GrowMask",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              270,
              82
            ],
            "type": "GrowMask",
            "widgets_values": [
              0,
              true
            ]
          },
          {
            "flags": {},
            "id": 252,
            "inputs": [
              {
                "link": 373,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 380,
                "localized_name": "blur_radius",
                "name": "blur_radius",
                "type": "INT",
                "widget": {
                  "name": "blur_radius"
                }
              }
            ],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  377
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              480,
              3620
            ],
            "properties": {
              "Node name for S&R": "ImageBlur",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              270,
              82
            ],
            "type": "ImageBlur",
            "widgets_values": [
              31,
              1
            ]
          }
        ],
        "outputNode": {
          "bounding": [
            1130,
            3536,
            120,
            60
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "1f97f683-13d3-4871-876d-678fca850d89",
            "linkIds": [
              378
            ],
            "localized_name": "MASK",
            "name": "MASK",
            "pos": [
              1150,
              3556
            ],
            "type": "MASK"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 11,
          "lastLinkId": 380,
          "lastNodeId": 255,
          "lastRerouteId": 0
        },
        "version": 1,
        "widgets": []
      },
      {
        "config": {},
        "extra": {},
        "groups": [],
        "id": "2a4b2cc0-db37-4302-a067-da392f38f06b",
        "inputNode": {
          "bounding": [
            2110,
            1406,
            120,
            100
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "53ec80db-b075-446c-a79b-891d82ae3cf1",
            "linkIds": [
              360
            ],
            "localized_name": "mask",
            "name": "mask",
            "pos": [
              2210,
              1426
            ],
            "type": "MASK"
          },
          {
            "id": "37820e3d-f495-4b41-b0c6-58765a0c1766",
            "linkIds": [
              350
            ],
            "localized_name": "image",
            "name": "image",
            "pos": [
              2210,
              1446
            ],
            "type": "IMAGE"
          },
          {
            "id": "d388f5f1-7a36-4563-b104-9f7ec77f636d",
            "linkIds": [
              365
            ],
            "name": "value",
            "pos": [
              2210,
              1466
            ],
            "type": "INT"
          }
        ],
        "links": [
          {
            "id": 363,
            "origin_id": 216,
            "origin_slot": 0,
            "target_id": 218,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 361,
            "origin_id": 217,
            "origin_slot": 0,
            "target_id": 216,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 362,
            "origin_id": 215,
            "origin_slot": 0,
            "target_id": 216,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 359,
            "origin_id": 215,
            "origin_slot": 0,
            "target_id": 194,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 360,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 217,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 350,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 194,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 364,
            "origin_id": 218,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 352,
            "origin_id": 194,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 353,
            "origin_id": 194,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 354,
            "origin_id": 194,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 365,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 215,
            "target_slot": 0,
            "type": "INT"
          }
        ],
        "name": "Scale image and mask(Subgraph)",
        "nodes": [
          {
            "flags": {},
            "id": 218,
            "inputs": [
              {
                "link": 363,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 4,
            "outputs": [
              {
                "links": [
                  364
                ],
                "localized_name": "MASK",
                "name": "MASK",
                "type": "MASK"
              }
            ],
            "pos": [
              2990,
              1540
            ],
            "properties": {
              "Node name for S&R": "ImageToMask",
              "cnr_id": "comfy-core",
              "ver": "0.3.65"
            },
            "size": [
              270,
              58
            ],
            "type": "ImageToMask",
            "widgets_values": [
              "red"
            ]
          },
          {
            "flags": {},
            "id": 216,
            "inputs": [
              {
                "link": 361,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 362,
                "localized_name": "largest_size",
                "name": "largest_size",
                "type": "INT",
                "widget": {
                  "name": "largest_size"
                }
              }
            ],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  363
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              2610,
              1570
            ],
            "properties": {
              "Node name for S&R": "ImageScaleToMaxDimension",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              281.2027282714844,
              82
            ],
            "type": "ImageScaleToMaxDimension",
            "widgets_values": [
              "area",
              1536
            ]
          },
          {
            "flags": {},
            "id": 217,
            "inputs": [
              {
                "link": 360,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "mode": 0,
            "order": 3,
            "outputs": [
              {
                "links": [
                  361
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              2700,
              1420
            ],
            "properties": {
              "Node name for S&R": "MaskToImage",
              "cnr_id": "comfy-core",
              "ver": "0.3.65"
            },
            "size": [
              184.62362670898438,
              26
            ],
            "type": "MaskToImage",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 194,
            "inputs": [
              {
                "link": 350,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 359,
                "localized_name": "largest_size",
                "name": "largest_size",
                "type": "INT",
                "widget": {
                  "name": "largest_size"
                }
              }
            ],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  352,
                  353,
                  354
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              2590,
              1280
            ],
            "properties": {
              "Node name for S&R": "ImageScaleToMaxDimension",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              281.2027282714844,
              82
            ],
            "type": "ImageScaleToMaxDimension",
            "widgets_values": [
              "area",
              1536
            ]
          },
          {
            "flags": {},
            "id": 215,
            "inputs": [
              {
                "link": 365,
                "localized_name": "value",
                "name": "value",
                "type": "INT",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  359,
                  362
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              }
            ],
            "pos": [
              2260,
              1560
            ],
            "properties": {
              "Node name for S&R": "PrimitiveInt",
              "cnr_id": "comfy-core",
              "ver": "0.3.65"
            },
            "size": [
              270,
              82
            ],
            "type": "PrimitiveInt",
            "widgets_values": [
              1536,
              "fixed"
            ]
          }
        ],
        "outputNode": {
          "bounding": [
            3320,
            1406,
            120,
            80
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "7ef75a31-2e69-4dce-8e13-76cd17b4c272",
            "linkIds": [
              364
            ],
            "localized_name": "MASK",
            "name": "MASK",
            "pos": [
              3340,
              1426
            ],
            "type": "MASK"
          },
          {
            "id": "36058145-b72c-4bd4-bb63-e2e22456d003",
            "linkIds": [
              352,
              353,
              354
            ],
            "localized_name": "IMAGE",
            "name": "IMAGE",
            "pos": [
              3340,
              1446
            ],
            "type": "IMAGE"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 14,
          "lastLinkId": 365,
          "lastNodeId": 218,
          "lastRerouteId": 0
        },
        "version": 1,
        "widgets": []
      },
      {
        "config": {},
        "extra": {},
        "groups": [],
        "id": "f93c215e-c393-460e-9534-ed2c3d8a652e",
        "inputNode": {
          "bounding": [
            290,
            3536,
            120,
            100
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "3ac60d5e-8f9d-4663-9b24-b3a15a3e9e20",
            "linkIds": [
              279
            ],
            "localized_name": "mask",
            "name": "mask",
            "pos": [
              390,
              3556
            ],
            "type": "MASK"
          },
          {
            "id": "d1ab0cf5-7062-41ac-9f4b-8c660fc4a714",
            "linkIds": [
              379
            ],
            "name": "expand",
            "pos": [
              390,
              3576
            ],
            "type": "INT"
          },
          {
            "id": "1a787af5-da9f-44c5-9f5a-3f71609ca0ef",
            "linkIds": [
              380
            ],
            "name": "blur_radius",
            "pos": [
              390,
              3596
            ],
            "type": "INT"
          }
        ],
        "links": [
          {
            "id": 373,
            "origin_id": 251,
            "origin_slot": 0,
            "target_id": 252,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 377,
            "origin_id": 252,
            "origin_slot": 0,
            "target_id": 253,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 372,
            "origin_id": 199,
            "origin_slot": 0,
            "target_id": 251,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 279,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 199,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 378,
            "origin_id": 253,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 379,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 199,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 380,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 252,
            "target_slot": 1,
            "type": "INT"
          }
        ],
        "name": "Grow and Blur Mask",
        "nodes": [
          {
            "flags": {},
            "id": 253,
            "inputs": [
              {
                "link": 377,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 3,
            "outputs": [
              {
                "links": [
                  378
                ],
                "localized_name": "MASK",
                "name": "MASK",
                "type": "MASK"
              }
            ],
            "pos": [
              800,
              3630
            ],
            "properties": {
              "Node name for S&R": "ImageToMask",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              270,
              58
            ],
            "type": "ImageToMask",
            "widgets_values": [
              "red"
            ]
          },
          {
            "flags": {},
            "id": 251,
            "inputs": [
              {
                "link": 372,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  373
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              780,
              3470
            ],
            "properties": {
              "Node name for S&R": "MaskToImage",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              260,
              70
            ],
            "type": "MaskToImage",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 199,
            "inputs": [
              {
                "link": 279,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              },
              {
                "link": 379,
                "localized_name": "expand",
                "name": "expand",
                "type": "INT",
                "widget": {
                  "name": "expand"
                }
              }
            ],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  372
                ],
                "localized_name": "MASK",
                "name": "MASK",
                "type": "MASK"
              }
            ],
            "pos": [
              470,
              3460
            ],
            "properties": {
              "Node name for S&R": "GrowMask",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              270,
              82
            ],
            "type": "GrowMask",
            "widgets_values": [
              20,
              true
            ]
          },
          {
            "flags": {},
            "id": 252,
            "inputs": [
              {
                "link": 373,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 380,
                "localized_name": "blur_radius",
                "name": "blur_radius",
                "type": "INT",
                "widget": {
                  "name": "blur_radius"
                }
              }
            ],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  377
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              480,
              3620
            ],
            "properties": {
              "Node name for S&R": "ImageBlur",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              270,
              82
            ],
            "type": "ImageBlur",
            "widgets_values": [
              31,
              1
            ]
          }
        ],
        "outputNode": {
          "bounding": [
            1130,
            3536,
            120,
            60
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "1f97f683-13d3-4871-876d-678fca850d89",
            "linkIds": [
              378
            ],
            "localized_name": "MASK",
            "name": "MASK",
            "pos": [
              1150,
              3556
            ],
            "type": "MASK"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 11,
          "lastLinkId": 380,
          "lastNodeId": 255,
          "lastRerouteId": 0
        },
        "version": 1,
        "widgets": []
      }
    ]
  },
  "extra": {
    "VHS_KeepIntermediate": true,
    "VHS_MetadataImage": true,
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "ds": {
      "offset": [
        2886.2468145906096,
        1073.0822807717493
      ],
      "scale": 0.2719095486181405
    },
    "frontendVersion": "1.32.1",
    "groupNodes": {}
  },
  "groups": [
    {
      "bounding": [
        -100,
        -140,
        400,
        610
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 1,
      "title": "Step 1 - Upload models"
    },
    {
      "bounding": [
        -100,
        490,
        420,
        440
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 2,
      "title": "Step 2 - Upload image and edit mask"
    },
    {
      "bounding": [
        320,
        40,
        490,
        430
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 4,
      "title": "Step 3 - Prompt"
    },
    {
      "bounding": [
        320,
        -140,
        490,
        160
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 5,
      "title": "4 steps lightning LoRA"
    },
    {
      "bounding": [
        -100,
        950,
        420,
        290
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 6,
      "title": "Ctrl-B to enable it"
    },
    {
      "bounding": [
        2410,
        -190,
        2310,
        1993.5999755859375
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 12,
      "title": "For outpainting  Ctrl-B to enable"
    },
    {
      "bounding": [
        2420,
        -150,
        400,
        610
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 7,
      "title": "Step 1 - Upload models"
    },
    {
      "bounding": [
        2420,
        480,
        420,
        440
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 8,
      "title": "Step 2 - Upload image and edit mask"
    },
    {
      "bounding": [
        2840,
        30,
        490,
        430
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 9,
      "title": "Step 3 - Prompt"
    },
    {
      "bounding": [
        2840,
        -150,
        490,
        160
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 10,
      "title": "4 steps lightning LoRA"
    },
    {
      "bounding": [
        2420,
        940,
        430,
        460
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 11,
      "title": "Ctrl-B to enable it"
    },
    {
      "bounding": [
        -110,
        -180,
        2330,
        2003.5999755859375
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 14,
      "title": "Inpainting"
    }
  ],
  "id": "91f6bbe2-ed41-4fd6-bac7-71d5b5864ecb",
  "last_link_id": 387,
  "last_node_id": 223,
  "links": [
    [
      74,
      38,
      0,
      6,
      0,
      "CLIP"
    ],
    [
      75,
      38,
      0,
      7,
      0,
      "CLIP"
    ],
    [
      76,
      39,
      0,
      8,
      1,
      "VAE"
    ],
    [
      110,
      8,
      0,
      60,
      0,
      "IMAGE"
    ],
    [
      128,
      3,
      0,
      8,
      0,
      "LATENT"
    ],
    [
      144,
      39,
      0,
      76,
      1,
      "VAE"
    ],
    [
      145,
      37,
      0,
      80,
      0,
      "MODEL"
    ],
    [
      149,
      80,
      0,
      66,
      0,
      "MODEL"
    ],
    [
      156,
      66,
      0,
      3,
      0,
      "MODEL"
    ],
    [
      188,
      108,
      0,
      3,
      1,
      "CONDITIONING"
    ],
    [
      189,
      108,
      1,
      3,
      2,
      "CONDITIONING"
    ],
    [
      190,
      6,
      0,
      108,
      0,
      "CONDITIONING"
    ],
    [
      191,
      7,
      0,
      108,
      1,
      "CONDITIONING"
    ],
    [
      192,
      84,
      0,
      108,
      2,
      "CONTROL_NET"
    ],
    [
      193,
      39,
      0,
      108,
      3,
      "VAE"
    ],
    [
      205,
      71,
      1,
      121,
      0,
      "MASK"
    ],
    [
      208,
      76,
      0,
      122,
      0,
      "LATENT"
    ],
    [
      210,
      122,
      0,
      3,
      3,
      "LATENT"
    ],
    [
      215,
      121,
      0,
      124,
      0,
      "MASK"
    ],
    [
      219,
      121,
      0,
      122,
      1,
      "MASK"
    ],
    [
      220,
      121,
      0,
      108,
      5,
      "MASK"
    ],
    [
      224,
      8,
      0,
      126,
      1,
      "IMAGE"
    ],
    [
      225,
      121,
      0,
      126,
      2,
      "MASK"
    ],
    [
      274,
      126,
      0,
      163,
      0,
      "IMAGE"
    ],
    [
      292,
      71,
      0,
      172,
      0,
      "IMAGE"
    ],
    [
      293,
      172,
      0,
      76,
      0,
      "IMAGE"
    ],
    [
      294,
      172,
      0,
      108,
      4,
      "IMAGE"
    ],
    [
      295,
      172,
      0,
      126,
      0,
      "IMAGE"
    ],
    [
      296,
      174,
      0,
      176,
      0,
      "CLIP"
    ],
    [
      298,
      185,
      0,
      180,
      0,
      "MODEL"
    ],
    [
      299,
      182,
      0,
      181,
      0,
      "CONDITIONING"
    ],
    [
      300,
      176,
      0,
      181,
      1,
      "CONDITIONING"
    ],
    [
      301,
      177,
      0,
      181,
      2,
      "CONTROL_NET"
    ],
    [
      305,
      174,
      0,
      182,
      0,
      "CLIP"
    ],
    [
      306,
      175,
      0,
      185,
      0,
      "MODEL"
    ],
    [
      307,
      200,
      0,
      189,
      0,
      "IMAGE"
    ],
    [
      308,
      180,
      0,
      190,
      0,
      "MODEL"
    ],
    [
      312,
      190,
      0,
      191,
      0,
      "LATENT"
    ],
    [
      313,
      178,
      0,
      191,
      1,
      "VAE"
    ],
    [
      314,
      191,
      0,
      192,
      0,
      "IMAGE"
    ],
    [
      317,
      178,
      0,
      195,
      1,
      "VAE"
    ],
    [
      323,
      191,
      0,
      200,
      1,
      "IMAGE"
    ],
    [
      351,
      193,
      0,
      202,
      0,
      "IMAGE"
    ],
    [
      358,
      195,
      0,
      190,
      3,
      "LATENT"
    ],
    [
      365,
      202,
      1,
      219,
      0,
      "MASK"
    ],
    [
      366,
      202,
      0,
      219,
      1,
      "IMAGE"
    ],
    [
      369,
      219,
      1,
      200,
      0,
      "IMAGE"
    ],
    [
      370,
      219,
      1,
      203,
      0,
      "IMAGE"
    ],
    [
      371,
      219,
      1,
      195,
      0,
      "IMAGE"
    ],
    [
      374,
      220,
      0,
      200,
      2,
      "MASK"
    ],
    [
      375,
      220,
      0,
      181,
      5,
      "MASK"
    ],
    [
      376,
      220,
      0,
      207,
      0,
      "MASK"
    ],
    [
      377,
      219,
      0,
      220,
      0,
      "MASK"
    ],
    [
      384,
      178,
      0,
      181,
      3,
      "VAE"
    ],
    [
      385,
      219,
      1,
      181,
      4,
      "IMAGE"
    ],
    [
      386,
      181,
      0,
      190,
      1,
      "CONDITIONING"
    ],
    [
      387,
      181,
      1,
      190,
      2,
      "CONDITIONING"
    ]
  ],
  "nodes": [
    {
      "flags": {},
      "id": 38,
      "inputs": [],
      "mode": 0,
      "order": 0,
      "outputs": [
        {
          "links": [
            74,
            75
          ],
          "name": "CLIP",
          "slot_index": 0,
          "type": "CLIP"
        }
      ],
      "pos": [
        -90,
        70
      ],
      "properties": {
        "Node name for S&R": "CLIPLoader",
        "cnr_id": "comfy-core",
        "models": [
          {
            "directory": "text_encoders",
            "name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors"
          }
        ],
        "ver": "0.3.51"
      },
      "size": [
        380,
        106
      ],
      "type": "CLIPLoader",
      "widgets_values": [
        "qwen_2.5_vl_7b_fp8_scaled.safetensors",
        "qwen_image",
        "default"
      ]
    },
    {
      "flags": {},
      "id": 37,
      "inputs": [],
      "mode": 0,
      "order": 1,
      "outputs": [
        {
          "links": [
            145
          ],
          "name": "MODEL",
          "slot_index": 0,
          "type": "MODEL"
        }
      ],
      "pos": [
        -90,
        -60
      ],
      "properties": {
        "Node name for S&R": "UNETLoader",
        "cnr_id": "comfy-core",
        "models": [
          {
            "directory": "diffusion_models",
            "name": "qwen_image_fp8_e4m3fn.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_fp8_e4m3fn.safetensors"
          }
        ],
        "ver": "0.3.51"
      },
      "size": [
        380,
        82
      ],
      "type": "UNETLoader",
      "widgets_values": [
        "qwen_image_fp8_e4m3fn.safetensors",
        "default"
      ]
    },
    {
      "bgcolor": "#335",
      "color": "#223",
      "flags": {},
      "id": 7,
      "inputs": [
        {
          "link": 75,
          "name": "clip",
          "type": "CLIP"
        }
      ],
      "mode": 0,
      "order": 18,
      "outputs": [
        {
          "links": [
            191
          ],
          "name": "CONDITIONING",
          "slot_index": 0,
          "type": "CONDITIONING"
        }
      ],
      "pos": [
        330,
        320
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        460,
        140
      ],
      "title": "CLIP Text Encode (Negative Prompt)",
      "type": "CLIPTextEncode",
      "widgets_values": [
        " "
      ]
    },
    {
      "flags": {},
      "id": 84,
      "inputs": [],
      "mode": 0,
      "order": 2,
      "outputs": [
        {
          "links": [
            192
          ],
          "name": "CONTROL_NET",
          "type": "CONTROL_NET"
        }
      ],
      "pos": [
        -90,
        340
      ],
      "properties": {
        "Node name for S&R": "ControlNetLoader",
        "cnr_id": "comfy-core",
        "models": [
          {
            "directory": "controlnet",
            "name": "Qwen-Image-InstantX-ControlNet-Inpainting.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Qwen-Image-InstantX-ControlNets/resolve/main/split_files/controlnet/Qwen-Image-InstantX-ControlNet-Inpainting.safetensors"
          }
        ],
        "ver": "0.3.51"
      },
      "size": [
        380,
        58
      ],
      "type": "ControlNetLoader",
      "widgets_values": [
        "Qwen-Image-InstantX-ControlNet-Inpainting.safetensors"
      ]
    },
    {
      "flags": {},
      "id": 39,
      "inputs": [],
      "mode": 0,
      "order": 3,
      "outputs": [
        {
          "links": [
            76,
            144,
            193
          ],
          "name": "VAE",
          "slot_index": 0,
          "type": "VAE"
        }
      ],
      "pos": [
        -90,
        230
      ],
      "properties": {
        "Node name for S&R": "VAELoader",
        "cnr_id": "comfy-core",
        "models": [
          {
            "directory": "vae",
            "name": "qwen_image_vae.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors"
          }
        ],
        "ver": "0.3.51"
      },
      "size": [
        380,
        58
      ],
      "type": "VAELoader",
      "widgets_values": [
        "qwen_image_vae.safetensors"
      ]
    },
    {
      "flags": {},
      "id": 66,
      "inputs": [
        {
          "link": 149,
          "name": "model",
          "type": "MODEL"
        }
      ],
      "mode": 0,
      "order": 26,
      "outputs": [
        {
          "links": [
            156
          ],
          "name": "MODEL",
          "type": "MODEL"
        }
      ],
      "pos": [
        860,
        -100
      ],
      "properties": {
        "Node name for S&R": "ModelSamplingAuraFlow",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        310,
        58
      ],
      "type": "ModelSamplingAuraFlow",
      "widgets_values": [
        3.1000000000000005
      ]
    },
    {
      "flags": {},
      "id": 108,
      "inputs": [
        {
          "link": 190,
          "name": "positive",
          "type": "CONDITIONING"
        },
        {
          "link": 191,
          "name": "negative",
          "type": "CONDITIONING"
        },
        {
          "link": 192,
          "name": "control_net",
          "type": "CONTROL_NET"
        },
        {
          "link": 193,
          "name": "vae",
          "type": "VAE"
        },
        {
          "link": 294,
          "name": "image",
          "type": "IMAGE"
        },
        {
          "link": 220,
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 30,
      "outputs": [
        {
          "links": [
            188
          ],
          "name": "positive",
          "type": "CONDITIONING"
        },
        {
          "links": [
            189
          ],
          "name": "negative",
          "type": "CONDITIONING"
        }
      ],
      "pos": [
        430,
        560
      ],
      "properties": {
        "Node name for S&R": "ControlNetInpaintingAliMamaApply",
        "cnr_id": "comfy-core",
        "ver": "0.3.59"
      },
      "size": [
        317.0093688964844,
        206
      ],
      "type": "ControlNetInpaintingAliMamaApply",
      "widgets_values": [
        1,
        0,
        1
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 115,
      "inputs": [],
      "mode": 0,
      "order": 4,
      "outputs": [],
      "pos": [
        -470,
        560
      ],
      "properties": {},
      "size": [
        307.56927490234375,
        169.79689025878906
      ],
      "title": "About how to create mask",
      "type": "MarkdownNote",
      "widgets_values": [
        "Right-click on the Load Image node, then click \"Open in MaskEditor\" to open it and paint the area you want to inpaint.\n\nYou can learn more about MaskEditor in the [MaskEditor Document](https://docs.comfy.org/interface/maskeditor)"
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 86,
      "inputs": [],
      "mode": 0,
      "order": 5,
      "outputs": [],
      "pos": [
        860,
        500
      ],
      "properties": {},
      "size": [
        307.4002380371094,
        127.38092803955078
      ],
      "type": "Note",
      "widgets_values": [
        "Set cfg to 1.0 for a speed boost at the cost of consistency. Samplers like res_multistep work pretty well at cfg 1.0\n\nThe official number of steps is 50 but I think that's too much. Even just 10 steps seems to work."
      ]
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 76,
      "inputs": [
        {
          "link": 293,
          "name": "pixels",
          "type": "IMAGE"
        },
        {
          "link": 144,
          "name": "vae",
          "type": "VAE"
        }
      ],
      "mode": 0,
      "order": 28,
      "outputs": [
        {
          "links": [
            208
          ],
          "name": "LATENT",
          "type": "LATENT"
        }
      ],
      "pos": [
        430,
        830
      ],
      "properties": {
        "Node name for S&R": "VAEEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        140,
        46
      ],
      "type": "VAEEncode",
      "widgets_values": []
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 122,
      "inputs": [
        {
          "link": 208,
          "name": "samples",
          "type": "LATENT"
        },
        {
          "link": 219,
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 32,
      "outputs": [
        {
          "links": [
            210
          ],
          "name": "LATENT",
          "type": "LATENT"
        }
      ],
      "pos": [
        430,
        890
      ],
      "properties": {
        "Node name for S&R": "SetLatentNoiseMask",
        "cnr_id": "comfy-core",
        "ver": "0.3.59"
      },
      "size": [
        230,
        50
      ],
      "type": "SetLatentNoiseMask",
      "widgets_values": []
    },
    {
      "flags": {},
      "id": 124,
      "inputs": [
        {
          "link": 215,
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 29,
      "outputs": [],
      "pos": [
        440,
        1100
      ],
      "properties": {
        "Node name for S&R": "MaskPreview",
        "cnr_id": "comfy-core",
        "ver": "0.3.59"
      },
      "size": [
        320,
        340
      ],
      "type": "MaskPreview",
      "widgets_values": []
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 173,
      "inputs": [],
      "mode": 0,
      "order": 6,
      "outputs": [],
      "pos": [
        880,
        1210
      ],
      "properties": {},
      "size": [
        260,
        130
      ],
      "title": "About ImageCompositeMasked",
      "type": "MarkdownNote",
      "widgets_values": [
        "Some users might want to keep the unmasked area unchanged, though with ImageCompositeMasked, we can paste the original pixels back."
      ]
    },
    {
      "flags": {},
      "id": 174,
      "inputs": [],
      "mode": 4,
      "order": 7,
      "outputs": [
        {
          "links": [
            296,
            305
          ],
          "name": "CLIP",
          "slot_index": 0,
          "type": "CLIP"
        }
      ],
      "pos": [
        2430,
        60
      ],
      "properties": {
        "Node name for S&R": "CLIPLoader",
        "cnr_id": "comfy-core",
        "models": [
          {
            "directory": "text_encoders",
            "name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors"
          }
        ],
        "ver": "0.3.51"
      },
      "size": [
        380,
        106
      ],
      "type": "CLIPLoader",
      "widgets_values": [
        "qwen_2.5_vl_7b_fp8_scaled.safetensors",
        "qwen_image",
        "default"
      ]
    },
    {
      "flags": {},
      "id": 175,
      "inputs": [],
      "mode": 4,
      "order": 8,
      "outputs": [
        {
          "links": [
            306
          ],
          "name": "MODEL",
          "slot_index": 0,
          "type": "MODEL"
        }
      ],
      "pos": [
        2430,
        -70
      ],
      "properties": {
        "Node name for S&R": "UNETLoader",
        "cnr_id": "comfy-core",
        "models": [
          {
            "directory": "diffusion_models",
            "name": "qwen_image_fp8_e4m3fn.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_fp8_e4m3fn.safetensors"
          }
        ],
        "ver": "0.3.51"
      },
      "size": [
        380,
        82
      ],
      "type": "UNETLoader",
      "widgets_values": [
        "qwen_image_fp8_e4m3fn.safetensors",
        "default"
      ]
    },
    {
      "flags": {},
      "id": 177,
      "inputs": [],
      "mode": 4,
      "order": 9,
      "outputs": [
        {
          "links": [
            301
          ],
          "name": "CONTROL_NET",
          "type": "CONTROL_NET"
        }
      ],
      "pos": [
        2430,
        330
      ],
      "properties": {
        "Node name for S&R": "ControlNetLoader",
        "cnr_id": "comfy-core",
        "models": [
          {
            "directory": "controlnet",
            "name": "Qwen-Image-InstantX-ControlNet-Inpainting.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Qwen-Image-InstantX-ControlNets/resolve/main/split_files/controlnet/Qwen-Image-InstantX-ControlNet-Inpainting.safetensors"
          }
        ],
        "ver": "0.3.51"
      },
      "size": [
        380,
        58
      ],
      "type": "ControlNetLoader",
      "widgets_values": [
        "Qwen-Image-InstantX-ControlNet-Inpainting.safetensors"
      ]
    },
    {
      "flags": {},
      "id": 180,
      "inputs": [
        {
          "link": 298,
          "name": "model",
          "type": "MODEL"
        }
      ],
      "mode": 4,
      "order": 27,
      "outputs": [
        {
          "links": [
            308
          ],
          "name": "MODEL",
          "type": "MODEL"
        }
      ],
      "pos": [
        3400,
        -110
      ],
      "properties": {
        "Node name for S&R": "ModelSamplingAuraFlow",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        310,
        58
      ],
      "type": "ModelSamplingAuraFlow",
      "widgets_values": [
        3.1000000000000005
      ]
    },
    {
      "flags": {},
      "id": 172,
      "inputs": [
        {
          "link": 292,
          "name": "image",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 23,
      "outputs": [
        {
          "links": [
            293,
            294,
            295
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        -20,
        1060
      ],
      "properties": {
        "Node name for S&R": "ImageScaleToMaxDimension",
        "cnr_id": "comfy-core",
        "ver": "0.3.59"
      },
      "size": [
        281.2027282714844,
        82
      ],
      "type": "ImageScaleToMaxDimension",
      "widgets_values": [
        "area",
        1536
      ]
    },
    {
      "flags": {},
      "id": 185,
      "inputs": [
        {
          "link": 306,
          "name": "model",
          "type": "MODEL"
        }
      ],
      "mode": 4,
      "order": 22,
      "outputs": [
        {
          "links": [
            298
          ],
          "name": "MODEL",
          "type": "MODEL"
        }
      ],
      "pos": [
        2870,
        -80
      ],
      "properties": {
        "Node name for S&R": "LoraLoaderModelOnly",
        "cnr_id": "comfy-core",
        "models": [
          {
            "directory": "loras",
            "name": "Qwen-Image-Lightning-4steps-V1.0.safetensors",
            "url": "https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Lightning-4steps-V1.0.safetensors"
          }
        ],
        "ver": "0.3.51"
      },
      "size": [
        430,
        82
      ],
      "type": "LoraLoaderModelOnly",
      "widgets_values": [
        "Qwen-Image-Lightning-4steps-V1.0.safetensors",
        1
      ]
    },
    {
      "flags": {},
      "id": 8,
      "inputs": [
        {
          "link": 128,
          "name": "samples",
          "type": "LATENT"
        },
        {
          "link": 76,
          "name": "vae",
          "type": "VAE"
        }
      ],
      "mode": 0,
      "order": 39,
      "outputs": [
        {
          "links": [
            110,
            224
          ],
          "name": "IMAGE",
          "slot_index": 0,
          "type": "IMAGE"
        }
      ],
      "pos": [
        900,
        880
      ],
      "properties": {
        "Node name for S&R": "VAEDecode",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        250,
        46
      ],
      "type": "VAEDecode",
      "widgets_values": []
    },
    {
      "flags": {},
      "id": 126,
      "inputs": [
        {
          "link": 295,
          "name": "destination",
          "type": "IMAGE"
        },
        {
          "link": 224,
          "name": "source",
          "type": "IMAGE"
        },
        {
          "link": 225,
          "name": "mask",
          "shape": 7,
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 42,
      "outputs": [
        {
          "links": [
            274
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        890,
        1000
      ],
      "properties": {
        "Node name for S&R": "ImageCompositeMasked",
        "cnr_id": "comfy-core",
        "ver": "0.3.59"
      },
      "size": [
        250,
        150
      ],
      "type": "ImageCompositeMasked",
      "widgets_values": [
        0,
        0,
        false
      ]
    },
    {
      "flags": {},
      "id": 207,
      "inputs": [
        {
          "link": 376,
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 4,
      "order": 38,
      "outputs": [],
      "pos": [
        3390,
        980
      ],
      "properties": {
        "Node name for S&R": "MaskPreview",
        "cnr_id": "comfy-core",
        "ver": "0.3.59"
      },
      "size": [
        340,
        430
      ],
      "type": "MaskPreview",
      "widgets_values": []
    },
    {
      "flags": {},
      "id": 203,
      "inputs": [
        {
          "link": 370,
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "mode": 4,
      "order": 34,
      "outputs": [],
      "pos": [
        2950,
        980
      ],
      "properties": {
        "Node name for S&R": "PreviewImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.59"
      },
      "size": [
        310,
        430
      ],
      "type": "PreviewImage",
      "widgets_values": []
    },
    {
      "flags": {},
      "id": 190,
      "inputs": [
        {
          "link": 308,
          "name": "model",
          "type": "MODEL"
        },
        {
          "link": 386,
          "name": "positive",
          "type": "CONDITIONING"
        },
        {
          "link": 387,
          "name": "negative",
          "type": "CONDITIONING"
        },
        {
          "link": 358,
          "name": "latent_image",
          "type": "LATENT"
        }
      ],
      "mode": 4,
      "order": 40,
      "outputs": [
        {
          "links": [
            312
          ],
          "name": "LATENT",
          "slot_index": 0,
          "type": "LATENT"
        }
      ],
      "pos": [
        3400,
        10
      ],
      "properties": {
        "Node name for S&R": "KSampler",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        310,
        474
      ],
      "type": "KSampler",
      "widgets_values": [
        375729975350303,
        "randomize",
        4,
        1,
        "euler",
        "simple",
        1
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 117,
      "inputs": [],
      "mode": 0,
      "order": 10,
      "outputs": [],
      "pos": [
        -470,
        1020
      ],
      "properties": {},
      "size": [
        310,
        180
      ],
      "title": "About ImageScaleToMaxDimension",
      "type": "MarkdownNote",
      "widgets_values": [
        "The input image shouldn't be too large (such as more than 3000). A too large input might cause bad results. You can enable the *ImageScaleToMaxDimension* node to download and scale the input image."
      ]
    },
    {
      "flags": {},
      "id": 71,
      "inputs": [],
      "mode": 0,
      "order": 11,
      "outputs": [
        {
          "links": [
            292
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": [
            205
          ],
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        -50,
        580
      ],
      "properties": {
        "Node name for S&R": "LoadImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        310,
        326
      ],
      "type": "LoadImage",
      "widgets_values": [
        "image_qwen_image_instantx_inpainting_controlnet_input_image.png",
        "image"
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 78,
      "inputs": [],
      "mode": 0,
      "order": 12,
      "outputs": [],
      "pos": [
        -680,
        -150
      ],
      "properties": {
        "widget_ue_connectable": {}
      },
      "size": [
        541.36865234375,
        579.70263671875
      ],
      "title": "Model links",
      "type": "MarkdownNote",
      "widgets_values": [
        "[Tutorial](https://docs.comfy.org/tutorials/image/qwen/qwen-image)\n\n\n## Model links\n\nYou can find all the models on [Huggingface](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/tree/main) or [Modelscope](https://modelscope.cn/models/Comfy-Org/Qwen-Image_ComfyUI/files)\n\n**Diffusion model**\n\n- [qwen_image_fp8_e4m3fn.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_fp8_e4m3fn.safetensors)\n\n**ControlNet**\n\n- [Qwen-Image-InstantX-ControlNet-Inpainting.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-InstantX-ControlNets/resolve/main/split_files/controlnet/Qwen-Image-InstantX-ControlNet-Inpainting.safetensors)\n\n\n**LoRA**\n\n- [Qwen-Image-Lightning-4steps-V1.0.safetensors](https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Lightning-4steps-V1.0.safetensors)\n\n**Text encoder**\n\n- [qwen_2.5_vl_7b_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors)\n\n**VAE**\n\n- [qwen_image_vae.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors)\n\n\nModel Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│   ├── 📂 diffusion_models/\n│   │   ├── qwen_image_fp8_e4m3fn.safetensors\n│   │   └── qwen_image_distill_full_fp8_e4m3fn.safetensors\n│   ├── 📂 loras/\n│   │   └── Qwen-Image-Lightning-8steps-V1.0.safetensors\n│   ├── 📂 controlnet/ \n│   │   └── Qwen-Image-InstantX-ControlNet-Inpainting.safetensors\n│   ├── 📂 vae/\n│   │   └── qwen_image_vae.safetensors\n│   └── 📂 text_encoders/\n│       └── qwen_2.5_vl_7b_fp8_scaled.safetensors\n```\n"
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 6,
      "inputs": [
        {
          "link": 74,
          "name": "clip",
          "type": "CLIP"
        }
      ],
      "mode": 0,
      "order": 17,
      "outputs": [
        {
          "links": [
            190
          ],
          "name": "CONDITIONING",
          "slot_index": 0,
          "type": "CONDITIONING"
        }
      ],
      "pos": [
        330,
        110
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        460,
        164.31304931640625
      ],
      "title": "CLIP Text Encode (Positive Prompt)",
      "type": "CLIPTextEncode",
      "widgets_values": [
        "The Queen, on a throne, surrounded by Knights, HD, Realistic, Octane Render, Unreal engine"
      ]
    },
    {
      "flags": {},
      "id": 202,
      "inputs": [
        {
          "link": 351,
          "name": "image",
          "type": "IMAGE"
        }
      ],
      "mode": 4,
      "order": 25,
      "outputs": [
        {
          "links": [
            366
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": [
            365
          ],
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        2490,
        1030
      ],
      "properties": {
        "Node name for S&R": "ImagePadForOutpaint",
        "cnr_id": "comfy-core",
        "ver": "0.3.59"
      },
      "size": [
        270,
        174
      ],
      "type": "ImagePadForOutpaint",
      "widgets_values": [
        200,
        200,
        0,
        200,
        0
      ]
    },
    {
      "flags": {},
      "id": 121,
      "inputs": [
        {
          "link": 205,
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 24,
      "outputs": [
        {
          "links": [
            215,
            219,
            220,
            225
          ],
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        430,
        950
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "proxyWidgets": [
          [
            "-1",
            "expand"
          ],
          [
            "-1",
            "blur_radius"
          ]
        ],
        "ver": "0.3.59"
      },
      "size": [
        330,
        100
      ],
      "type": "cade3e30-0eb2-4fd2-bf6e-8518f3a96e0c",
      "widgets_values": [
        0,
        31
      ]
    },
    {
      "flags": {},
      "id": 220,
      "inputs": [
        {
          "link": 377,
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 4,
      "order": 33,
      "outputs": [
        {
          "links": [
            374,
            375,
            376
          ],
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        2480,
        1450
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "proxyWidgets": [
          [
            "-1",
            "expand"
          ],
          [
            "-1",
            "blur_radius"
          ]
        ],
        "ver": "0.3.59"
      },
      "size": [
        330,
        100
      ],
      "type": "f93c215e-c393-460e-9534-ed2c3d8a652e",
      "widgets_values": [
        20,
        31
      ]
    },
    {
      "flags": {
        "collapsed": false
      },
      "id": 195,
      "inputs": [
        {
          "link": 371,
          "name": "pixels",
          "type": "IMAGE"
        },
        {
          "link": 317,
          "name": "vae",
          "type": "VAE"
        }
      ],
      "mode": 4,
      "order": 35,
      "outputs": [
        {
          "links": [
            358
          ],
          "name": "LATENT",
          "type": "LATENT"
        }
      ],
      "pos": [
        2950,
        820
      ],
      "properties": {
        "Node name for S&R": "VAEEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        140,
        46
      ],
      "type": "VAEEncode",
      "widgets_values": []
    },
    {
      "flags": {},
      "id": 181,
      "inputs": [
        {
          "link": 299,
          "name": "positive",
          "type": "CONDITIONING"
        },
        {
          "link": 300,
          "name": "negative",
          "type": "CONDITIONING"
        },
        {
          "link": 301,
          "name": "control_net",
          "type": "CONTROL_NET"
        },
        {
          "link": 384,
          "name": "vae",
          "type": "VAE"
        },
        {
          "link": 385,
          "name": "image",
          "type": "IMAGE"
        },
        {
          "link": 375,
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 4,
      "order": 37,
      "outputs": [
        {
          "links": [
            386
          ],
          "name": "positive",
          "type": "CONDITIONING"
        },
        {
          "links": [
            387
          ],
          "name": "negative",
          "type": "CONDITIONING"
        }
      ],
      "pos": [
        2940,
        560
      ],
      "properties": {
        "Node name for S&R": "ControlNetInpaintingAliMamaApply",
        "cnr_id": "comfy-core",
        "ver": "0.3.59"
      },
      "size": [
        317.0093688964844,
        206
      ],
      "type": "ControlNetInpaintingAliMamaApply",
      "widgets_values": [
        1,
        0,
        1
      ]
    },
    {
      "flags": {},
      "id": 178,
      "inputs": [],
      "mode": 4,
      "order": 13,
      "outputs": [
        {
          "links": [
            313,
            317,
            384
          ],
          "name": "VAE",
          "slot_index": 0,
          "type": "VAE"
        }
      ],
      "pos": [
        2430,
        220
      ],
      "properties": {
        "Node name for S&R": "VAELoader",
        "cnr_id": "comfy-core",
        "models": [
          {
            "directory": "vae",
            "name": "qwen_image_vae.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors"
          }
        ],
        "ver": "0.3.51"
      },
      "size": [
        380,
        58
      ],
      "type": "VAELoader",
      "widgets_values": [
        "qwen_image_vae.safetensors"
      ]
    },
    {
      "flags": {},
      "id": 219,
      "inputs": [
        {
          "link": 365,
          "name": "mask",
          "type": "MASK"
        },
        {
          "link": 366,
          "name": "image",
          "type": "IMAGE"
        }
      ],
      "mode": 4,
      "order": 31,
      "outputs": [
        {
          "links": [
            377
          ],
          "name": "MASK",
          "type": "MASK"
        },
        {
          "links": [
            369,
            370,
            371,
            385
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        2480,
        1260
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "proxyWidgets": [
          [
            "-1",
            "value"
          ]
        ],
        "ver": "0.3.65"
      },
      "size": [
        280,
        80
      ],
      "type": "2a4b2cc0-db37-4302-a067-da392f38f06b",
      "widgets_values": [
        1536
      ]
    },
    {
      "flags": {},
      "id": 189,
      "inputs": [
        {
          "link": 307,
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "mode": 4,
      "order": 47,
      "outputs": [],
      "pos": [
        3770,
        990
      ],
      "properties": {
        "Node name for S&R": "SaveImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        930,
        800
      ],
      "type": "SaveImage",
      "widgets_values": [
        "ComfyUI"
      ]
    },
    {
      "flags": {},
      "id": 193,
      "inputs": [],
      "mode": 4,
      "order": 14,
      "outputs": [
        {
          "links": [
            351
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": [],
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        2470,
        570
      ],
      "properties": {
        "Node name for S&R": "LoadImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        310,
        326
      ],
      "type": "LoadImage",
      "widgets_values": [
        "image_qwen_image_instantx_inpainting_controlnet_input_image.png",
        "image"
      ]
    },
    {
      "flags": {},
      "id": 192,
      "inputs": [
        {
          "link": 314,
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "mode": 4,
      "order": 45,
      "outputs": [],
      "pos": [
        3770,
        70
      ],
      "properties": {
        "Node name for S&R": "SaveImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        940,
        850
      ],
      "type": "SaveImage",
      "widgets_values": [
        "ComfyUI"
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 182,
      "inputs": [
        {
          "link": 305,
          "name": "clip",
          "type": "CLIP"
        }
      ],
      "mode": 4,
      "order": 21,
      "outputs": [
        {
          "links": [
            299
          ],
          "name": "CONDITIONING",
          "slot_index": 0,
          "type": "CONDITIONING"
        }
      ],
      "pos": [
        2850,
        100
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        460,
        164.31304931640625
      ],
      "title": "CLIP Text Encode (Positive Prompt)",
      "type": "CLIPTextEncode",
      "widgets_values": [
        "The King, on a throne, surrounded by Knights, HD, Realistic, Octane Render, Unreal engine"
      ]
    },
    {
      "bgcolor": "#335",
      "color": "#223",
      "flags": {},
      "id": 176,
      "inputs": [
        {
          "link": 296,
          "name": "clip",
          "type": "CLIP"
        }
      ],
      "mode": 4,
      "order": 20,
      "outputs": [
        {
          "links": [
            300
          ],
          "name": "CONDITIONING",
          "slot_index": 0,
          "type": "CONDITIONING"
        }
      ],
      "pos": [
        2850,
        310
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        460,
        140
      ],
      "title": "CLIP Text Encode (Negative Prompt)",
      "type": "CLIPTextEncode",
      "widgets_values": [
        ""
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 68,
      "inputs": [],
      "mode": 0,
      "order": 15,
      "outputs": [],
      "pos": [
        850,
        -300
      ],
      "properties": {},
      "size": [
        310,
        90
      ],
      "type": "Note",
      "widgets_values": [
        "Increase the shift if you get too many blury/dark/bad images. Decrease if you want to try increasing detail."
      ]
    },
    {
      "flags": {},
      "id": 80,
      "inputs": [
        {
          "link": 145,
          "name": "model",
          "type": "MODEL"
        }
      ],
      "mode": 4,
      "order": 19,
      "outputs": [
        {
          "links": [
            149
          ],
          "name": "MODEL",
          "type": "MODEL"
        }
      ],
      "pos": [
        350,
        -70
      ],
      "properties": {
        "Node name for S&R": "LoraLoaderModelOnly",
        "cnr_id": "comfy-core",
        "models": [
          {
            "directory": "loras",
            "name": "Qwen-Image-Lightning-4steps-V1.0.safetensors",
            "url": "https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Lightning-4steps-V1.0.safetensors"
          }
        ],
        "ver": "0.3.51"
      },
      "size": [
        430,
        82
      ],
      "type": "LoraLoaderModelOnly",
      "widgets_values": [
        "Qwen-Image-Lightning-4steps-V1.0.safetensors",
        1
      ]
    },
    {
      "flags": {},
      "id": 3,
      "inputs": [
        {
          "link": 156,
          "name": "model",
          "type": "MODEL"
        },
        {
          "link": 188,
          "name": "positive",
          "type": "CONDITIONING"
        },
        {
          "link": 189,
          "name": "negative",
          "type": "CONDITIONING"
        },
        {
          "link": 210,
          "name": "latent_image",
          "type": "LATENT"
        }
      ],
      "mode": 0,
      "order": 36,
      "outputs": [
        {
          "links": [
            128
          ],
          "name": "LATENT",
          "slot_index": 0,
          "type": "LATENT"
        }
      ],
      "pos": [
        860,
        20
      ],
      "properties": {
        "Node name for S&R": "KSampler",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        310,
        430
      ],
      "type": "KSampler",
      "widgets_values": [
        134554158057228,
        "randomize",
        20,
        2.5,
        "euler",
        "simple",
        1
      ]
    },
    {
      "flags": {},
      "id": 163,
      "inputs": [
        {
          "link": 274,
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 44,
      "outputs": [],
      "pos": [
        1270,
        840
      ],
      "properties": {
        "Node name for S&R": "SaveImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        940,
        970
      ],
      "type": "SaveImage",
      "widgets_values": [
        "ComfyUI"
      ]
    },
    {
      "flags": {},
      "id": 60,
      "inputs": [
        {
          "link": 110,
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 41,
      "outputs": [],
      "pos": [
        1280,
        -100
      ],
      "properties": {
        "Node name for S&R": "SaveImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        930,
        880
      ],
      "type": "SaveImage",
      "widgets_values": [
        "ComfyUI"
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 223,
      "inputs": [],
      "mode": 0,
      "order": 16,
      "outputs": [],
      "pos": [
        860,
        670
      ],
      "properties": {},
      "size": [
        300,
        160
      ],
      "title": "Note: KSampler settings",
      "type": "MarkdownNote",
      "widgets_values": [
        "You can test and find the best setting by yourself. The following table is for reference.\n| Parameters   | Qwen Team | Comfy Original | with 4steps LoRA |\n|--------|---------|------------|---------------------------|\n| Steps  | 50      | 20         | 4                         |\n| CFG    | 4.0     | 2.5        | 1.0                       |"
      ]
    },
    {
      "flags": {},
      "id": 191,
      "inputs": [
        {
          "link": 312,
          "name": "samples",
          "type": "LATENT"
        },
        {
          "link": 313,
          "name": "vae",
          "type": "VAE"
        }
      ],
      "mode": 4,
      "order": 43,
      "outputs": [
        {
          "links": [
            314,
            323
          ],
          "name": "IMAGE",
          "slot_index": 0,
          "type": "IMAGE"
        }
      ],
      "pos": [
        3440,
        580
      ],
      "properties": {
        "Node name for S&R": "VAEDecode",
        "cnr_id": "comfy-core",
        "ver": "0.3.51"
      },
      "size": [
        250,
        46
      ],
      "type": "VAEDecode",
      "widgets_values": []
    },
    {
      "flags": {},
      "id": 200,
      "inputs": [
        {
          "link": 369,
          "name": "destination",
          "type": "IMAGE"
        },
        {
          "link": 323,
          "name": "source",
          "type": "IMAGE"
        },
        {
          "link": 374,
          "name": "mask",
          "shape": 7,
          "type": "MASK"
        }
      ],
      "mode": 4,
      "order": 46,
      "outputs": [
        {
          "links": [
            307
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        3440,
        670
      ],
      "properties": {
        "Node name for S&R": "ImageCompositeMasked",
        "cnr_id": "comfy-core",
        "ver": "0.3.59"
      },
      "size": [
        250,
        150
      ],
      "type": "ImageCompositeMasked",
      "widgets_values": [
        0,
        0,
        false
      ]
    }
  ],
  "revision": 0,
  "version": 0.4
}