{ "id": "gigahires-explicit-two-pass-reference", "revision": 0, "last_node_id": 19, "last_link_id": 31, "nodes": [ { "id": 1, "type": "CheckpointLoaderSimple", "pos": [ 20, 120 ], "size": [ 315, 98 ], "flags": {}, "order": 0, "mode": 0, "inputs": [ { "name": "ckpt_name", "type": "COMBO", "widget": { "name": "ckpt_name" }, "link": null } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "slot_index": 0, "links": [ 1, 11, 26 ] }, { "name": "CLIP", "type": "CLIP", "slot_index": 1, "links": [ 3, 5 ] }, { "name": "VAE", "type": "VAE", "slot_index": 2, "links": [ 8, 16, 19, 24, 30 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.4.0", "Node name for S&R": "CheckpointLoaderSimple" }, "widgets_values": [ "put-your-checkpoint-here.safetensors" ] }, { "id": 2, "type": "CLIPTextEncode", "pos": [ 20, 260 ], "size": [ 425, 180 ], "flags": {}, "order": 1, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 3 }, { "name": "text", "type": "STRING", "widget": { "name": "text" }, "link": null } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 4, 12, 27 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.4.0", "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "your prompt here" ], "color": "#232", "bgcolor": "#353" }, { "id": 3, "type": "CLIPTextEncode", "pos": [ 20, 470 ], "size": [ 425, 160 ], "flags": {}, "order": 2, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 5 }, { "name": "text", "type": "STRING", "widget": { "name": "text" }, "link": null } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 6, 13, 28 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.4.0", "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "text, watermark, blurry, low quality" ], "color": "#223", "bgcolor": "#335" }, { "id": 4, "type": "EmptyLatentImage", "pos": [ 20, 690 ], "size": [ 315, 106 ], "flags": {}, "order": 3, "mode": 0, "inputs": [ { "name": "width", "type": "INT", "widget": { "name": "width" }, "link": null }, { "name": "height", "type": "INT", "widget": { "name": "height" }, "link": null }, { "name": "batch_size", "type": "INT", "widget": { "name": "batch_size" }, "link": null } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "slot_index": 0, "links": [ 2 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.4.0", "Node name for S&R": "EmptyLatentImage" }, "widgets_values": [ 832, 1216, 1 ] }, { "id": 5, "type": "KSampler", "pos": [ 500, 180 ], "size": [ 220, 474 ], "flags": {}, "order": 4, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 1 }, { "name": "positive", "type": "CONDITIONING", "link": 4 }, { "name": "negative", "type": "CONDITIONING", "link": 6 }, { "name": "latent_image", "type": "LATENT", "link": 2 }, { "name": "seed", "type": "INT", "widget": { "name": "seed" }, "link": null }, { "name": "steps", "type": "INT", "widget": { "name": "steps" }, "link": null }, { "name": "cfg", "type": "FLOAT", "widget": { "name": "cfg" }, "link": null }, { "name": "sampler_name", "type": "COMBO", "widget": { "name": "sampler_name" }, "link": null }, { "name": "scheduler", "type": "COMBO", "widget": { "name": "scheduler" }, "link": null }, { "name": "denoise", "type": "FLOAT", "widget": { "name": "denoise" }, "link": null } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "slot_index": 0, "links": [ 7, 10, 18 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.4.0", "Node name for S&R": "KSampler" }, "widgets_values": [ 0, "fixed", 28, 6.5, "dpmpp_2m", "karras", 1.0 ] }, { "id": 6, "type": "VAEDecode", "pos": [ 780, 160 ], "size": [ 150, 46 ], "flags": {}, "order": 5, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 7 }, { "name": "vae", "type": "VAE", "link": 8 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 9 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.4.0", "Node name for S&R": "VAEDecode" }, "widgets_values": [] }, { "id": 7, "type": "PreviewImage", "pos": [ 960, 120 ], "size": [ 380, 420 ], "flags": {}, "order": 6, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 9 } ], "outputs": [], "properties": { "cnr_id": "comfy-core", "ver": "0.4.0", "Node name for S&R": "PreviewImage" }, "widgets_values": [] }, { "id": 8, "type": "LatentUpscaleBy", "pos": [ 1450, 120 ], "size": [ 220, 122 ], "flags": {}, "order": 7, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 10 }, { "name": "upscale_method", "type": "COMBO", "widget": { "name": "upscale_method" }, "link": null }, { "name": "scale_by", "type": "FLOAT", "widget": { "name": "scale_by" }, "link": null } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "slot_index": 0, "links": [ 14 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.4.0", "Node name for S&R": "LatentUpscaleBy" }, "widgets_values": [ "bicubic", 2.0 ] }, { "id": 9, "type": "KSampler", "pos": [ 1740, 60 ], "size": [ 220, 474 ], "flags": {}, "order": 8, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 11 }, { "name": "positive", "type": "CONDITIONING", "link": 12 }, { "name": "negative", "type": "CONDITIONING", "link": 13 }, { "name": "latent_image", "type": "LATENT", "link": 14 }, { "name": "seed", "type": "INT", "widget": { "name": "seed" }, "link": null }, { "name": "steps", "type": "INT", "widget": { "name": "steps" }, "link": null }, { "name": "cfg", "type": "FLOAT", "widget": { "name": "cfg" }, "link": null }, { "name": "sampler_name", "type": "COMBO", "widget": { "name": "sampler_name" }, "link": null }, { "name": "scheduler", "type": "COMBO", "widget": { "name": "scheduler" }, "link": null }, { "name": "denoise", "type": "FLOAT", "widget": { "name": "denoise" }, "link": null } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "slot_index": 0, "links": [ 15 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.4.0", "Node name for S&R": "KSampler" }, "widgets_values": [ 0, "fixed", 12, 7.0, "dpmpp_2m", "karras", 0.35 ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 10, "type": "VAEDecode", "pos": [ 2030, 80 ], "size": [ 150, 46 ], "flags": {}, "order": 9, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 15 }, { "name": "vae", "type": "VAE", "link": 16 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 17 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.4.0", "Node name for S&R": "VAEDecode" }, "widgets_values": [] }, { "id": 11, "type": "PreviewImage", "pos": [ 2210, 20 ], "size": [ 420, 420 ], "flags": {}, "order": 10, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 17 } ], "outputs": [], "properties": { "cnr_id": "comfy-core", "ver": "0.4.0", "Node name for S&R": "PreviewImage" }, "widgets_values": [] }, { "id": 12, "type": "UpscaleModelLoader", "pos": [ 1440, 690 ], "size": [ 300, 72 ], "flags": {}, "order": 11, "mode": 0, "inputs": [ { "name": "model_name", "type": "COMBO", "widget": { "name": "model_name" }, "link": null } ], "outputs": [ { "name": "UPSCALE_MODEL", "type": "UPSCALE_MODEL", "slot_index": 0, "links": [ 21 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.4.0", "Node name for S&R": "UpscaleModelLoader" }, "widgets_values": [ "4x-UltraSharp.pth" ] }, { "id": 13, "type": "VAEDecode", "pos": [ 1450, 830 ], "size": [ 150, 46 ], "flags": {}, "order": 12, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 18 }, { "name": "vae", "type": "VAE", "link": 19 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 20 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.4.0", "Node name for S&R": "VAEDecode" }, "widgets_values": [] }, { "id": 14, "type": "ImageUpscaleWithModel", "pos": [ 1660, 780 ], "size": [ 230, 78 ], "flags": {}, "order": 13, "mode": 0, "inputs": [ { "name": "upscale_model", "type": "UPSCALE_MODEL", "link": 21 }, { "name": "image", "type": "IMAGE", "link": 20 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 22, 23 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.4.0", "Node name for S&R": "ImageUpscaleWithModel" }, "widgets_values": [] }, { "id": 15, "type": "PreviewImage", "pos": [ 1960, 720 ], "size": [ 400, 360 ], "flags": {}, "order": 14, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 22 } ], "outputs": [], "properties": { "cnr_id": "comfy-core", "ver": "0.4.0", "Node name for S&R": "PreviewImage" }, "widgets_values": [] }, { "id": 16, "type": "VAEEncode", "pos": [ 1670, 930 ], "size": [ 150, 46 ], "flags": {}, "order": 15, "mode": 0, "inputs": [ { "name": "pixels", "type": "IMAGE", "link": 23 }, { "name": "vae", "type": "VAE", "link": 24 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "slot_index": 0, "links": [ 25 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.4.0", "Node name for S&R": "VAEEncode" }, "widgets_values": [] }, { "id": 17, "type": "KSampler", "pos": [ 1940, 1100 ], "size": [ 220, 474 ], "flags": {}, "order": 16, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 26 }, { "name": "positive", "type": "CONDITIONING", "link": 27 }, { "name": "negative", "type": "CONDITIONING", "link": 28 }, { "name": "latent_image", "type": "LATENT", "link": 25 }, { "name": "seed", "type": "INT", "widget": { "name": "seed" }, "link": null }, { "name": "steps", "type": "INT", "widget": { "name": "steps" }, "link": null }, { "name": "cfg", "type": "FLOAT", "widget": { "name": "cfg" }, "link": null }, { "name": "sampler_name", "type": "COMBO", "widget": { "name": "sampler_name" }, "link": null }, { "name": "scheduler", "type": "COMBO", "widget": { "name": "scheduler" }, "link": null }, { "name": "denoise", "type": "FLOAT", "widget": { "name": "denoise" }, "link": null } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "slot_index": 0, "links": [ 29 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.4.0", "Node name for S&R": "KSampler" }, "widgets_values": [ 0, "fixed", 12, 7.0, "dpmpp_2m", "karras", 0.3 ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 18, "type": "VAEDecode", "pos": [ 2220, 1120 ], "size": [ 150, 46 ], "flags": {}, "order": 17, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 29 }, { "name": "vae", "type": "VAE", "link": 30 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 31 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.4.0", "Node name for S&R": "VAEDecode" }, "widgets_values": [] }, { "id": 19, "type": "PreviewImage", "pos": [ 2400, 1060 ], "size": [ 420, 420 ], "flags": {}, "order": 18, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 31 } ], "outputs": [], "properties": { "cnr_id": "comfy-core", "ver": "0.4.0", "Node name for S&R": "PreviewImage" }, "widgets_values": [] } ], "links": [ [ 1, 1, 0, 5, 0, "MODEL" ], [ 2, 4, 0, 5, 3, "LATENT" ], [ 3, 1, 1, 2, 0, "CLIP" ], [ 4, 2, 0, 5, 1, "CONDITIONING" ], [ 5, 1, 1, 3, 0, "CLIP" ], [ 6, 3, 0, 5, 2, "CONDITIONING" ], [ 7, 5, 0, 6, 0, "LATENT" ], [ 8, 1, 2, 6, 1, "VAE" ], [ 9, 6, 0, 7, 0, "IMAGE" ], [ 10, 5, 0, 8, 0, "LATENT" ], [ 11, 1, 0, 9, 0, "MODEL" ], [ 12, 2, 0, 9, 1, "CONDITIONING" ], [ 13, 3, 0, 9, 2, "CONDITIONING" ], [ 14, 8, 0, 9, 3, "LATENT" ], [ 15, 9, 0, 10, 0, "LATENT" ], [ 16, 1, 2, 10, 1, "VAE" ], [ 17, 10, 0, 11, 0, "IMAGE" ], [ 18, 5, 0, 13, 0, "LATENT" ], [ 19, 1, 2, 13, 1, "VAE" ], [ 20, 13, 0, 14, 1, "IMAGE" ], [ 21, 12, 0, 14, 0, "UPSCALE_MODEL" ], [ 22, 14, 0, 15, 0, "IMAGE" ], [ 23, 14, 0, 16, 0, "IMAGE" ], [ 24, 1, 2, 16, 1, "VAE" ], [ 25, 16, 0, 17, 3, "LATENT" ], [ 26, 1, 0, 17, 0, "MODEL" ], [ 27, 2, 0, 17, 1, "CONDITIONING" ], [ 28, 3, 0, 17, 2, "CONDITIONING" ], [ 29, 17, 0, 18, 0, "LATENT" ], [ 30, 1, 2, 18, 1, "VAE" ], [ 31, 18, 0, 19, 0, "IMAGE" ] ], "groups": [ { "id": 1, "title": "1. Normal Pass: prompt + latent + first KSampler", "bounding": [ 10, 100, 740, 760 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 2, "title": "2A. Upscale in latent, then 2nd pass refine", "bounding": [ 1430, 20, 1210, 540 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 3, "title": "2B. Decode -> upscale model -> encode -> 2nd pass refine", "bounding": [ 1430, 650, 1410, 950 ], "color": "#3f789e", "font_size": 24, "flags": {} } ], "config": {}, "extra": { "ds": { "scale": 0.55, "offset": [ 50, 120 ] }, "frontendVersion": "1.31.0" }, "version": 0.4 }