{
 "id": "a50cb60b-11a7-5492-ae83-9c273fa6a7c4",
 "revision": 0,
 "last_node_id": 12,
 "last_link_id": 17,
 "nodes": [
  {
   "id": 1,
   "type": "LoadImage",
   "pos": [
    0,
    0
   ],
   "size": [
    320,
    360
   ],
   "flags": {},
   "order": 0,
   "mode": 0,
   "inputs": [],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      1,
      16
     ],
     "slot_index": 0
    },
    {
     "name": "MASK",
     "type": "MASK",
     "links": [],
     "slot_index": 1
    }
   ],
   "properties": {
    "Node name for S&R": "LoadImage"
   },
   "widgets_values": [
    "ushiblo-upscale-sample-anime.png",
    "image"
   ]
  },
  {
   "id": 2,
   "type": "UNETLoader",
   "pos": [
    0,
    420
   ],
   "size": [
    320,
    90
   ],
   "flags": {},
   "order": 1,
   "mode": 0,
   "inputs": [],
   "outputs": [
    {
     "name": "MODEL",
     "type": "MODEL",
     "links": [
      5,
      7
     ],
     "slot_index": 0
    }
   ],
   "properties": {
    "Node name for S&R": "UNETLoader",
    "models": [
     {
      "name": "seedvr2_3b_int8_convrot.safetensors",
      "directory": "diffusion_models",
      "url": "https://huggingface.co/Comfy-Org/SeedVR2/resolve/main/diffusion_models/seedvr2_3b_int8_convrot.safetensors"
     }
    ]
   },
   "widgets_values": [
    "seedvr2_3b_int8_convrot.safetensors",
    "default"
   ]
  },
  {
   "id": 3,
   "type": "VAELoader",
   "pos": [
    0,
    550
   ],
   "size": [
    320,
    70
   ],
   "flags": {},
   "order": 2,
   "mode": 0,
   "inputs": [],
   "outputs": [
    {
     "name": "VAE",
     "type": "VAE",
     "links": [
      4,
      12
     ],
     "slot_index": 0
    }
   ],
   "properties": {
    "Node name for S&R": "VAELoader",
    "models": [
     {
      "name": "seedvr2_ema_vae_fp16.safetensors",
      "directory": "vae",
      "url": "https://huggingface.co/Comfy-Org/SeedVR2/resolve/main/vae/seedvr2_ema_vae_fp16.safetensors"
     }
    ]
   },
   "widgets_values": [
    "seedvr2_ema_vae_fp16.safetensors"
   ]
  },
  {
   "id": 4,
   "type": "ResizeImageMaskNode",
   "pos": [
    380,
    0
   ],
   "size": [
    300,
    130
   ],
   "flags": {},
   "order": 3,
   "mode": 0,
   "inputs": [
    {
     "name": "input",
     "type": "IMAGE",
     "link": 1
    }
   ],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      2,
      14
     ],
     "slot_index": 0
    }
   ],
   "properties": {
    "Node name for S&R": "ResizeImageMaskNode"
   },
   "widgets_values": [
    "scale by multiplier",
    4,
    "lanczos"
   ]
  },
  {
   "id": 5,
   "type": "SeedVR2Preprocess",
   "pos": [
    380,
    180
   ],
   "size": [
    300,
    60
   ],
   "flags": {},
   "order": 4,
   "mode": 0,
   "inputs": [
    {
     "name": "resized_images",
     "type": "IMAGE",
     "link": 2
    }
   ],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      3
     ],
     "slot_index": 0
    }
   ],
   "properties": {
    "Node name for S&R": "SeedVR2Preprocess"
   },
   "widgets_values": []
  },
  {
   "id": 6,
   "type": "VAEEncodeTiled",
   "pos": [
    380,
    290
   ],
   "size": [
    300,
    170
   ],
   "flags": {},
   "order": 5,
   "mode": 0,
   "inputs": [
    {
     "name": "pixels",
     "type": "IMAGE",
     "link": 3
    },
    {
     "name": "vae",
     "type": "VAE",
     "link": 4
    }
   ],
   "outputs": [
    {
     "name": "LATENT",
     "type": "LATENT",
     "links": [
      6,
      10
     ],
     "slot_index": 0
    }
   ],
   "properties": {
    "Node name for S&R": "VAEEncodeTiled"
   },
   "widgets_values": [
    512,
    128,
    4096,
    8
   ]
  },
  {
   "id": 7,
   "type": "SeedVR2Conditioning",
   "pos": [
    380,
    510
   ],
   "size": [
    300,
    80
   ],
   "flags": {},
   "order": 6,
   "mode": 0,
   "inputs": [
    {
     "name": "model",
     "type": "MODEL",
     "link": 5
    },
    {
     "name": "vae_conditioning",
     "type": "LATENT",
     "link": 6
    }
   ],
   "outputs": [
    {
     "name": "positive",
     "type": "CONDITIONING",
     "links": [
      8
     ],
     "slot_index": 0
    },
    {
     "name": "negative",
     "type": "CONDITIONING",
     "links": [
      9
     ],
     "slot_index": 1
    }
   ],
   "properties": {
    "Node name for S&R": "SeedVR2Conditioning"
   },
   "widgets_values": []
  },
  {
   "id": 8,
   "type": "KSampler",
   "pos": [
    740,
    0
   ],
   "size": [
    300,
    270
   ],
   "flags": {},
   "order": 7,
   "mode": 0,
   "inputs": [
    {
     "name": "model",
     "type": "MODEL",
     "link": 7
    },
    {
     "name": "positive",
     "type": "CONDITIONING",
     "link": 8
    },
    {
     "name": "negative",
     "type": "CONDITIONING",
     "link": 9
    },
    {
     "name": "latent_image",
     "type": "LATENT",
     "link": 10
    }
   ],
   "outputs": [
    {
     "name": "LATENT",
     "type": "LATENT",
     "links": [
      11
     ],
     "slot_index": 0
    }
   ],
   "properties": {
    "Node name for S&R": "KSampler"
   },
   "widgets_values": [
    1234,
    "fixed",
    1,
    1.0,
    "euler",
    "simple",
    1.0
   ]
  },
  {
   "id": 9,
   "type": "VAEDecodeTiled",
   "pos": [
    740,
    320
   ],
   "size": [
    300,
    170
   ],
   "flags": {},
   "order": 8,
   "mode": 0,
   "inputs": [
    {
     "name": "samples",
     "type": "LATENT",
     "link": 11
    },
    {
     "name": "vae",
     "type": "VAE",
     "link": 12
    }
   ],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      13
     ],
     "slot_index": 0
    }
   ],
   "properties": {
    "Node name for S&R": "VAEDecodeTiled"
   },
   "widgets_values": [
    512,
    128,
    4096,
    8
   ]
  },
  {
   "id": 10,
   "type": "SeedVR2PostProcessing",
   "pos": [
    740,
    540
   ],
   "size": [
    300,
    110
   ],
   "flags": {},
   "order": 9,
   "mode": 0,
   "inputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "link": 13
    },
    {
     "name": "original_resized_images",
     "type": "IMAGE",
     "link": 14
    }
   ],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      15,
      17
     ],
     "slot_index": 0
    }
   ],
   "properties": {
    "Node name for S&R": "SeedVR2PostProcessing"
   },
   "widgets_values": [
    "lab"
   ]
  },
  {
   "id": 11,
   "type": "SaveImage",
   "pos": [
    1100,
    0
   ],
   "size": [
    320,
    320
   ],
   "flags": {},
   "order": 10,
   "mode": 0,
   "inputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "link": 15
    }
   ],
   "outputs": [],
   "properties": {
    "Node name for S&R": "SaveImage"
   },
   "widgets_values": [
    "upscale/seedvr2"
   ]
  },
  {
   "id": 12,
   "type": "ImageCompare",
   "pos": [
    1100,
    380
   ],
   "size": [
    420,
    420
   ],
   "flags": {},
   "order": 11,
   "mode": 0,
   "inputs": [
    {
     "name": "image_a",
     "type": "IMAGE",
     "link": 16
    },
    {
     "name": "image_b",
     "type": "IMAGE",
     "link": 17
    }
   ],
   "outputs": [],
   "properties": {
    "Node name for S&R": "ImageCompare"
   },
   "widgets_values": []
  }
 ],
 "links": [
  [
   1,
   1,
   0,
   4,
   0,
   "IMAGE"
  ],
  [
   2,
   4,
   0,
   5,
   0,
   "IMAGE"
  ],
  [
   3,
   5,
   0,
   6,
   0,
   "IMAGE"
  ],
  [
   4,
   3,
   0,
   6,
   1,
   "VAE"
  ],
  [
   5,
   2,
   0,
   7,
   0,
   "MODEL"
  ],
  [
   6,
   6,
   0,
   7,
   1,
   "LATENT"
  ],
  [
   7,
   2,
   0,
   8,
   0,
   "MODEL"
  ],
  [
   8,
   7,
   0,
   8,
   1,
   "CONDITIONING"
  ],
  [
   9,
   7,
   1,
   8,
   2,
   "CONDITIONING"
  ],
  [
   10,
   6,
   0,
   8,
   3,
   "LATENT"
  ],
  [
   11,
   8,
   0,
   9,
   0,
   "LATENT"
  ],
  [
   12,
   3,
   0,
   9,
   1,
   "VAE"
  ],
  [
   13,
   9,
   0,
   10,
   0,
   "IMAGE"
  ],
  [
   14,
   4,
   0,
   10,
   1,
   "IMAGE"
  ],
  [
   15,
   10,
   0,
   11,
   0,
   "IMAGE"
  ],
  [
   16,
   1,
   0,
   12,
   0,
   "IMAGE"
  ],
  [
   17,
   10,
   0,
   12,
   1,
   "IMAGE"
  ]
 ],
 "groups": [],
 "config": {},
 "extra": {
  "ds": {
   "scale": 0.8,
   "offset": [
    40,
    40
   ]
  }
 },
 "version": 0.4
}