{
  "config": {},
  "definitions": {
    "subgraphs": [
      {
        "config": {},
        "description": "Splits an image into a 2×2 grid of four equal tiles.",
        "extra": {
          "links_added_by_ue": [],
          "ue_links": []
        },
        "groups": [
          {
            "bounding": [
              380,
              360,
              1710,
              2270
            ],
            "color": "#3f789e",
            "flags": {},
            "id": 1,
            "title": "Crop Images 2x2"
          }
        ],
        "id": "663da6e9-8b62-4291-a9d6-e4b8fd672197",
        "inputNode": {
          "bounding": [
            -10,
            1570,
            120,
            60
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "741854dd-bfb1-4700-ba8c-3b9dea59d021",
            "linkIds": [
              2,
              11,
              13,
              30,
              32
            ],
            "localized_name": "image",
            "name": "image",
            "pos": [
              90,
              1590
            ],
            "type": "IMAGE"
          }
        ],
        "links": [
          {
            "id": 3,
            "origin_id": 55,
            "origin_slot": 0,
            "target_id": 54,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 4,
            "origin_id": 56,
            "origin_slot": 0,
            "target_id": 54,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 9,
            "origin_id": 58,
            "origin_slot": 0,
            "target_id": 57,
            "target_slot": 1,
            "type": "BOUNDING_BOX"
          },
          {
            "id": 7,
            "origin_id": 54,
            "origin_slot": 1,
            "target_id": 58,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 8,
            "origin_id": 59,
            "origin_slot": 1,
            "target_id": 58,
            "target_slot": 3,
            "type": "INT"
          },
          {
            "id": 5,
            "origin_id": 55,
            "origin_slot": 1,
            "target_id": 59,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 6,
            "origin_id": 56,
            "origin_slot": 0,
            "target_id": 59,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 12,
            "origin_id": 141,
            "origin_slot": 0,
            "target_id": 140,
            "target_slot": 1,
            "type": "BOUNDING_BOX"
          },
          {
            "id": 23,
            "origin_id": 59,
            "origin_slot": 1,
            "target_id": 141,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 14,
            "origin_id": 54,
            "origin_slot": 1,
            "target_id": 141,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 247,
            "origin_id": 139,
            "origin_slot": 1,
            "target_id": 141,
            "target_slot": 3,
            "type": "INT"
          },
          {
            "id": 28,
            "origin_id": 54,
            "origin_slot": 1,
            "target_id": 142,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 243,
            "origin_id": 138,
            "origin_slot": 1,
            "target_id": 142,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 27,
            "origin_id": 59,
            "origin_slot": 1,
            "target_id": 142,
            "target_slot": 3,
            "type": "INT"
          },
          {
            "id": 29,
            "origin_id": 142,
            "origin_slot": 0,
            "target_id": 143,
            "target_slot": 1,
            "type": "BOUNDING_BOX"
          },
          {
            "id": 35,
            "origin_id": 145,
            "origin_slot": 0,
            "target_id": 144,
            "target_slot": 1,
            "type": "BOUNDING_BOX"
          },
          {
            "id": 40,
            "origin_id": 54,
            "origin_slot": 1,
            "target_id": 145,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 39,
            "origin_id": 59,
            "origin_slot": 1,
            "target_id": 145,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 244,
            "origin_id": 138,
            "origin_slot": 1,
            "target_id": 145,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 248,
            "origin_id": 139,
            "origin_slot": 1,
            "target_id": 145,
            "target_slot": 3,
            "type": "INT"
          },
          {
            "id": 241,
            "origin_id": 55,
            "origin_slot": 0,
            "target_id": 138,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 242,
            "origin_id": 54,
            "origin_slot": 1,
            "target_id": 138,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 245,
            "origin_id": 55,
            "origin_slot": 1,
            "target_id": 139,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 246,
            "origin_id": 59,
            "origin_slot": 1,
            "target_id": 139,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 2,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 55,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 11,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 57,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 13,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 140,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 30,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 143,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 32,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 144,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 41,
            "origin_id": 57,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 42,
            "origin_id": 140,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 43,
            "origin_id": 143,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 2,
            "type": "IMAGE"
          },
          {
            "id": 44,
            "origin_id": 144,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 3,
            "type": "IMAGE"
          },
          {
            "id": 236,
            "origin_id": 57,
            "origin_slot": 0,
            "target_id": 137,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 237,
            "origin_id": 143,
            "origin_slot": 0,
            "target_id": 137,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 238,
            "origin_id": 140,
            "origin_slot": 0,
            "target_id": 137,
            "target_slot": 2,
            "type": "IMAGE"
          },
          {
            "id": 239,
            "origin_id": 144,
            "origin_slot": 0,
            "target_id": 137,
            "target_slot": 3,
            "type": "IMAGE"
          },
          {
            "id": 240,
            "origin_id": 137,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 4,
            "type": "IMAGE"
          }
        ],
        "name": "Crop Images 2x2",
        "nodes": [
          {
            "flags": {},
            "id": 54,
            "inputs": [
              {
                "label": "a",
                "link": 3,
                "localized_name": "values.a",
                "name": "values.a",
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "label": "b",
                "link": 4,
                "localized_name": "values.b",
                "name": "values.b",
                "shape": 7,
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "label": "c",
                "link": null,
                "localized_name": "values.c",
                "name": "values.c",
                "shape": 7,
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "link": null,
                "localized_name": "expression",
                "name": "expression",
                "type": "STRING",
                "widget": {
                  "name": "expression"
                }
              }
            ],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": null,
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              },
              {
                "links": [
                  7,
                  14,
                  28,
                  40,
                  242
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "BOOL",
                "name": "BOOL",
                "type": "BOOLEAN"
              }
            ],
            "pos": [
              740,
              1390
            ],
            "properties": {
              "Node name for S&R": "ComfyMathExpression",
              "cnr_id": "comfy-core",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.7",
                "widget_ue_connectable": {}
              },
              "ver": "0.18.1"
            },
            "size": [
              370,
              190
            ],
            "type": "ComfyMathExpression",
            "widgets_values": [
              "max(1, int(a/b))"
            ]
          },
          {
            "flags": {},
            "id": 55,
            "inputs": [
              {
                "link": 2,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  3,
                  241
                ],
                "localized_name": "width",
                "name": "width",
                "type": "INT"
              },
              {
                "links": [
                  5,
                  245
                ],
                "localized_name": "height",
                "name": "height",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "batch_size",
                "name": "batch_size",
                "type": "INT"
              }
            ],
            "pos": [
              390,
              1450
            ],
            "properties": {
              "Node name for S&R": "GetImageSize",
              "cnr_id": "comfy-core",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.7",
                "widget_ue_connectable": {}
              },
              "ver": "0.18.1"
            },
            "size": [
              230,
              120
            ],
            "type": "GetImageSize",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 56,
            "inputs": [
              {
                "link": null,
                "localized_name": "value",
                "name": "value",
                "type": "INT",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  4,
                  6
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              }
            ],
            "pos": [
              390,
              1650
            ],
            "properties": {
              "Node name for S&R": "PrimitiveInt",
              "cnr_id": "comfy-core",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.7",
                "widget_ue_connectable": {}
              },
              "ver": "0.18.1"
            },
            "size": [
              230,
              110
            ],
            "type": "PrimitiveInt",
            "widgets_values": [
              2,
              "fixed"
            ]
          },
          {
            "flags": {},
            "id": 57,
            "inputs": [
              {
                "link": 11,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 9,
                "localized_name": "crop_region",
                "name": "crop_region",
                "type": "BOUNDING_BOX",
                "widget": {
                  "name": "crop_region"
                }
              }
            ],
            "mode": 0,
            "order": 3,
            "outputs": [
              {
                "links": [
                  41,
                  236
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              1710,
              430
            ],
            "properties": {
              "Node name for S&R": "ImageCropV2",
              "cnr_id": "comfy-core",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.7",
                "widget_ue_connectable": {}
              },
              "ver": "0.18.1"
            },
            "size": [
              300,
              480
            ],
            "type": "ImageCropV2",
            "widgets_values": [
              {
                "height": 512,
                "width": 512,
                "x": 0,
                "y": 0
              },
              0,
              0,
              512,
              512
            ]
          },
          {
            "flags": {},
            "id": 58,
            "inputs": [
              {
                "link": null,
                "localized_name": "x",
                "name": "x",
                "type": "INT",
                "widget": {
                  "name": "x"
                }
              },
              {
                "link": null,
                "localized_name": "y",
                "name": "y",
                "type": "INT",
                "widget": {
                  "name": "y"
                }
              },
              {
                "link": 7,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 8,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              }
            ],
            "mode": 0,
            "order": 4,
            "outputs": [
              {
                "links": [
                  9
                ],
                "localized_name": "BOUNDING_BOX",
                "name": "BOUNDING_BOX",
                "type": "BOUNDING_BOX"
              }
            ],
            "pos": [
              1370,
              570
            ],
            "properties": {
              "Node name for S&R": "PrimitiveBoundingBox",
              "cnr_id": "comfy-core",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.7",
                "widget_ue_connectable": {}
              },
              "ver": "0.18.1"
            },
            "size": [
              270,
              200
            ],
            "type": "PrimitiveBoundingBox",
            "widgets_values": [
              0,
              0,
              512,
              512
            ]
          },
          {
            "flags": {},
            "id": 59,
            "inputs": [
              {
                "label": "a",
                "link": 5,
                "localized_name": "values.a",
                "name": "values.a",
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "label": "b",
                "link": 6,
                "localized_name": "values.b",
                "name": "values.b",
                "shape": 7,
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "label": "c",
                "link": null,
                "localized_name": "values.c",
                "name": "values.c",
                "shape": 7,
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "link": null,
                "localized_name": "expression",
                "name": "expression",
                "type": "STRING",
                "widget": {
                  "name": "expression"
                }
              }
            ],
            "mode": 0,
            "order": 5,
            "outputs": [
              {
                "links": null,
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              },
              {
                "links": [
                  8,
                  23,
                  27,
                  39,
                  246
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "BOOL",
                "name": "BOOL",
                "type": "BOOLEAN"
              }
            ],
            "pos": [
              750,
              1650
            ],
            "properties": {
              "Node name for S&R": "ComfyMathExpression",
              "cnr_id": "comfy-core",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.7",
                "widget_ue_connectable": {}
              },
              "ver": "0.18.1"
            },
            "size": [
              370,
              190
            ],
            "type": "ComfyMathExpression",
            "widgets_values": [
              "max(1, int(a/b))"
            ]
          },
          {
            "flags": {},
            "id": 138,
            "inputs": [
              {
                "label": "a",
                "link": 241,
                "localized_name": "values.a",
                "name": "values.a",
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "label": "b",
                "link": 242,
                "localized_name": "values.b",
                "name": "values.b",
                "shape": 7,
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "label": "c",
                "link": null,
                "localized_name": "values.c",
                "name": "values.c",
                "shape": 7,
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "link": null,
                "localized_name": "expression",
                "name": "expression",
                "type": "STRING",
                "widget": {
                  "name": "expression"
                }
              }
            ],
            "mode": 0,
            "order": 7,
            "outputs": [
              {
                "links": null,
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              },
              {
                "links": [
                  243,
                  244
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "BOOL",
                "name": "BOOL",
                "type": "BOOLEAN"
              }
            ],
            "pos": [
              1170,
              1210
            ],
            "properties": {
              "Node name for S&R": "ComfyMathExpression",
              "cnr_id": "comfy-core",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.7",
                "widget_ue_connectable": {}
              },
              "ver": "0.18.1"
            },
            "size": [
              420,
              190
            ],
            "title": "Math Expression (Right Width)",
            "type": "ComfyMathExpression",
            "widgets_values": [
              "max(1, a - b)"
            ]
          },
          {
            "flags": {},
            "id": 139,
            "inputs": [
              {
                "label": "a",
                "link": 245,
                "localized_name": "values.a",
                "name": "values.a",
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "label": "b",
                "link": 246,
                "localized_name": "values.b",
                "name": "values.b",
                "shape": 7,
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "label": "c",
                "link": null,
                "localized_name": "values.c",
                "name": "values.c",
                "shape": 7,
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "link": null,
                "localized_name": "expression",
                "name": "expression",
                "type": "STRING",
                "widget": {
                  "name": "expression"
                }
              }
            ],
            "mode": 0,
            "order": 8,
            "outputs": [
              {
                "links": null,
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              },
              {
                "links": [
                  247,
                  248
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "BOOL",
                "name": "BOOL",
                "type": "BOOLEAN"
              }
            ],
            "pos": [
              1170,
              1860
            ],
            "properties": {
              "Node name for S&R": "ComfyMathExpression",
              "cnr_id": "comfy-core",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.7",
                "widget_ue_connectable": {}
              },
              "ver": "0.18.1"
            },
            "size": [
              420,
              190
            ],
            "title": "Math Expression (Bottom Height)",
            "type": "ComfyMathExpression",
            "widgets_values": [
              "max(1, a - b)"
            ]
          },
          {
            "flags": {},
            "id": 140,
            "inputs": [
              {
                "link": 13,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 12,
                "localized_name": "crop_region",
                "name": "crop_region",
                "type": "BOUNDING_BOX",
                "widget": {
                  "name": "crop_region"
                }
              }
            ],
            "mode": 0,
            "order": 9,
            "outputs": [
              {
                "links": [
                  42,
                  238
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              1740,
              1600
            ],
            "properties": {
              "Node name for S&R": "ImageCropV2",
              "cnr_id": "comfy-core",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.7",
                "widget_ue_connectable": {}
              },
              "ver": "0.18.1"
            },
            "size": [
              300,
              480
            ],
            "type": "ImageCropV2",
            "widgets_values": [
              {
                "height": 512,
                "width": 512,
                "x": 0,
                "y": 0
              },
              0,
              0,
              512,
              512
            ]
          },
          {
            "flags": {},
            "id": 141,
            "inputs": [
              {
                "link": null,
                "localized_name": "x",
                "name": "x",
                "type": "INT",
                "widget": {
                  "name": "x"
                }
              },
              {
                "link": 23,
                "localized_name": "y",
                "name": "y",
                "type": "INT",
                "widget": {
                  "name": "y"
                }
              },
              {
                "link": 14,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 247,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              }
            ],
            "mode": 0,
            "order": 10,
            "outputs": [
              {
                "links": [
                  12
                ],
                "localized_name": "BOUNDING_BOX",
                "name": "BOUNDING_BOX",
                "type": "BOUNDING_BOX"
              }
            ],
            "pos": [
              1350,
              1780
            ],
            "properties": {
              "Node name for S&R": "PrimitiveBoundingBox",
              "cnr_id": "comfy-core",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.7",
                "widget_ue_connectable": {}
              },
              "ver": "0.18.1"
            },
            "size": [
              270,
              200
            ],
            "type": "PrimitiveBoundingBox",
            "widgets_values": [
              0,
              0,
              512,
              512
            ]
          },
          {
            "flags": {},
            "id": 142,
            "inputs": [
              {
                "link": 28,
                "localized_name": "x",
                "name": "x",
                "type": "INT",
                "widget": {
                  "name": "x"
                }
              },
              {
                "link": null,
                "localized_name": "y",
                "name": "y",
                "type": "INT",
                "widget": {
                  "name": "y"
                }
              },
              {
                "link": 243,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 27,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              }
            ],
            "mode": 0,
            "order": 11,
            "outputs": [
              {
                "links": [
                  29
                ],
                "localized_name": "BOUNDING_BOX",
                "name": "BOUNDING_BOX",
                "type": "BOUNDING_BOX"
              }
            ],
            "pos": [
              1350,
              1200
            ],
            "properties": {
              "Node name for S&R": "PrimitiveBoundingBox",
              "cnr_id": "comfy-core",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.7",
                "widget_ue_connectable": {}
              },
              "ver": "0.18.1"
            },
            "size": [
              270,
              200
            ],
            "type": "PrimitiveBoundingBox",
            "widgets_values": [
              6,
              0,
              512,
              512
            ]
          },
          {
            "flags": {},
            "id": 143,
            "inputs": [
              {
                "link": 30,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 29,
                "localized_name": "crop_region",
                "name": "crop_region",
                "type": "BOUNDING_BOX",
                "widget": {
                  "name": "crop_region"
                }
              }
            ],
            "mode": 0,
            "order": 12,
            "outputs": [
              {
                "links": [
                  43,
                  237
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              1720,
              1050
            ],
            "properties": {
              "Node name for S&R": "ImageCropV2",
              "cnr_id": "comfy-core",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.7",
                "widget_ue_connectable": {}
              },
              "ver": "0.18.1"
            },
            "size": [
              300,
              480
            ],
            "type": "ImageCropV2",
            "widgets_values": [
              {
                "height": 512,
                "width": 512,
                "x": 0,
                "y": 0
              },
              0,
              0,
              512,
              512
            ]
          },
          {
            "flags": {},
            "id": 144,
            "inputs": [
              {
                "link": 32,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 35,
                "localized_name": "crop_region",
                "name": "crop_region",
                "type": "BOUNDING_BOX",
                "widget": {
                  "name": "crop_region"
                }
              }
            ],
            "mode": 0,
            "order": 13,
            "outputs": [
              {
                "links": [
                  44,
                  239
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              1740,
              2130
            ],
            "properties": {
              "Node name for S&R": "ImageCropV2",
              "cnr_id": "comfy-core",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.7",
                "widget_ue_connectable": {}
              },
              "ver": "0.18.1"
            },
            "size": [
              300,
              480
            ],
            "type": "ImageCropV2",
            "widgets_values": [
              {
                "height": 512,
                "width": 512,
                "x": 0,
                "y": 0
              },
              0,
              0,
              512,
              512
            ]
          },
          {
            "flags": {},
            "id": 145,
            "inputs": [
              {
                "link": 40,
                "localized_name": "x",
                "name": "x",
                "type": "INT",
                "widget": {
                  "name": "x"
                }
              },
              {
                "link": 39,
                "localized_name": "y",
                "name": "y",
                "type": "INT",
                "widget": {
                  "name": "y"
                }
              },
              {
                "link": 244,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 248,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              }
            ],
            "mode": 0,
            "order": 14,
            "outputs": [
              {
                "links": [
                  35
                ],
                "localized_name": "BOUNDING_BOX",
                "name": "BOUNDING_BOX",
                "type": "BOUNDING_BOX"
              }
            ],
            "pos": [
              1370,
              2280
            ],
            "properties": {
              "Node name for S&R": "PrimitiveBoundingBox",
              "cnr_id": "comfy-core",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.7",
                "widget_ue_connectable": {}
              },
              "ver": "0.18.1"
            },
            "size": [
              270,
              200
            ],
            "type": "PrimitiveBoundingBox",
            "widgets_values": [
              6,
              0,
              512,
              512
            ]
          },
          {
            "flags": {},
            "id": 137,
            "inputs": [
              {
                "label": "image0",
                "link": 236,
                "localized_name": "images.image0",
                "name": "images.image0",
                "type": "IMAGE"
              },
              {
                "label": "image1",
                "link": 237,
                "localized_name": "images.image1",
                "name": "images.image1",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "label": "image2",
                "link": 238,
                "localized_name": "images.image2",
                "name": "images.image2",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "label": "image3",
                "link": 239,
                "localized_name": "images.image3",
                "name": "images.image3",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "label": "image4",
                "link": null,
                "localized_name": "images.image4",
                "name": "images.image4",
                "shape": 7,
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 6,
            "outputs": [
              {
                "links": [
                  240
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              2520,
              1540
            ],
            "properties": {
              "Node name for S&R": "BatchImagesNode",
              "cnr_id": "comfy-core",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.7",
                "widget_ue_connectable": {}
              },
              "ver": "0.18.1"
            },
            "size": [
              230,
              170
            ],
            "type": "BatchImagesNode",
            "widgets_values": []
          }
        ],
        "outputNode": {
          "bounding": [
            2919.9998608196274,
            1435,
            120,
            140
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "0eaca6d4-679a-433e-9703-bfa6dceacb18",
            "label": "top_left",
            "linkIds": [
              41
            ],
            "localized_name": "IMAGE",
            "name": "IMAGE",
            "pos": [
              2939.9998608196274,
              1455
            ],
            "type": "IMAGE"
          },
          {
            "id": "fff5a1ad-3a74-4c87-938c-ee0fff55f840",
            "label": "bottom_left",
            "linkIds": [
              42
            ],
            "localized_name": "IMAGE_1",
            "name": "IMAGE_1",
            "pos": [
              2939.9998608196274,
              1475
            ],
            "type": "IMAGE"
          },
          {
            "id": "08f40978-fb25-4d98-b716-b61e43b16043",
            "label": "top_right",
            "linkIds": [
              43
            ],
            "localized_name": "IMAGE_2",
            "name": "IMAGE_2",
            "pos": [
              2939.9998608196274,
              1495
            ],
            "type": "IMAGE"
          },
          {
            "id": "17b9416f-3369-43c1-b62f-3e31fc2a7e32",
            "label": "bottom_right",
            "linkIds": [
              44
            ],
            "localized_name": "IMAGE_3",
            "name": "IMAGE_3",
            "pos": [
              2939.9998608196274,
              1515
            ],
            "type": "IMAGE"
          },
          {
            "id": "430e2f3b-c617-4549-9daf-3ebf5be423a3",
            "label": "images",
            "linkIds": [
              240
            ],
            "name": "IMAGE_4",
            "pos": [
              2939.9998608196274,
              1535
            ],
            "type": "IMAGE"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 5,
          "lastLinkId": 288,
          "lastNodeId": 161,
          "lastRerouteId": 11
        },
        "version": 1,
        "widgets": []
      }
    ]
  },
  "extra": {
    "VHS_KeepIntermediate": true,
    "VHS_MetadataImage": true,
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "ds": {
      "offset": [
        -890.2251364816775,
        622.9634500655095
      ],
      "scale": 0.4929071207969622
    },
    "frontendVersion": "1.35.4",
    "linkExtensions": [
      {
        "id": 247,
        "parentId": 3
      },
      {
        "id": 248,
        "parentId": 4
      },
      {
        "id": 249,
        "parentId": 1
      },
      {
        "id": 250,
        "parentId": 2
      },
      {
        "id": 251,
        "parentId": 5
      },
      {
        "id": 270,
        "parentId": 8
      },
      {
        "id": 287,
        "parentId": 10
      },
      {
        "id": 288,
        "parentId": 9
      }
    ],
    "reroutes": [
      {
        "id": 1,
        "linkIds": [
          249
        ],
        "pos": [
          2140,
          -106
        ]
      },
      {
        "id": 2,
        "linkIds": [
          250
        ],
        "pos": [
          2090,
          -86
        ]
      },
      {
        "id": 3,
        "linkIds": [
          247
        ],
        "pos": [
          1550,
          144
        ]
      },
      {
        "id": 4,
        "linkIds": [
          248
        ],
        "pos": [
          1540,
          634
        ]
      },
      {
        "id": 5,
        "linkIds": [
          251
        ],
        "pos": [
          2610,
          -56
        ]
      },
      {
        "id": 7,
        "linkIds": [
          270
        ],
        "pos": [
          50,
          1204
        ]
      },
      {
        "id": 8,
        "linkIds": [
          270
        ],
        "parentId": 7,
        "pos": [
          3200,
          1204
        ]
      },
      {
        "id": 9,
        "linkIds": [
          287,
          288
        ],
        "pos": [
          40,
          24
        ]
      },
      {
        "id": 10,
        "linkIds": [
          287
        ],
        "parentId": 9,
        "pos": [
          3220,
          14
        ]
      }
    ]
  },
  "groups": [
    {
      "bounding": [
        360,
        60,
        2300,
        970
      ],
      "color": "#3f789e",
      "flags": {},
      "id": 4,
      "title": "2x2 Grid Generation"
    },
    {
      "bounding": [
        2730,
        60,
        2680,
        970
      ],
      "color": "#3f789e",
      "flags": {},
      "id": 5,
      "title": "Upscale Selected Image"
    }
  ],
  "id": "d1d51388-600c-48c7-aa25-4cdbf3514476",
  "last_link_id": 288,
  "last_node_id": 161,
  "links": [
    [
      26,
      23,
      0,
      27,
      0,
      "IMAGE"
    ],
    [
      247,
      146,
      0,
      12,
      0,
      "IMAGE"
    ],
    [
      248,
      146,
      1,
      14,
      0,
      "IMAGE"
    ],
    [
      249,
      146,
      2,
      13,
      0,
      "IMAGE"
    ],
    [
      250,
      146,
      3,
      15,
      0,
      "IMAGE"
    ],
    [
      251,
      146,
      4,
      23,
      0,
      "IMAGE"
    ],
    [
      262,
      149,
      0,
      8,
      0,
      "IMAGE"
    ],
    [
      263,
      149,
      0,
      146,
      0,
      "IMAGE"
    ],
    [
      264,
      5,
      0,
      149,
      0,
      "STRING"
    ],
    [
      267,
      150,
      0,
      26,
      0,
      "IMAGE"
    ],
    [
      268,
      23,
      0,
      150,
      7,
      "IMAGE"
    ],
    [
      270,
      35,
      0,
      150,
      9,
      "IMAGE"
    ],
    [
      272,
      35,
      0,
      149,
      8,
      "IMAGE"
    ],
    [
      280,
      23,
      0,
      154,
      0,
      "IMAGE"
    ],
    [
      286,
      150,
      0,
      154,
      1,
      "IMAGE"
    ],
    [
      287,
      1,
      0,
      150,
      8,
      "IMAGE"
    ],
    [
      288,
      1,
      0,
      149,
      7,
      "IMAGE"
    ]
  ],
  "nodes": [
    {
      "flags": {
        "collapsed": false
      },
      "id": 13,
      "inputs": [
        {
          "link": 249,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "filename_prefix",
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          }
        }
      ],
      "mode": 0,
      "order": 10,
      "outputs": [],
      "pos": [
        2160,
        130
      ],
      "properties": {
        "Node name for S&R": "SaveImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.76"
      },
      "size": [
        490,
        410
      ],
      "type": "SaveImage",
      "widgets_values": [
        "ComfyUI-image_2"
      ]
    },
    {
      "flags": {},
      "id": 15,
      "inputs": [
        {
          "link": 250,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "filename_prefix",
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          }
        }
      ],
      "mode": 0,
      "order": 11,
      "outputs": [],
      "pos": [
        2160,
        610
      ],
      "properties": {
        "Node name for S&R": "SaveImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.76"
      },
      "size": [
        490,
        410
      ],
      "type": "SaveImage",
      "widgets_values": [
        "ComfyUI-image_4"
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 1,
      "inputs": [
        {
          "link": null,
          "localized_name": "image",
          "name": "image",
          "type": "COMBO",
          "widget": {
            "name": "image"
          }
        },
        {
          "link": null,
          "localized_name": "choose file to upload",
          "name": "upload",
          "type": "IMAGEUPLOAD",
          "widget": {
            "name": "upload"
          }
        }
      ],
      "mode": 0,
      "order": 0,
      "outputs": [
        {
          "links": [
            287,
            288
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "localized_name": "MASK",
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        -630,
        130
      ],
      "properties": {
        "Node name for S&R": "LoadImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.76"
      },
      "size": [
        430,
        610
      ],
      "title": "Load Subject Image",
      "type": "LoadImage",
      "widgets_values": [
        "subject.png",
        "image"
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 35,
      "inputs": [
        {
          "link": null,
          "localized_name": "image",
          "name": "image",
          "type": "COMBO",
          "widget": {
            "name": "image"
          }
        },
        {
          "link": null,
          "localized_name": "choose file to upload",
          "name": "upload",
          "type": "IMAGEUPLOAD",
          "widget": {
            "name": "upload"
          }
        }
      ],
      "mode": 0,
      "order": 1,
      "outputs": [
        {
          "links": [
            270,
            272
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "localized_name": "MASK",
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        -630,
        830
      ],
      "properties": {
        "Node name for S&R": "LoadImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.76"
      },
      "size": [
        430,
        610
      ],
      "title": "Load Outfit Image",
      "type": "LoadImage",
      "widgets_values": [
        "outfit.png",
        "image"
      ]
    },
    {
      "flags": {},
      "id": 12,
      "inputs": [
        {
          "link": 247,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "filename_prefix",
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          }
        }
      ],
      "mode": 0,
      "order": 8,
      "outputs": [],
      "pos": [
        1600,
        130
      ],
      "properties": {
        "Node name for S&R": "SaveImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.76"
      },
      "size": [
        500,
        410
      ],
      "type": "SaveImage",
      "widgets_values": [
        "ComfyUI-image_1"
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#222",
      "flags": {},
      "id": 21,
      "inputs": [],
      "mode": 0,
      "order": 2,
      "outputs": [],
      "pos": [
        2740,
        -150
      ],
      "properties": {},
      "size": [
        260,
        150
      ],
      "type": "Note",
      "widgets_values": [
        "Change batch_index to select which image you want to upscale.\n\n(first image is index 0)"
      ]
    },
    {
      "flags": {},
      "id": 27,
      "inputs": [
        {
          "link": 26,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 13,
      "outputs": [],
      "pos": [
        2740,
        310
      ],
      "properties": {
        "Node name for S&R": "PreviewImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.76"
      },
      "size": [
        540,
        580
      ],
      "title": "Preview Selected Image",
      "type": "PreviewImage",
      "widgets_values": []
    },
    {
      "flags": {},
      "id": 8,
      "inputs": [
        {
          "link": 262,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "filename_prefix",
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          }
        }
      ],
      "mode": 0,
      "order": 6,
      "outputs": [],
      "pos": [
        850,
        130
      ],
      "properties": {
        "Node name for S&R": "SaveImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.76"
      },
      "size": [
        660,
        890
      ],
      "title": "Save Stitched Image",
      "type": "SaveImage",
      "widgets_values": [
        "ComfyUI-image_stitched"
      ]
    },
    {
      "flags": {},
      "id": 14,
      "inputs": [
        {
          "link": 248,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "filename_prefix",
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          }
        }
      ],
      "mode": 0,
      "order": 9,
      "outputs": [],
      "pos": [
        1600,
        610
      ],
      "properties": {
        "Node name for S&R": "SaveImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.76"
      },
      "size": [
        500,
        410
      ],
      "type": "SaveImage",
      "widgets_values": [
        "ComfyUI-image_3"
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {
        "collapsed": false
      },
      "id": 5,
      "inputs": [
        {
          "link": null,
          "localized_name": "value",
          "name": "value",
          "type": "STRING",
          "widget": {
            "name": "value"
          }
        }
      ],
      "mode": 0,
      "order": 3,
      "outputs": [
        {
          "links": [
            264
          ],
          "localized_name": "STRING",
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        -100,
        130
      ],
      "properties": {
        "Node name for S&R": "PrimitiveStringMultiline",
        "cnr_id": "comfy-core",
        "ver": "0.3.76"
      },
      "size": [
        360,
        610
      ],
      "title": "Prompt",
      "type": "PrimitiveStringMultiline",
      "widgets_values": [
        "A 2x2 (2 rows, 2 cols) grid of high fashion photoshoot images of the model wearing the outfit from image 2, each grid image should show the a full body shot of the subject in slightly different poses. Ensure that all outfit clothes/accessories are present in each grid image.\n\nThe background setting is a studio environment with a white studio background. Ensure that each grid image has the same lighting conditions. \n\nDO NOT generate the grid with any visible borders or gutters.\n\nThe image is shot on fuji velvia film on a 55mm prime lens, the light is concentrated on the subject."
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {
        "collapsed": false
      },
      "id": 23,
      "inputs": [
        {
          "link": 251,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "batch_index",
          "name": "batch_index",
          "type": "INT",
          "widget": {
            "name": "batch_index"
          }
        },
        {
          "link": null,
          "localized_name": "length",
          "name": "length",
          "type": "INT",
          "widget": {
            "name": "length"
          }
        }
      ],
      "mode": 0,
      "order": 12,
      "outputs": [
        {
          "links": [
            26,
            268,
            280
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        2740,
        130
      ],
      "properties": {
        "Node name for S&R": "ImageFromBatch",
        "cnr_id": "comfy-core",
        "ver": "0.3.52"
      },
      "size": [
        260,
        120
      ],
      "title": "Select Image to Upscale",
      "type": "ImageFromBatch",
      "widgets_values": [
        0,
        1
      ]
    },
    {
      "flags": {},
      "id": 26,
      "inputs": [
        {
          "link": 267,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "filename_prefix",
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          }
        }
      ],
      "mode": 0,
      "order": 15,
      "outputs": [],
      "pos": [
        3900,
        130
      ],
      "properties": {
        "Node name for S&R": "SaveImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.76"
      },
      "size": [
        700,
        890
      ],
      "title": "Save Upscaled Image",
      "type": "SaveImage",
      "widgets_values": [
        "ComfyUI-image_upscaled"
      ]
    },
    {
      "flags": {},
      "id": 146,
      "inputs": [
        {
          "link": 263,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 7,
      "outputs": [
        {
          "label": "top_left",
          "links": [
            247
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "label": "bottom_left",
          "links": [
            248
          ],
          "localized_name": "IMAGE_1",
          "name": "IMAGE_1",
          "type": "IMAGE"
        },
        {
          "label": "top_right",
          "links": [
            249
          ],
          "localized_name": "IMAGE_2",
          "name": "IMAGE_2",
          "type": "IMAGE"
        },
        {
          "label": "bottom_right",
          "links": [
            250
          ],
          "localized_name": "IMAGE_3",
          "name": "IMAGE_3",
          "type": "IMAGE"
        },
        {
          "label": "images",
          "links": [
            251
          ],
          "name": "IMAGE_4",
          "type": "IMAGE"
        }
      ],
      "pos": [
        1280,
        -190
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "proxyWidgets": [],
        "ue_properties": {
          "input_ue_unconnectable": {},
          "version": "7.7",
          "widget_ue_connectable": {}
        },
        "ver": "0.18.1"
      },
      "size": [
        230,
        180
      ],
      "type": "663da6e9-8b62-4291-a9d6-e4b8fd672197",
      "widgets_values": []
    },
    {
      "bgcolor": "#653",
      "color": "#432",
      "flags": {},
      "id": 149,
      "inputs": [
        {
          "link": 264,
          "localized_name": "prompt",
          "name": "prompt",
          "type": "STRING",
          "widget": {
            "name": "prompt"
          }
        },
        {
          "link": null,
          "localized_name": "model",
          "name": "model",
          "type": "COMFY_DYNAMICCOMBO_V3",
          "widget": {
            "name": "model"
          }
        },
        {
          "link": null,
          "localized_name": "size",
          "name": "model.size",
          "type": "COMBO",
          "widget": {
            "name": "model.size"
          }
        },
        {
          "link": null,
          "localized_name": "custom_width",
          "name": "model.custom_width",
          "type": "INT",
          "widget": {
            "name": "model.custom_width"
          }
        },
        {
          "link": null,
          "localized_name": "custom_height",
          "name": "model.custom_height",
          "type": "INT",
          "widget": {
            "name": "model.custom_height"
          }
        },
        {
          "link": null,
          "localized_name": "background",
          "name": "model.background",
          "type": "COMBO",
          "widget": {
            "name": "model.background"
          }
        },
        {
          "link": null,
          "localized_name": "quality",
          "name": "model.quality",
          "type": "COMBO",
          "widget": {
            "name": "model.quality"
          }
        },
        {
          "label": "image_1",
          "link": 288,
          "localized_name": "model.images.image_1",
          "name": "model.images.image_1",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "label": "image_2",
          "link": 272,
          "localized_name": "model.images.image_2",
          "name": "model.images.image_2",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "label": "image_3",
          "link": null,
          "localized_name": "model.images.image_3",
          "name": "model.images.image_3",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "label": "mask",
          "link": null,
          "localized_name": "model.mask",
          "name": "model.mask",
          "shape": 7,
          "type": "MASK"
        },
        {
          "link": null,
          "localized_name": "n",
          "name": "n",
          "type": "INT",
          "widget": {
            "name": "n"
          }
        },
        {
          "link": null,
          "localized_name": "seed",
          "name": "seed",
          "type": "INT",
          "widget": {
            "name": "seed"
          }
        }
      ],
      "mode": 0,
      "order": 5,
      "outputs": [
        {
          "links": [
            262,
            263
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        370,
        130
      ],
      "properties": {
        "Node name for S&R": "OpenAIGPTImageNodeV2"
      },
      "size": [
        430,
        444
      ],
      "type": "OpenAIGPTImageNodeV2",
      "widgets_values": [
        "",
        "gpt-image-2",
        "2048x2048",
        1024,
        1024,
        "auto",
        "low",
        1,
        111,
        "fixed"
      ]
    },
    {
      "bgcolor": "#653",
      "color": "#432",
      "flags": {},
      "id": 150,
      "inputs": [
        {
          "link": null,
          "localized_name": "prompt",
          "name": "prompt",
          "type": "STRING",
          "widget": {
            "name": "prompt"
          }
        },
        {
          "link": null,
          "localized_name": "model",
          "name": "model",
          "type": "COMFY_DYNAMICCOMBO_V3",
          "widget": {
            "name": "model"
          }
        },
        {
          "link": null,
          "localized_name": "size",
          "name": "model.size",
          "type": "COMBO",
          "widget": {
            "name": "model.size"
          }
        },
        {
          "link": null,
          "localized_name": "custom_width",
          "name": "model.custom_width",
          "type": "INT",
          "widget": {
            "name": "model.custom_width"
          }
        },
        {
          "link": null,
          "localized_name": "custom_height",
          "name": "model.custom_height",
          "type": "INT",
          "widget": {
            "name": "model.custom_height"
          }
        },
        {
          "link": null,
          "localized_name": "background",
          "name": "model.background",
          "type": "COMBO",
          "widget": {
            "name": "model.background"
          }
        },
        {
          "link": null,
          "localized_name": "quality",
          "name": "model.quality",
          "type": "COMBO",
          "widget": {
            "name": "model.quality"
          }
        },
        {
          "label": "image_1",
          "link": 268,
          "localized_name": "model.images.image_1",
          "name": "model.images.image_1",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "label": "image_2",
          "link": 287,
          "localized_name": "model.images.image_2",
          "name": "model.images.image_2",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "label": "image_3",
          "link": 270,
          "localized_name": "model.images.image_3",
          "name": "model.images.image_3",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "label": "image_4",
          "link": null,
          "localized_name": "model.images.image_4",
          "name": "model.images.image_4",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "label": "mask",
          "link": null,
          "localized_name": "model.mask",
          "name": "model.mask",
          "shape": 7,
          "type": "MASK"
        },
        {
          "link": null,
          "localized_name": "n",
          "name": "n",
          "type": "INT",
          "widget": {
            "name": "n"
          }
        },
        {
          "link": null,
          "localized_name": "seed",
          "name": "seed",
          "type": "INT",
          "widget": {
            "name": "seed"
          }
        }
      ],
      "mode": 0,
      "order": 14,
      "outputs": [
        {
          "links": [
            267,
            286
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        3400,
        130
      ],
      "properties": {
        "Node name for S&R": "OpenAIGPTImageNodeV2"
      },
      "size": [
        410,
        760
      ],
      "type": "OpenAIGPTImageNodeV2",
      "widgets_values": [
        "Generate a high resolution image. Upscale image 1 while maintaining pose, background and composition, add subtle details. Use the face from image 2 to add back facial consistency and ensure the outfit details match the clothes and accessories from image 3.",
        "gpt-image-2",
        "2048x2048",
        1024,
        1024,
        "auto",
        "high",
        1,
        222,
        "randomize"
      ]
    },
    {
      "flags": {},
      "id": 154,
      "inputs": [
        {
          "link": 280,
          "localized_name": "image_a",
          "name": "image_a",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "link": 286,
          "localized_name": "image_b",
          "name": "image_b",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "compare_view",
          "name": "compare_view",
          "type": "IMAGECOMPARE",
          "widget": {
            "name": "compare_view"
          }
        }
      ],
      "mode": 0,
      "order": 16,
      "outputs": [],
      "pos": [
        4700,
        130
      ],
      "properties": {
        "Node name for S&R": "ImageCompare"
      },
      "size": [
        700,
        890
      ],
      "title": "Compare Before/After Upscale Images",
      "type": "ImageCompare",
      "widgets_values": []
    },
    {
      "bgcolor": "#000",
      "color": "#222",
      "flags": {},
      "id": 161,
      "inputs": [],
      "mode": 0,
      "order": 4,
      "outputs": [],
      "pos": [
        -1160,
        130
      ],
      "properties": {},
      "size": [
        430,
        970
      ],
      "type": "MarkdownNote",
      "widgets_values": [
        "## Virtual Try-On Workflow\n\n### Overview\nGenerates your character wearing an outfit in **4 distinct poses**, output as a 2×2 grid that's cropped into four 1K images. You then select one to upscale to **2048 × 2048**, referencing the original character and outfit for face/outfit consistency.\n\n---\n\n### How to Use\n\n**1. Set up inputs**\n- Upload your **character** image\n- Upload your **flat lay outfit** image\n- Review the prompt and tweak details if needed\n\n**2. Generate the 2×2 grid**\n- Change the **`seed`** on the *OpenAI GPT Image 2* node to regenerate a completely new image\n- Seed is set to `fixed` — this locks the grid output across sequential runs (required for the upscale step to work consistently)\n\n**3. Upscale your pick**\n- In the **Upscale Selected Grid Generation** group, use the **`Select Image to Upscale`** node to choose which of the 4 poses to upscale\n\n---\n\n### 💡 Tip: Iterate Faster\n\nTo iterate on just the grid (without running the upscale each time):\n\n1. Select all nodes in the **Upscale** group\n2. Press `Ctrl` / `Cmd` + `B` to bypass\n3. Once you lock in a grid you like, **unbypass** the group and run again"
      ]
    }
  ],
  "revision": 0,
  "version": 0.4
}