{
  "comfyBoxWorkflow": true,
  "createdBy": "ComfyBox",
  "version": 1,
  "commitHash": "574d3170a4e829df366dc12c3aaa049121052d8f\n",
  "workflow": {
    "last_node_id": 0,
    "last_link_id": 0,
    "nodes": [
      {
        "id": "36cac98f-995d-4723-9d6f-70e3273fab95",
        "type": "image/pick_image",
        "pos": [
          764,
          209
        ],
        "size": [
          210,
          190
        ],
        "flags": {},
        "order": 5,
        "mode": 0,
        "inputs": [
          {
            "name": "images",
            "type": "COMFYBOX_IMAGES,COMFYBOX_IMAGE",
            "link": "55273c8c-f32f-4718-b87a-ce7178af48f2",
            "properties": {}
          },
          {
            "name": "index",
            "type": "number",
            "link": null,
            "properties": {}
          }
        ],
        "outputs": [
          {
            "name": "image",
            "type": "COMFYBOX_IMAGE",
            "links": [],
            "properties": {},
            "slot_index": 0
          },
          {
            "name": "filename",
            "type": "string",
            "links": [
              "d3e6117a-9ac6-4ea9-aef7-9deab54d83bf"
            ],
            "properties": {},
            "slot_index": 1
          },
          {
            "name": "width",
            "type": "number",
            "links": [],
            "properties": {}
          },
          {
            "name": "height",
            "type": "number",
            "links": [],
            "properties": {}
          }
        ],
        "title": "Comfy.PickImage",
        "properties": {
          "tags": []
        },
        "saveUserState": true
      },
      {
        "id": "1e69d880-041e-48dd-8030-f0eb83add915",
        "type": "LoadImage",
        "pos": [
          991,
          236
        ],
        "size": [
          140,
          46
        ],
        "flags": {},
        "order": 6,
        "mode": 0,
        "inputs": [
          {
            "name": "image",
            "type": "string",
            "link": "d3e6117a-9ac6-4ea9-aef7-9deab54d83bf",
            "properties": {},
            "config": {},
            "defaultWidgetNode": null,
            "widgetNodeType": "ui/combo",
            "serialize": true
          }
        ],
        "outputs": [
          {
            "name": "IMAGE",
            "type": "IMAGE",
            "links": [
              "4e26eb6e-0230-4980-bc9d-bfd0c1142079"
            ],
            "properties": {},
            "shape": 3,
            "slot_index": 0
          },
          {
            "name": "MASK",
            "type": "MASK",
            "links": [],
            "properties": {},
            "shape": 3
          }
        ],
        "title": "Load Image",
        "properties": {
          "tags": []
        },
        "color": "#432",
        "bgColor": "#653",
        "saveUserState": true
      },
      {
        "id": "578edfae-2767-4b23-9a3b-6edd8ccad1dd",
        "type": "ui/combo",
        "pos": [
          827,
          157
        ],
        "size": [
          210,
          78
        ],
        "flags": {
          "collapsed": true
        },
        "order": 0,
        "mode": 0,
        "inputs": [
          {
            "name": "store",
            "type": -1,
            "link": null,
            "properties": {},
            "shape": 1
          }
        ],
        "outputs": [
          {
            "name": "value",
            "type": "string",
            "links": [
              "ee03fe14-9fb7-4bd2-abb4-f8920841b93f"
            ],
            "properties": {}
          },
          {
            "name": "changed",
            "type": -2,
            "links": [],
            "properties": {},
            "shape": 1
          }
        ],
        "title": "UI.Combo",
        "properties": {
          "tags": [],
          "defaultValue": null,
          "values": [],
          "convertValueToLabelCode": ""
        },
        "widgets_values": [],
        "color": "#223",
        "bgColor": "#335",
        "comfyValue": null,
        "shownOutputProperties": {},
        "saveUserState": false
      },
      {
        "id": "832c965f-03bf-4c21-a05d-2c4f0acf1078",
        "type": "UpscaleModelLoader",
        "pos": [
          955,
          138
        ],
        "size": [
          203.2,
          26
        ],
        "flags": {},
        "order": 3,
        "mode": 0,
        "inputs": [
          {
            "name": "model_name",
            "type": "string",
            "link": "ee03fe14-9fb7-4bd2-abb4-f8920841b93f",
            "properties": {},
            "config": {},
            "defaultWidgetNode": null,
            "widgetNodeType": "ui/combo",
            "serialize": true
          }
        ],
        "outputs": [
          {
            "name": "UPSCALE_MODEL",
            "type": "UPSCALE_MODEL",
            "links": [
              "609844e8-11fb-4766-8335-ba108bb4246c"
            ],
            "properties": {},
            "shape": 3
          }
        ],
        "title": "Load Upscale Model",
        "properties": {
          "tags": []
        },
        "color": "#432",
        "bgColor": "#653",
        "saveUserState": true
      },
      {
        "id": "6f79aef0-534a-46e6-99fe-ecd391ea271e",
        "type": "ImageUpscaleWithModel",
        "pos": [
          1189,
          181
        ],
        "size": [
          226.79999999999998,
          46
        ],
        "flags": {},
        "order": 7,
        "mode": 0,
        "inputs": [
          {
            "name": "upscale_model",
            "type": "UPSCALE_MODEL",
            "link": "609844e8-11fb-4766-8335-ba108bb4246c",
            "properties": {},
            "slot_index": 0,
            "config": {}
          },
          {
            "name": "image",
            "type": "IMAGE",
            "link": "4e26eb6e-0230-4980-bc9d-bfd0c1142079",
            "properties": {},
            "slot_index": 1,
            "config": {}
          }
        ],
        "outputs": [
          {
            "name": "IMAGE",
            "type": "IMAGE",
            "links": [
              "7c5f8d16-23a4-4998-912e-75cdadf616a9"
            ],
            "properties": {},
            "shape": 3,
            "slot_index": 0
          }
        ],
        "title": "Upscale Image (using Model)",
        "properties": {
          "tags": []
        },
        "color": "#432",
        "bgColor": "#653",
        "saveUserState": true
      },
      {
        "id": "59feacdf-de02-4b1e-b8ba-e219ba5126b7",
        "type": "ui/text",
        "pos": [
          1408,
          235
        ],
        "size": [
          210,
          78
        ],
        "flags": {
          "collapsed": true
        },
        "order": 1,
        "mode": 0,
        "inputs": [
          {
            "name": "value",
            "type": "string",
            "link": null,
            "properties": {}
          },
          {
            "name": "store",
            "type": -1,
            "link": null,
            "properties": {},
            "shape": 1
          }
        ],
        "outputs": [
          {
            "name": "value",
            "type": "string",
            "links": [
              "07a53e72-7ca6-4dc6-b9dd-d9d20c0a546c"
            ],
            "properties": {}
          },
          {
            "name": "changed",
            "type": -2,
            "links": [],
            "properties": {},
            "shape": 1
          }
        ],
        "title": "UI.Text",
        "properties": {
          "tags": [],
          "defaultValue": "ComfyUI",
          "multiline": false,
          "lines": 5,
          "maxLines": 5
        },
        "widgets_values": [
          "ComfyUI"
        ],
        "color": "#223",
        "bgColor": "#335",
        "comfyValue": "ComfyUI",
        "shownOutputProperties": {},
        "saveUserState": true
      },
      {
        "id": "15bf90cc-971a-498c-b555-e037354119cd",
        "type": "ui/gallery",
        "pos": [
          1858,
          206
        ],
        "size": [
          210,
          126
        ],
        "flags": {},
        "order": 9,
        "mode": 0,
        "inputs": [
          {
            "name": "images",
            "type": "OUTPUT",
            "link": null,
            "properties": {}
          },
          {
            "name": "store",
            "type": -1,
            "link": "3fa443e7-f9f4-4415-b82e-d804bf7079b0",
            "properties": {},
            "color_off": "rebeccapurple",
            "color_on": "rebeccapurple",
            "shape": 1,
            "slot_index": 1
          }
        ],
        "outputs": [
          {
            "name": "images",
            "type": "COMFYBOX_IMAGES",
            "links": [],
            "properties": {}
          },
          {
            "name": "selected_index",
            "type": "number",
            "links": [],
            "properties": {}
          }
        ],
        "title": "UI.Gallery",
        "properties": {
          "tags": [],
          "defaultValue": [
            {
              "isComfyBoxImageMetadata": true,
              "comfyUIFile": {
                "filename": "ComfyUI_04712_.png",
                "subfolder": "",
                "type": "output"
              },
              "name": "File",
              "tags": [],
              "width": 6656,
              "height": 4096
            }
          ],
          "index": 0,
          "updateMode": "replace",
          "autoSelectOnUpdate": true
        },
        "widgets_values": [],
        "color": "#223",
        "bgColor": "#335",
        "comfyValue": [
          {
            "isComfyBoxImageMetadata": true,
            "comfyUIFile": {
              "filename": "ComfyUI_04712_.png",
              "subfolder": "",
              "type": "output"
            },
            "name": "File",
            "tags": [],
            "width": 6656,
            "height": 4096
          }
        ],
        "shownOutputProperties": {},
        "saveUserState": false
      },
      {
        "id": "9a5eefed-5e6b-450c-898c-8a170572e67e",
        "type": "SaveImage",
        "pos": [
          1538,
          191
        ],
        "size": [
          186.4,
          46
        ],
        "flags": {},
        "order": 8,
        "mode": 0,
        "inputs": [
          {
            "name": "images",
            "type": "IMAGE",
            "link": "7c5f8d16-23a4-4998-912e-75cdadf616a9",
            "properties": {},
            "config": {}
          },
          {
            "name": "filename_prefix",
            "type": "string",
            "link": "07a53e72-7ca6-4dc6-b9dd-d9d20c0a546c",
            "properties": {},
            "config": {},
            "defaultWidgetNode": null,
            "widgetNodeType": "ui/text",
            "serialize": true
          }
        ],
        "outputs": [
          {
            "name": "OUTPUT",
            "type": -2,
            "links": [
              "3fa443e7-f9f4-4415-b82e-d804bf7079b0"
            ],
            "properties": {},
            "color_off": "rebeccapurple",
            "color_on": "rebeccapurple",
            "shape": 1,
            "slot_index": 0
          }
        ],
        "title": "Save Image",
        "properties": {
          "tags": []
        },
        "color": "#432",
        "bgColor": "#653",
        "saveUserState": true
      },
      {
        "id": "abf0b8e9-e0e4-4c57-b6b2-c4aa26536c71",
        "type": "ui/image_upload",
        "pos": [
          469,
          205
        ],
        "size": [
          210,
          78
        ],
        "flags": {},
        "order": 4,
        "mode": 0,
        "inputs": [
          {
            "name": "store",
            "type": -1,
            "link": "8f85fe39-4121-4fb8-b9d8-2b989fc544e8",
            "properties": {},
            "shape": 1,
            "slot_index": 0
          }
        ],
        "outputs": [
          {
            "name": "images",
            "type": "COMFYBOX_IMAGES",
            "links": [
              "55273c8c-f32f-4718-b87a-ce7178af48f2"
            ],
            "properties": {},
            "slot_index": 0
          },
          {
            "name": "changed",
            "type": -2,
            "links": [],
            "properties": {},
            "shape": 1
          }
        ],
        "title": "UI.ImageUpload",
        "properties": {
          "defaultValue": [
            {
              "isComfyBoxImageMetadata": true,
              "comfyUIFile": {
                "filename": "ComfyUI_05835_.png",
                "type": "output",
                "subfolder": ""
              },
              "name": "File",
              "tags": [],
              "width": 640,
              "height": 768
            }
          ],
          "tags": []
        },
        "widgets_values": [],
        "color": "#223",
        "bgColor": "#335",
        "comfyValue": [
          {
            "isComfyBoxImageMetadata": true,
            "comfyUIFile": {
              "filename": "ComfyUI_05835_.png",
              "type": "output",
              "subfolder": ""
            },
            "name": "File",
            "tags": [],
            "width": 640,
            "height": 768
          }
        ],
        "shownOutputProperties": {},
        "saveUserState": false
      },
      {
        "id": "edba3201-d2b5-4624-bdfa-6e3ccce1b21c",
        "type": "events/receive_output",
        "pos": [
          130,
          203
        ],
        "size": [
          247,
          106
        ],
        "flags": {},
        "order": 2,
        "mode": 0,
        "inputs": [],
        "outputs": [
          {
            "name": "received",
            "type": -2,
            "links": [
              "8f85fe39-4121-4fb8-b9d8-2b989fc544e8"
            ],
            "properties": {},
            "shape": 1,
            "color_on": "fuchsia",
            "color_off": "fuchsia"
          }
        ],
        "title": "Comfy.ReceiveOutput",
        "properties": {
          "tags": [],
          "name": "Image",
          "description": "Image to upscale.",
          "type": "COMFYBOX_IMAGE"
        },
        "saveUserState": true
      }
    ],
    "links": [
      [
        "55273c8c-f32f-4718-b87a-ce7178af48f2",
        "abf0b8e9-e0e4-4c57-b6b2-c4aa26536c71",
        0,
        "36cac98f-995d-4723-9d6f-70e3273fab95",
        0,
        "COMFYBOX_IMAGES,COMFYBOX_IMAGE"
      ],
      [
        "d3e6117a-9ac6-4ea9-aef7-9deab54d83bf",
        "36cac98f-995d-4723-9d6f-70e3273fab95",
        1,
        "1e69d880-041e-48dd-8030-f0eb83add915",
        0,
        "string"
      ],
      [
        "4e26eb6e-0230-4980-bc9d-bfd0c1142079",
        "1e69d880-041e-48dd-8030-f0eb83add915",
        0,
        "6f79aef0-534a-46e6-99fe-ecd391ea271e",
        1,
        "IMAGE"
      ],
      [
        "ee03fe14-9fb7-4bd2-abb4-f8920841b93f",
        "578edfae-2767-4b23-9a3b-6edd8ccad1dd",
        0,
        "832c965f-03bf-4c21-a05d-2c4f0acf1078",
        0,
        "string"
      ],
      [
        "609844e8-11fb-4766-8335-ba108bb4246c",
        "832c965f-03bf-4c21-a05d-2c4f0acf1078",
        0,
        "6f79aef0-534a-46e6-99fe-ecd391ea271e",
        0,
        "UPSCALE_MODEL"
      ],
      [
        "07a53e72-7ca6-4dc6-b9dd-d9d20c0a546c",
        "59feacdf-de02-4b1e-b8ba-e219ba5126b7",
        0,
        "9a5eefed-5e6b-450c-898c-8a170572e67e",
        1,
        "string"
      ],
      [
        "7c5f8d16-23a4-4998-912e-75cdadf616a9",
        "6f79aef0-534a-46e6-99fe-ecd391ea271e",
        0,
        "9a5eefed-5e6b-450c-898c-8a170572e67e",
        0,
        "IMAGE"
      ],
      [
        "3fa443e7-f9f4-4415-b82e-d804bf7079b0",
        "9a5eefed-5e6b-450c-898c-8a170572e67e",
        0,
        "15bf90cc-971a-498c-b555-e037354119cd",
        1,
        -1
      ],
      [
        "8f85fe39-4121-4fb8-b9d8-2b989fc544e8",
        "edba3201-d2b5-4624-bdfa-6e3ccce1b21c",
        0,
        "abf0b8e9-e0e4-4c57-b6b2-c4aa26536c71",
        0,
        -1
      ]
    ],
    "groups": [],
    "config": {},
    "extra": {},
    "version": 10
  },
  "attrs": {
    "title": "Upscale by Model",
    "queuePromptButtonName": "Queue Prompt",
    "queuePromptButtonRunWorkflow": true
  },
  "layout": {
    "root": "46a08906-61a9-4a23-881b-9615cf165e33",
    "allItems": {
      "46a08906-61a9-4a23-881b-9615cf165e33": {
        "dragItem": {
          "type": "container",
          "id": "46a08906-61a9-4a23-881b-9615cf165e33",
          "attrs": {
            "title": "",
            "hidden": false,
            "disabled": false,
            "direction": "horizontal",
            "classes": "",
            "style": "",
            "nodeDisabledState": "hidden",
            "variant": "gallery",
            "containerVariant": "hidden",
            "openOnStartup": false,
            "buttonVariant": "primary",
            "buttonSize": "large",
            "tags": [],
            "destroyChildOnCLose": false
          }
        },
        "children": [
          "c7b8c9d6-5dac-4cab-876f-d251fca35d17",
          "6582cde5-d5f4-4a5f-b429-49ad8d495081"
        ]
      },
      "c7b8c9d6-5dac-4cab-876f-d251fca35d17": {
        "dragItem": {
          "type": "container",
          "id": "c7b8c9d6-5dac-4cab-876f-d251fca35d17",
          "attrs": {
            "title": "",
            "hidden": false,
            "disabled": false,
            "direction": "vertical",
            "classes": "",
            "style": "",
            "nodeDisabledState": "hidden",
            "variant": "gallery",
            "containerVariant": "hidden",
            "openOnStartup": false,
            "buttonVariant": "primary",
            "buttonSize": "large",
            "tags": [],
            "destroyChildOnCLose": false
          }
        },
        "children": [
          "f4070548-a2d1-4330-a9e0-86a9a00bfc89",
          "025dbbeb-b959-4b59-8b55-01bf4b6a1cdc"
        ],
        "parent": "46a08906-61a9-4a23-881b-9615cf165e33"
      },
      "6582cde5-d5f4-4a5f-b429-49ad8d495081": {
        "dragItem": {
          "type": "container",
          "id": "6582cde5-d5f4-4a5f-b429-49ad8d495081",
          "attrs": {
            "title": "",
            "hidden": false,
            "disabled": false,
            "direction": "vertical",
            "classes": "",
            "style": "",
            "nodeDisabledState": "hidden",
            "variant": "gallery",
            "containerVariant": "hidden",
            "openOnStartup": false,
            "buttonVariant": "primary",
            "buttonSize": "large",
            "tags": [],
            "destroyChildOnCLose": false
          }
        },
        "children": [
          "8293884a-9e35-4c06-9d34-414d812c0f6d",
          "531673e4-c61d-4c48-8da4-03bbd02e36a3"
        ],
        "parent": "46a08906-61a9-4a23-881b-9615cf165e33"
      },
      "f4070548-a2d1-4330-a9e0-86a9a00bfc89": {
        "dragItem": {
          "type": "widget",
          "id": "f4070548-a2d1-4330-a9e0-86a9a00bfc89",
          "nodeId": "abf0b8e9-e0e4-4c57-b6b2-c4aa26536c71",
          "attrs": {
            "title": "Input",
            "hidden": false,
            "disabled": false,
            "direction": "vertical",
            "classes": "",
            "style": "",
            "nodeDisabledState": "hidden",
            "variant": "gallery",
            "containerVariant": "hidden",
            "openOnStartup": false,
            "buttonVariant": "primary",
            "buttonSize": "large",
            "tags": [],
            "destroyChildOnCLose": false
          }
        },
        "children": [],
        "parent": "c7b8c9d6-5dac-4cab-876f-d251fca35d17"
      },
      "2f0371e8-559e-4a58-a5d1-0a50117675fc": {
        "dragItem": {
          "type": "widget",
          "id": "2f0371e8-559e-4a58-a5d1-0a50117675fc",
          "nodeId": "578edfae-2767-4b23-9a3b-6edd8ccad1dd",
          "attrs": {
            "title": "Modal Name",
            "hidden": false,
            "disabled": false,
            "direction": "vertical",
            "classes": "",
            "style": "",
            "nodeDisabledState": "hidden",
            "variant": "gallery",
            "containerVariant": "hidden",
            "openOnStartup": false,
            "buttonVariant": "primary",
            "buttonSize": "large",
            "tags": [],
            "destroyChildOnCLose": false
          }
        },
        "children": [],
        "parent": "025dbbeb-b959-4b59-8b55-01bf4b6a1cdc"
      },
      "025dbbeb-b959-4b59-8b55-01bf4b6a1cdc": {
        "dragItem": {
          "type": "container",
          "id": "025dbbeb-b959-4b59-8b55-01bf4b6a1cdc",
          "attrs": {
            "title": "Load Upscale Model",
            "hidden": false,
            "disabled": false,
            "direction": "vertical",
            "classes": "",
            "style": "",
            "nodeDisabledState": "hidden",
            "variant": "gallery",
            "containerVariant": "block",
            "openOnStartup": false,
            "buttonVariant": "primary",
            "buttonSize": "large",
            "tags": [],
            "destroyChildOnCLose": false
          }
        },
        "children": [
          "2f0371e8-559e-4a58-a5d1-0a50117675fc"
        ],
        "parent": "c7b8c9d6-5dac-4cab-876f-d251fca35d17"
      },
      "db12215f-fd9c-463f-9fbd-26b79e994e0e": {
        "dragItem": {
          "type": "widget",
          "id": "db12215f-fd9c-463f-9fbd-26b79e994e0e",
          "nodeId": "59feacdf-de02-4b1e-b8ba-e219ba5126b7",
          "attrs": {
            "title": "Filename Prefix",
            "hidden": false,
            "disabled": false,
            "direction": "vertical",
            "classes": "",
            "style": "",
            "nodeDisabledState": "hidden",
            "variant": "gallery",
            "containerVariant": "hidden",
            "openOnStartup": false,
            "buttonVariant": "primary",
            "buttonSize": "large",
            "tags": [],
            "destroyChildOnCLose": false
          }
        },
        "children": [],
        "parent": "531673e4-c61d-4c48-8da4-03bbd02e36a3"
      },
      "531673e4-c61d-4c48-8da4-03bbd02e36a3": {
        "dragItem": {
          "type": "container",
          "id": "531673e4-c61d-4c48-8da4-03bbd02e36a3",
          "attrs": {
            "title": "Save Image",
            "hidden": false,
            "disabled": false,
            "direction": "vertical",
            "classes": "",
            "style": "",
            "nodeDisabledState": "hidden",
            "variant": "gallery",
            "containerVariant": "block",
            "openOnStartup": false,
            "buttonVariant": "primary",
            "buttonSize": "large",
            "tags": [],
            "destroyChildOnCLose": false
          }
        },
        "children": [
          "db12215f-fd9c-463f-9fbd-26b79e994e0e"
        ],
        "parent": "6582cde5-d5f4-4a5f-b429-49ad8d495081"
      },
      "8293884a-9e35-4c06-9d34-414d812c0f6d": {
        "dragItem": {
          "type": "widget",
          "id": "8293884a-9e35-4c06-9d34-414d812c0f6d",
          "nodeId": "15bf90cc-971a-498c-b555-e037354119cd",
          "attrs": {
            "title": "Output",
            "hidden": false,
            "disabled": false,
            "direction": "vertical",
            "classes": "",
            "style": "",
            "nodeDisabledState": "hidden",
            "variant": "image",
            "containerVariant": "hidden",
            "openOnStartup": false,
            "buttonVariant": "primary",
            "buttonSize": "large",
            "tags": [],
            "destroyChildOnCLose": false
          }
        },
        "children": [],
        "parent": "6582cde5-d5f4-4a5f-b429-49ad8d495081"
      }
    }
  },
  "canvas": {
    "offset": [
      0,
      0
    ],
    "scale": 1
  }
}