{
  "id": "fe21b2aa-8051-46fa-9445-d99814cb31d2",
  "revision": 0,
  "last_node_id": 114,
  "last_link_id": 160,
  "nodes": [
    {
      "id": 13,
      "type": "ImageScale",
      "pos": [
        2000,
        440
      ],
      "size": [
        320,
        180
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 137
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": []
        }
      ],
      "title": "Scale To Fixed Size",
      "properties": {
        "Node name for S&R": "ImageScale"
      },
      "widgets_values": [
        "bicubic",
        2480,
        3508,
        "center"
      ]
    },
    {
      "id": 19,
      "type": "SaveImage",
      "pos": [
        2600,
        60
      ],
      "size": [
        1000,
        900
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 140
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "SaveImage"
      },
      "widgets_values": [
        "upscaled"
      ]
    },
    {
      "id": 97,
      "type": "ImageScaleToTotalPixels",
      "pos": [
        2000,
        740
      ],
      "size": [
        320,
        180
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 138
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": []
        }
      ],
      "title": "Scale to Total Pixels",
      "properties": {
        "Node name for S&R": "ImageScaleToTotalPixels"
      },
      "widgets_values": [
        "bicubic",
        10,
        1
      ]
    },
    {
      "id": 98,
      "type": "ImageScaleToMaxDimension",
      "pos": [
        2000,
        200
      ],
      "size": [
        320,
        100
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 139
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": []
        }
      ],
      "title": "Scale To Max Dimension",
      "properties": {
        "Node name for S&R": "ImageScaleToMaxDimension"
      },
      "widgets_values": [
        "bicubic",
        3508
      ]
    },
    {
      "id": 103,
      "type": "MarkdownNote",
      "pos": [
        1100,
        340
      ],
      "size": [
        600,
        440
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Modelle",
      "properties": {},
      "widgets_values": [
        "## Which model should I use?\n\nUpscaling models can mainly be found on [OpenModelDB](https://openmodeldb.info/).\nExample model: [4x-UltraSharpV2.safetensors](https://huggingface.co/Kim2091/UltraSharpV2/resolve/main/4x-UltraSharpV2.safetensors?download=true)\n\nThe models must be placed in the directory `ComfyUI/models/upscale_models/`.\n```\n🗁 ComfyUI/\n└─ 🗁 models/\n    └─ 🗁 upscale_models/\n           └─ 🖹 4x-UltraSharpV2\n\n```\n\n👉 [Click here for further information.](https://maya-mond.com/comfyui-image-upscaling-workflow-anleitung/)\n\nHave Fun 🫶"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 106,
      "type": "8678b1dd-411e-46ee-8303-879b9a1dd677",
      "pos": [
        1180,
        60
      ],
      "size": [
        400,
        160
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [
        {
          "label": "UpScale Model",
          "name": "model_name",
          "type": "COMBO",
          "widget": {
            "name": "model_name"
          },
          "link": null
        },
        {
          "label": "IMAGE",
          "name": "image_1",
          "type": "IMAGE",
          "link": 154
        },
        {
          "label": "Enabled",
          "name": "switch",
          "type": "BOOLEAN",
          "widget": {
            "name": "switch"
          },
          "link": null
        },
        {
          "label": "Double Run",
          "name": "switch_1",
          "type": "BOOLEAN",
          "widget": {
            "name": "switch_1"
          },
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            137,
            138,
            139,
            140
          ]
        }
      ],
      "properties": {
        "previewExposures": []
      },
      "widgets_values": [
        "4x-UltraSharpV2.safetensors",
        true,
        false
      ]
    },
    {
      "id": 113,
      "type": "LoadImage",
      "pos": [
        500,
        60
      ],
      "size": [
        400,
        540
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            154
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "lofi.png",
        "image"
      ]
    }
  ],
  "links": [
    [
      137,
      106,
      0,
      13,
      0,
      "IMAGE"
    ],
    [
      138,
      106,
      0,
      97,
      0,
      "IMAGE"
    ],
    [
      139,
      106,
      0,
      98,
      0,
      "IMAGE"
    ],
    [
      140,
      106,
      0,
      19,
      0,
      "IMAGE"
    ],
    [
      154,
      113,
      0,
      106,
      1,
      "IMAGE"
    ]
  ],
  "groups": [],
  "definitions": {
    "subgraphs": [
      {
        "id": "8678b1dd-411e-46ee-8303-879b9a1dd677",
        "version": 1,
        "state": {
          "lastGroupId": 0,
          "lastNodeId": 114,
          "lastLinkId": 160,
          "lastRerouteId": 0
        },
        "revision": 0,
        "config": {},
        "name": "UpScaling",
        "inputNode": {
          "id": -10,
          "bounding": [
            612,
            -119,
            134.1999969482422,
            128
          ]
        },
        "outputNode": {
          "id": -20,
          "bounding": [
            3200,
            -20,
            128,
            68
          ]
        },
        "inputs": [
          {
            "id": "847a8e87-f0b4-4c08-afcf-8d82e387c116",
            "name": "model_name",
            "type": "COMBO",
            "linkIds": [
              141
            ],
            "label": "UpScale Model",
            "pos": [
              722.1999969482422,
              -95
            ]
          },
          {
            "id": "791feb7a-d842-412e-918c-2474a945246f",
            "name": "image_1",
            "type": "IMAGE",
            "linkIds": [
              152,
              157
            ],
            "label": "IMAGE",
            "pos": [
              722.1999969482422,
              -75
            ]
          },
          {
            "id": "561a0937-2323-444d-88db-6b4d569b03f0",
            "name": "switch",
            "type": "BOOLEAN",
            "linkIds": [
              160
            ],
            "label": "Enabled",
            "pos": [
              722.1999969482422,
              -55
            ]
          },
          {
            "id": "fd5ca699-95b2-4221-98a1-85b5052c16e8",
            "name": "switch_1",
            "type": "BOOLEAN",
            "linkIds": [
              155
            ],
            "label": "Double Run",
            "pos": [
              722.1999969482422,
              -35
            ]
          }
        ],
        "outputs": [
          {
            "id": "35b72a9b-97fd-4294-b38f-7781ef330335",
            "name": "IMAGE",
            "type": "IMAGE",
            "linkIds": [
              159,
              159,
              159,
              159
            ],
            "localized_name": "IMAGE",
            "pos": [
              3224,
              4
            ]
          }
        ],
        "widgets": [],
        "nodes": [
          {
            "id": 104,
            "type": "ImageUpscaleWithModel",
            "pos": [
              1800,
              -360
            ],
            "size": [
              240,
              60
            ],
            "flags": {},
            "order": 2,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "upscale_model",
                "name": "upscale_model",
                "type": "UPSCALE_MODEL",
                "link": 132
              },
              {
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE",
                "link": 133
              }
            ],
            "outputs": [
              {
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE",
                "links": [
                  145
                ]
              }
            ],
            "title": "AI Upscaling - 2nd run",
            "properties": {
              "Node name for S&R": "ImageUpscaleWithModel"
            },
            "widgets_values": []
          },
          {
            "id": 11,
            "type": "ImageUpscaleWithModel",
            "pos": [
              1440,
              -180
            ],
            "size": [
              240,
              60
            ],
            "flags": {},
            "order": 0,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "upscale_model",
                "name": "upscale_model",
                "type": "UPSCALE_MODEL",
                "link": 17
              },
              {
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE",
                "link": 152
              }
            ],
            "outputs": [
              {
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE",
                "links": [
                  133,
                  146
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "ImageUpscaleWithModel"
            },
            "widgets_values": []
          },
          {
            "id": 12,
            "type": "UpscaleModelLoader",
            "pos": [
              1020,
              -360
            ],
            "size": [
              300,
              100
            ],
            "flags": {},
            "order": 1,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "model_name",
                "name": "model_name",
                "type": "COMBO",
                "widget": {
                  "name": "model_name"
                },
                "link": 141
              }
            ],
            "outputs": [
              {
                "localized_name": "UPSCALE_MODEL",
                "name": "UPSCALE_MODEL",
                "type": "UPSCALE_MODEL",
                "links": [
                  17,
                  132
                ]
              }
            ],
            "title": "Upscale Model",
            "properties": {
              "Node name for S&R": "UpscaleModelLoader"
            },
            "widgets_values": [
              "remacri_original.safetensors"
            ]
          },
          {
            "id": 105,
            "type": "ComfySwitchNode",
            "pos": [
              2220,
              -60
            ],
            "size": [
              280,
              120
            ],
            "flags": {},
            "order": 3,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "on_false",
                "name": "on_false",
                "type": "IMAGE",
                "link": 146
              },
              {
                "localized_name": "on_true",
                "name": "on_true",
                "type": "IMAGE",
                "link": 145
              },
              {
                "localized_name": "switch",
                "name": "switch",
                "type": "BOOLEAN",
                "widget": {
                  "name": "switch"
                },
                "link": 155
              }
            ],
            "outputs": [
              {
                "localized_name": "output",
                "name": "output",
                "type": "IMAGE",
                "links": [
                  158
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "ComfySwitchNode"
            },
            "widgets_values": [
              false
            ]
          },
          {
            "id": 114,
            "type": "ComfySwitchNode",
            "pos": [
              2640,
              180
            ],
            "size": [
              280,
              120
            ],
            "flags": {},
            "order": 4,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "on_false",
                "name": "on_false",
                "type": "IMAGE",
                "link": 157
              },
              {
                "localized_name": "on_true",
                "name": "on_true",
                "type": "IMAGE",
                "link": 158
              },
              {
                "localized_name": "switch",
                "name": "switch",
                "type": "BOOLEAN",
                "widget": {
                  "name": "switch"
                },
                "link": 160
              }
            ],
            "outputs": [
              {
                "localized_name": "output",
                "name": "output",
                "type": "IMAGE",
                "links": [
                  159
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "ComfySwitchNode"
            },
            "widgets_values": [
              true
            ]
          }
        ],
        "groups": [],
        "links": [
          {
            "id": 132,
            "origin_id": 12,
            "origin_slot": 0,
            "target_id": 104,
            "target_slot": 0,
            "type": "UPSCALE_MODEL"
          },
          {
            "id": 133,
            "origin_id": 11,
            "origin_slot": 0,
            "target_id": 104,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 17,
            "origin_id": 12,
            "origin_slot": 0,
            "target_id": 11,
            "target_slot": 0,
            "type": "UPSCALE_MODEL"
          },
          {
            "id": 141,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 12,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 145,
            "origin_id": 104,
            "origin_slot": 0,
            "target_id": 105,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 146,
            "origin_id": 11,
            "origin_slot": 0,
            "target_id": 105,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 152,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 11,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 155,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 105,
            "target_slot": 2,
            "type": "BOOLEAN"
          },
          {
            "id": 157,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 114,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 158,
            "origin_id": 105,
            "origin_slot": 0,
            "target_id": 114,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 159,
            "origin_id": 114,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 160,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 114,
            "target_slot": 2,
            "type": "BOOLEAN"
          }
        ],
        "extra": {}
      }
    ]
  },
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.6975256671024483,
      "offset": [
        -196.5584122920175,
        198.270051310038
      ]
    },
    "frontendVersion": "1.47.10"
  },
  "version": 0.4
}