{
  "config": {},
  "definitions": {
    "subgraphs": [
      {
        "config": {},
        "extra": {
          "workflowRendererVersion": "LG"
        },
        "groups": [],
        "id": "c35dd4ba-0fe3-47d6-afce-1c56d9fe5beb",
        "inputNode": {
          "bounding": [
            -1150,
            800,
            128,
            68
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "040e9c36-17d5-4d9b-93e3-f61d43013403",
            "linkIds": [
              49,
              50
            ],
            "localized_name": "image",
            "name": "image",
            "pos": [
              -1046,
              824
            ],
            "type": "IMAGE"
          }
        ],
        "links": [
          {
            "id": 36,
            "origin_id": 21,
            "origin_slot": 0,
            "target_id": 40,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 37,
            "origin_id": 21,
            "origin_slot": 1,
            "target_id": 40,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 23,
            "origin_id": 30,
            "origin_slot": 0,
            "target_id": 25,
            "target_slot": 1,
            "type": "FLOAT"
          },
          {
            "id": 25,
            "origin_id": 28,
            "origin_slot": 0,
            "target_id": 27,
            "target_slot": 1,
            "type": "SEEDVR2_DIT"
          },
          {
            "id": 26,
            "origin_id": 22,
            "origin_slot": 0,
            "target_id": 27,
            "target_slot": 2,
            "type": "SEEDVR2_VAE"
          },
          {
            "id": 27,
            "origin_id": 25,
            "origin_slot": 0,
            "target_id": 27,
            "target_slot": 4,
            "type": "INT"
          },
          {
            "id": 43,
            "origin_id": 27,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 49,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 21,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 50,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 27,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 53,
            "origin_id": 40,
            "origin_slot": 0,
            "target_id": 49,
            "target_slot": 2,
            "type": "BOOLEAN"
          },
          {
            "id": 54,
            "origin_id": 21,
            "origin_slot": 0,
            "target_id": 49,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 55,
            "origin_id": 21,
            "origin_slot": 1,
            "target_id": 49,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 56,
            "origin_id": 49,
            "origin_slot": 0,
            "target_id": 25,
            "target_slot": 0,
            "type": "INT"
          }
        ],
        "name": "Image Upscale(SeedVR2)",
        "nodes": [
          {
            "flags": {
              "collapsed": false
            },
            "id": 40,
            "inputs": [
              {
                "link": 36,
                "localized_name": "a",
                "name": "a",
                "type": "*"
              },
              {
                "link": 37,
                "localized_name": "b",
                "name": "b",
                "type": "*"
              },
              {
                "link": null,
                "localized_name": "cmp",
                "name": "cmp",
                "type": "COMBO",
                "widget": {
                  "name": "cmp"
                }
              }
            ],
            "mode": 0,
            "order": 7,
            "outputs": [
              {
                "links": [
                  53
                ],
                "localized_name": "BOOLEAN",
                "name": "BOOLEAN",
                "type": "BOOLEAN"
              }
            ],
            "pos": [
              -650,
              1520
            ],
            "properties": {
              "Node name for S&R": "ImpactCompare"
            },
            "size": [
              260,
              130
            ],
            "type": "ImpactCompare",
            "widgets_values": [
              "a <= b"
            ]
          },
          {
            "flags": {
              "collapsed": false
            },
            "id": 25,
            "inputs": [
              {
                "link": 56,
                "localized_name": "a",
                "name": "a",
                "shape": 7,
                "type": "INT,FLOAT"
              },
              {
                "link": 23,
                "localized_name": "b",
                "name": "b",
                "shape": 7,
                "type": "INT,FLOAT"
              },
              {
                "link": null,
                "localized_name": "value",
                "name": "value",
                "type": "STRING",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 5,
            "outputs": [
              {
                "links": [
                  27
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              }
            ],
            "pos": [
              400,
              1560
            ],
            "properties": {
              "Node name for S&R": "SimpleMath+",
              "cnr_id": "comfyui_essentials",
              "ver": "1.1.0"
            },
            "size": [
              270,
              140
            ],
            "title": "Upscale to Shortest Edge (pixels)",
            "type": "SimpleMath+",
            "widgets_values": [
              "a*b"
            ]
          },
          {
            "bgcolor": "#353",
            "color": "#232",
            "flags": {},
            "id": 30,
            "inputs": [
              {
                "label": "Upscale Factor",
                "link": null,
                "localized_name": "value",
                "name": "value",
                "type": "FLOAT",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  23
                ],
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              }
            ],
            "pos": [
              -310,
              1790
            ],
            "properties": {
              "Node name for S&R": "PrimitiveFloat",
              "cnr_id": "comfy-core",
              "ver": "0.3.66"
            },
            "size": [
              260,
              80
            ],
            "title": "Upscale Factor",
            "type": "PrimitiveFloat",
            "widgets_values": [
              2
            ]
          },
          {
            "flags": {},
            "id": 27,
            "inputs": [
              {
                "link": 50,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 25,
                "localized_name": "dit",
                "name": "dit",
                "type": "SEEDVR2_DIT"
              },
              {
                "link": 26,
                "localized_name": "vae",
                "name": "vae",
                "type": "SEEDVR2_VAE"
              },
              {
                "link": null,
                "localized_name": "seed",
                "name": "seed",
                "type": "INT",
                "widget": {
                  "name": "seed"
                }
              },
              {
                "link": 27,
                "localized_name": "resolution",
                "name": "resolution",
                "type": "INT",
                "widget": {
                  "name": "resolution"
                }
              },
              {
                "link": null,
                "localized_name": "max_resolution",
                "name": "max_resolution",
                "type": "INT",
                "widget": {
                  "name": "max_resolution"
                }
              },
              {
                "link": null,
                "localized_name": "batch_size",
                "name": "batch_size",
                "type": "INT",
                "widget": {
                  "name": "batch_size"
                }
              },
              {
                "link": null,
                "localized_name": "uniform_batch_size",
                "name": "uniform_batch_size",
                "type": "BOOLEAN",
                "widget": {
                  "name": "uniform_batch_size"
                }
              },
              {
                "link": null,
                "localized_name": "color_correction",
                "name": "color_correction",
                "type": "COMBO",
                "widget": {
                  "name": "color_correction"
                }
              },
              {
                "link": null,
                "localized_name": "temporal_overlap",
                "name": "temporal_overlap",
                "shape": 7,
                "type": "INT",
                "widget": {
                  "name": "temporal_overlap"
                }
              },
              {
                "link": null,
                "localized_name": "prepend_frames",
                "name": "prepend_frames",
                "shape": 7,
                "type": "INT",
                "widget": {
                  "name": "prepend_frames"
                }
              },
              {
                "link": null,
                "localized_name": "input_noise_scale",
                "name": "input_noise_scale",
                "shape": 7,
                "type": "FLOAT",
                "widget": {
                  "name": "input_noise_scale"
                }
              },
              {
                "link": null,
                "localized_name": "latent_noise_scale",
                "name": "latent_noise_scale",
                "shape": 7,
                "type": "FLOAT",
                "widget": {
                  "name": "latent_noise_scale"
                }
              },
              {
                "link": null,
                "localized_name": "offload_device",
                "name": "offload_device",
                "shape": 7,
                "type": "COMBO",
                "widget": {
                  "name": "offload_device"
                }
              },
              {
                "link": null,
                "localized_name": "enable_debug",
                "name": "enable_debug",
                "shape": 7,
                "type": "BOOLEAN",
                "widget": {
                  "name": "enable_debug"
                }
              }
            ],
            "mode": 0,
            "order": 6,
            "outputs": [
              {
                "links": [
                  43
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              790,
              800
            ],
            "properties": {
              "Node name for S&R": "SeedVR2VideoUpscaler",
              "cnr_id": "seedvr2_videoupscaler",
              "ver": "2a873e2f286224bb00c60fe3fb61b88b65258a6d"
            },
            "size": [
              330,
              500
            ],
            "type": "SeedVR2VideoUpscaler",
            "widgets_values": [
              1990556266,
              "randomize",
              1080,
              0,
              1,
              false,
              "lab",
              0,
              0,
              0.001,
              0.001,
              "cpu",
              false
            ]
          },
          {
            "flags": {},
            "id": 22,
            "inputs": [
              {
                "link": null,
                "localized_name": "torch_compile_args",
                "name": "torch_compile_args",
                "shape": 7,
                "type": "TORCH_COMPILE_ARGS"
              },
              {
                "link": null,
                "localized_name": "model",
                "name": "model",
                "type": "COMBO",
                "widget": {
                  "name": "model"
                }
              },
              {
                "link": null,
                "localized_name": "device",
                "name": "device",
                "type": "COMBO",
                "widget": {
                  "name": "device"
                }
              },
              {
                "link": null,
                "localized_name": "encode_tiled",
                "name": "encode_tiled",
                "shape": 7,
                "type": "BOOLEAN",
                "widget": {
                  "name": "encode_tiled"
                }
              },
              {
                "link": null,
                "localized_name": "encode_tile_size",
                "name": "encode_tile_size",
                "shape": 7,
                "type": "INT",
                "widget": {
                  "name": "encode_tile_size"
                }
              },
              {
                "link": null,
                "localized_name": "encode_tile_overlap",
                "name": "encode_tile_overlap",
                "shape": 7,
                "type": "INT",
                "widget": {
                  "name": "encode_tile_overlap"
                }
              },
              {
                "link": null,
                "localized_name": "decode_tiled",
                "name": "decode_tiled",
                "shape": 7,
                "type": "BOOLEAN",
                "widget": {
                  "name": "decode_tiled"
                }
              },
              {
                "link": null,
                "localized_name": "decode_tile_size",
                "name": "decode_tile_size",
                "shape": 7,
                "type": "INT",
                "widget": {
                  "name": "decode_tile_size"
                }
              },
              {
                "link": null,
                "localized_name": "decode_tile_overlap",
                "name": "decode_tile_overlap",
                "shape": 7,
                "type": "INT",
                "widget": {
                  "name": "decode_tile_overlap"
                }
              },
              {
                "link": null,
                "localized_name": "tile_debug",
                "name": "tile_debug",
                "shape": 7,
                "type": "COMBO",
                "widget": {
                  "name": "tile_debug"
                }
              },
              {
                "link": null,
                "localized_name": "offload_device",
                "name": "offload_device",
                "shape": 7,
                "type": "COMBO",
                "widget": {
                  "name": "offload_device"
                }
              },
              {
                "link": null,
                "localized_name": "cache_model",
                "name": "cache_model",
                "shape": 7,
                "type": "BOOLEAN",
                "widget": {
                  "name": "cache_model"
                }
              }
            ],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  26
                ],
                "localized_name": "SEEDVR2_VAE",
                "name": "SEEDVR2_VAE",
                "type": "SEEDVR2_VAE"
              }
            ],
            "pos": [
              220,
              1080
            ],
            "properties": {
              "Node name for S&R": "SeedVR2LoadVAEModel",
              "cnr_id": "seedvr2_videoupscaler",
              "ver": "2a873e2f286224bb00c60fe3fb61b88b65258a6d"
            },
            "size": [
              450,
              420
            ],
            "type": "SeedVR2LoadVAEModel",
            "widgets_values": [
              "ema_vae_fp16.safetensors",
              "cuda:0",
              true,
              1024,
              128,
              true,
              1024,
              128,
              "false",
              "none",
              false
            ]
          },
          {
            "flags": {},
            "id": 28,
            "inputs": [
              {
                "link": null,
                "localized_name": "torch_compile_args",
                "name": "torch_compile_args",
                "shape": 7,
                "type": "TORCH_COMPILE_ARGS"
              },
              {
                "link": null,
                "localized_name": "model",
                "name": "model",
                "type": "COMBO",
                "widget": {
                  "name": "model"
                }
              },
              {
                "link": null,
                "localized_name": "device",
                "name": "device",
                "type": "COMBO",
                "widget": {
                  "name": "device"
                }
              },
              {
                "link": null,
                "localized_name": "blocks_to_swap",
                "name": "blocks_to_swap",
                "shape": 7,
                "type": "INT",
                "widget": {
                  "name": "blocks_to_swap"
                }
              },
              {
                "link": null,
                "localized_name": "swap_io_components",
                "name": "swap_io_components",
                "shape": 7,
                "type": "BOOLEAN",
                "widget": {
                  "name": "swap_io_components"
                }
              },
              {
                "link": null,
                "localized_name": "offload_device",
                "name": "offload_device",
                "shape": 7,
                "type": "COMBO",
                "widget": {
                  "name": "offload_device"
                }
              },
              {
                "link": null,
                "localized_name": "cache_model",
                "name": "cache_model",
                "shape": 7,
                "type": "BOOLEAN",
                "widget": {
                  "name": "cache_model"
                }
              },
              {
                "link": null,
                "localized_name": "attention_mode",
                "name": "attention_mode",
                "shape": 7,
                "type": "COMBO",
                "widget": {
                  "name": "attention_mode"
                }
              }
            ],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  25
                ],
                "localized_name": "SEEDVR2_DIT",
                "name": "SEEDVR2_DIT",
                "type": "SEEDVR2_DIT"
              }
            ],
            "pos": [
              220,
              810
            ],
            "properties": {
              "Node name for S&R": "SeedVR2LoadDiTModel",
              "cnr_id": "seedvr2_videoupscaler",
              "ver": "2a873e2f286224bb00c60fe3fb61b88b65258a6d"
            },
            "size": [
              450,
              300
            ],
            "type": "SeedVR2LoadDiTModel",
            "widgets_values": [
              "seedvr2_ema_7b_fp16.safetensors",
              "cuda:0",
              0,
              false,
              "cpu",
              false,
              "sdpa"
            ]
          },
          {
            "flags": {
              "collapsed": false
            },
            "id": 21,
            "inputs": [
              {
                "link": 49,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 4,
            "outputs": [
              {
                "links": [
                  36,
                  54
                ],
                "localized_name": "width",
                "name": "width",
                "type": "INT"
              },
              {
                "links": [
                  37,
                  55
                ],
                "localized_name": "height",
                "name": "height",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "batch_size",
                "name": "batch_size",
                "type": "INT"
              }
            ],
            "pos": [
              -970,
              1520
            ],
            "properties": {
              "Node name for S&R": "GetImageSize",
              "cnr_id": "comfy-core",
              "ver": "0.3.66"
            },
            "size": [
              230,
              100
            ],
            "type": "GetImageSize",
            "widgets_values": []
          },
          {
            "bgcolor": "#000",
            "color": "#222",
            "flags": {
              "collapsed": false
            },
            "id": 26,
            "inputs": [],
            "mode": 0,
            "order": 3,
            "outputs": [],
            "pos": [
              -170,
              830
            ],
            "properties": {},
            "size": [
              330,
              420
            ],
            "title": "Note",
            "type": "MarkdownNote",
            "widgets_values": [
              "## About SeedVR2\n\nYou can watch a comprehensive tutorial from the author on [Youtube](https://www.youtube.com/watch?v=MBtWYXq_r60) or check out the [Github](https://github.com/numz/ComfyUI-SeedVR2_VideoUpscaler).\n\n## Quick Notes\nHover over the node inputs for tooltip info from author\n\ninput_noise_scale softens higher frequency details (e.g. skin textures)\n\nlatent_noise_scale softens low frequency details. Best around 0.01-0.05 (but depends on upscale factor)\n\nNodes support alpha masks\n\n\n"
            ]
          },
          {
            "flags": {},
            "id": 49,
            "inputs": [
              {
                "link": 55,
                "localized_name": "on_false",
                "name": "on_false",
                "type": "INT"
              },
              {
                "link": 54,
                "localized_name": "on_true",
                "name": "on_true",
                "type": "INT"
              },
              {
                "link": 53,
                "localized_name": "switch",
                "name": "switch",
                "type": "BOOLEAN",
                "widget": {
                  "name": "switch"
                }
              }
            ],
            "mode": 0,
            "order": 8,
            "outputs": [
              {
                "links": [
                  56
                ],
                "localized_name": "output",
                "name": "output",
                "type": "INT"
              }
            ],
            "pos": [
              -310,
              1520
            ],
            "properties": {
              "Node name for S&R": "ComfySwitchNode"
            },
            "size": [
              270,
              130
            ],
            "type": "ComfySwitchNode",
            "widgets_values": [
              false
            ]
          }
        ],
        "outputNode": {
          "bounding": [
            1365,
            1215,
            128,
            68
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "43c03fed-dfc5-4410-b196-9d1bd4f44ba3",
            "linkIds": [
              43,
              43
            ],
            "localized_name": "IMAGE",
            "name": "IMAGE",
            "pos": [
              1389,
              1239
            ],
            "type": "IMAGE"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 2,
          "lastLinkId": 60,
          "lastNodeId": 51,
          "lastRerouteId": 0
        },
        "version": 1,
        "widgets": []
      }
    ]
  },
  "extra": {
    "VHS_KeepIntermediate": true,
    "VHS_MetadataImage": true,
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "ds": {
      "offset": [
        892.4131395839937,
        -253.002800667532
      ],
      "scale": 1.2284597357367284
    },
    "frontendVersion": "1.38.12",
    "linearData": {
      "inputs": [
        [
          "24",
          "image"
        ],
        [
          "30",
          "value"
        ]
      ],
      "outputs": [
        "45"
      ]
    },
    "linearMode": true,
    "workflowRendererVersion": "Vue-corrected"
  },
  "groups": [],
  "id": "38e4bb73-65f3-4be1-b8fb-07f98ee4021b",
  "last_link_id": 60,
  "last_node_id": 51,
  "links": [
    [
      46,
      24,
      0,
      47,
      0,
      "IMAGE"
    ],
    [
      48,
      47,
      0,
      45,
      0,
      "IMAGE"
    ]
  ],
  "nodes": [
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 24,
      "inputs": [
        {
          "label": "Load Image",
          "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": [
            46
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": [],
          "localized_name": "MASK",
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        -1040,
        370
      ],
      "properties": {
        "Node name for S&R": "LoadImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.52"
      },
      "size": [
        590,
        450
      ],
      "type": "LoadImage",
      "widgets_values": [
        "34b0bc7fc43e08793288c4a6e27dd7d1c65c076e83fd0d472d9820331570abfe.png",
        "image"
      ]
    },
    {
      "flags": {},
      "id": 45,
      "inputs": [
        {
          "link": 48,
          "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": 2,
      "outputs": [
        {
          "links": [],
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "pos": [
        80,
        370
      ],
      "properties": {},
      "size": [
        600,
        440
      ],
      "type": "SaveImage",
      "widgets_values": [
        "ComfyUI-upscaled"
      ]
    },
    {
      "flags": {},
      "id": 47,
      "inputs": [
        {
          "link": 46,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 1,
      "outputs": [
        {
          "links": [
            48
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        -380,
        370
      ],
      "properties": {
        "proxyWidgets": [
          [
            "28",
            "model"
          ],
          [
            "30",
            "value"
          ],
          [
            "27",
            "seed"
          ],
          [
            "27",
            "control_after_generate"
          ]
        ]
      },
      "size": [
        370,
        180
      ],
      "title": "SeedVR2 Image Upscaler",
      "type": "c35dd4ba-0fe3-47d6-afce-1c56d9fe5beb",
      "widgets_values": []
    }
  ],
  "revision": 0,
  "version": 0.4
}