{
  "13": {
    "inputs": {
      "filename_prefix": "ComfyUI-image_2",
      "images": [
        "146:143",
        0
      ]
    },
    "class_type": "SaveImage",
    "_meta": {
      "title": "Save Image"
    }
  },
  "15": {
    "inputs": {
      "filename_prefix": "ComfyUI-image_4",
      "images": [
        "146:144",
        0
      ]
    },
    "class_type": "SaveImage",
    "_meta": {
      "title": "Save Image"
    }
  },
  "1": {
    "inputs": {
      "image": "subject.png"
    },
    "class_type": "LoadImage",
    "_meta": {
      "title": "Load Subject Image"
    }
  },
  "35": {
    "inputs": {
      "image": "outfit.png"
    },
    "class_type": "LoadImage",
    "_meta": {
      "title": "Load Outfit Image"
    }
  },
  "12": {
    "inputs": {
      "filename_prefix": "ComfyUI-image_1",
      "images": [
        "146:57",
        0
      ]
    },
    "class_type": "SaveImage",
    "_meta": {
      "title": "Save Image"
    }
  },
  "27": {
    "inputs": {
      "images": [
        "23",
        0
      ]
    },
    "class_type": "PreviewImage",
    "_meta": {
      "title": "Preview Selected Image"
    }
  },
  "8": {
    "inputs": {
      "filename_prefix": "ComfyUI-image_stitched",
      "images": [
        "149",
        0
      ]
    },
    "class_type": "SaveImage",
    "_meta": {
      "title": "Save Stitched Image"
    }
  },
  "14": {
    "inputs": {
      "filename_prefix": "ComfyUI-image_3",
      "images": [
        "146:140",
        0
      ]
    },
    "class_type": "SaveImage",
    "_meta": {
      "title": "Save Image"
    }
  },
  "5": {
    "inputs": {
      "value": "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."
    },
    "class_type": "PrimitiveStringMultiline",
    "_meta": {
      "title": "Prompt"
    }
  },
  "23": {
    "inputs": {
      "batch_index": 0,
      "length": 1,
      "image": [
        "146:137",
        0
      ]
    },
    "class_type": "ImageFromBatch",
    "_meta": {
      "title": "Select Image to Upscale"
    }
  },
  "26": {
    "inputs": {
      "filename_prefix": "ComfyUI-image_upscaled",
      "images": [
        "150",
        0
      ]
    },
    "class_type": "SaveImage",
    "_meta": {
      "title": "Save Upscaled Image"
    }
  },
  "146:54": {
    "inputs": {
      "expression": "max(1, int(a/b))",
      "values.a": [
        "146:55",
        0
      ],
      "values.b": [
        "146:56",
        0
      ]
    },
    "class_type": "ComfyMathExpression",
    "_meta": {
      "title": "Math Expression"
    }
  },
  "146:55": {
    "inputs": {
      "image": [
        "149",
        0
      ]
    },
    "class_type": "GetImageSize",
    "_meta": {
      "title": "Get Image Size"
    }
  },
  "146:56": {
    "inputs": {
      "value": 2
    },
    "class_type": "PrimitiveInt",
    "_meta": {
      "title": "Int"
    }
  },
  "146:57": {
    "inputs": {
      "image": [
        "149",
        0
      ],
      "crop_region": [
        "146:58",
        0
      ]
    },
    "class_type": "ImageCropV2",
    "_meta": {
      "title": "Crop Image"
    }
  },
  "146:58": {
    "inputs": {
      "x": 0,
      "y": 0,
      "width": [
        "146:54",
        1
      ],
      "height": [
        "146:59",
        1
      ]
    },
    "class_type": "PrimitiveBoundingBox",
    "_meta": {
      "title": "Bounding Box"
    }
  },
  "146:59": {
    "inputs": {
      "expression": "max(1, int(a/b))",
      "values.a": [
        "146:55",
        1
      ],
      "values.b": [
        "146:56",
        0
      ]
    },
    "class_type": "ComfyMathExpression",
    "_meta": {
      "title": "Math Expression"
    }
  },
  "146:138": {
    "inputs": {
      "expression": "max(1, a - b)",
      "values.a": [
        "146:55",
        0
      ],
      "values.b": [
        "146:54",
        1
      ]
    },
    "class_type": "ComfyMathExpression",
    "_meta": {
      "title": "Math Expression (Right Width)"
    }
  },
  "146:139": {
    "inputs": {
      "expression": "max(1, a - b)",
      "values.a": [
        "146:55",
        1
      ],
      "values.b": [
        "146:59",
        1
      ]
    },
    "class_type": "ComfyMathExpression",
    "_meta": {
      "title": "Math Expression (Bottom Height)"
    }
  },
  "146:140": {
    "inputs": {
      "image": [
        "149",
        0
      ],
      "crop_region": [
        "146:141",
        0
      ]
    },
    "class_type": "ImageCropV2",
    "_meta": {
      "title": "Crop Image"
    }
  },
  "146:141": {
    "inputs": {
      "x": 0,
      "y": [
        "146:59",
        1
      ],
      "width": [
        "146:54",
        1
      ],
      "height": [
        "146:139",
        1
      ]
    },
    "class_type": "PrimitiveBoundingBox",
    "_meta": {
      "title": "Bounding Box"
    }
  },
  "146:142": {
    "inputs": {
      "y": 0,
      "x": [
        "146:54",
        1
      ],
      "width": [
        "146:138",
        1
      ],
      "height": [
        "146:59",
        1
      ]
    },
    "class_type": "PrimitiveBoundingBox",
    "_meta": {
      "title": "Bounding Box"
    }
  },
  "146:143": {
    "inputs": {
      "image": [
        "149",
        0
      ],
      "crop_region": [
        "146:142",
        0
      ]
    },
    "class_type": "ImageCropV2",
    "_meta": {
      "title": "Crop Image"
    }
  },
  "146:144": {
    "inputs": {
      "image": [
        "149",
        0
      ],
      "crop_region": [
        "146:145",
        0
      ]
    },
    "class_type": "ImageCropV2",
    "_meta": {
      "title": "Crop Image"
    }
  },
  "146:145": {
    "inputs": {
      "x": [
        "146:54",
        1
      ],
      "y": [
        "146:59",
        1
      ],
      "width": [
        "146:138",
        1
      ],
      "height": [
        "146:139",
        1
      ]
    },
    "class_type": "PrimitiveBoundingBox",
    "_meta": {
      "title": "Bounding Box"
    }
  },
  "146:137": {
    "inputs": {
      "images.image0": [
        "146:57",
        0
      ],
      "images.image1": [
        "146:143",
        0
      ],
      "images.image2": [
        "146:140",
        0
      ],
      "images.image3": [
        "146:144",
        0
      ]
    },
    "class_type": "BatchImagesNode",
    "_meta": {
      "title": "Batch Images"
    }
  },
  "149": {
    "inputs": {
      "model": "gpt-image-2",
      "n": 1,
      "seed": 111,
      "prompt": [
        "5",
        0
      ],
      "model.size": "2048x2048",
      "model.custom_width": 1024,
      "model.custom_height": 1024,
      "model.background": "auto",
      "model.quality": "low",
      "model.images.image_1": [
        "1",
        0
      ],
      "model.images.image_2": [
        "35",
        0
      ]
    },
    "class_type": "OpenAIGPTImageNodeV2",
    "_meta": {
      "title": "OpenAI GPT Image 2.5"
    }
  },
  "150": {
    "inputs": {
      "prompt": "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.",
      "model": "gpt-image-2",
      "n": 1,
      "seed": 222,
      "model.size": "2048x2048",
      "model.custom_width": 1024,
      "model.custom_height": 1024,
      "model.background": "auto",
      "model.quality": "high",
      "model.images.image_1": [
        "23",
        0
      ],
      "model.images.image_2": [
        "1",
        0
      ],
      "model.images.image_3": [
        "35",
        0
      ]
    },
    "class_type": "OpenAIGPTImageNodeV2",
    "_meta": {
      "title": "OpenAI GPT Image 2.5"
    }
  },
  "154": {
    "inputs": {
      "compare_view": null,
      "image_a": [
        "23",
        0
      ],
      "image_b": [
        "150",
        0
      ]
    },
    "class_type": "ImageCompare",
    "_meta": {
      "title": "Compare Before/After Upscale Images"
    }
  }
}
