{ "id": "a655a710-d4a4-4e6f-b7d6-93293128e3fc", "revision": 0, "last_node_id": 16, "last_link_id": 19, "nodes": [ { "id": 1, "type": "UnetLoaderGGUF", "pos": [ 321.0414920989988, -54.26423825988769 ], "size": [ 500, 70 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 1 ] } ], "properties": { "Node name for S&R": "UnetLoaderGGUF" }, "widgets_values": [ "qwen-image-2.1-Q8_0.gguf" ], "widgets_values_named": { "unet_name": "qwen-image-2.1-Q8_0.gguf" } }, { "id": 2, "type": "CLIPLoader", "pos": [ 321.84147989196754, 72.53570375671391 ], "size": [ 500, 130 ], "flags": {}, "order": 1, "mode": 0, "inputs": [], "outputs": [ { "name": "CLIP", "type": "CLIP", "links": [ 2 ] } ], "properties": { "Node name for S&R": "CLIPLoader" }, "widgets_values": [ "qwen3vl_8b_int8_convrot.safetensors", "qwen_image", "default" ], "widgets_values_named": { "clip_name": "qwen3vl_8b_int8_convrot.safetensors", "type": "qwen_image", "device": "default" } }, { "id": 3, "type": "VAELoader", "pos": [ 313.0414005462644, 267.33572206726086 ], "size": [ 500, 80 ], "flags": {}, "order": 2, "mode": 0, "inputs": [], "outputs": [ { "name": "VAE", "type": "VAE", "links": [ 5, 6 ] } ], "properties": { "Node name for S&R": "VAELoader" }, "widgets_values": [ "qwen_image_2.1_vae_bf16.safetensors" ], "widgets_values_named": { "vae_name": "qwen_image_2.1_vae_bf16.safetensors" } }, { "id": 9, "type": "ResolutionSelector", "pos": [ 247.8092934292263, 530.1067628196712 ], "size": [ 300, 190 ], "flags": {}, "order": 3, "mode": 0, "showAdvanced": true, "inputs": [], "outputs": [ { "name": "width", "type": "INT", "links": [ 7 ] }, { "name": "height", "type": "INT", "links": [ 8 ] } ], "properties": { "Node name for S&R": "ResolutionSelector" }, "widgets_values": [ "16:9 (Widescreen)", 1, 32 ], "widgets_values_named": { "aspect_ratio": "16:9 (Widescreen)", "megapixels": 1, "multiple": 32 } }, { "id": 4, "type": "EmptyLatentImage", "pos": [ 577.5426240498864, 563.1289355356001 ], "size": [ 300, 130 ], "flags": {}, "order": 7, "mode": 0, "inputs": [ { "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 7 }, { "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 8 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 9 ] } ], "properties": { "Node name for S&R": "EmptyLatentImage" }, "widgets_values": [ 1376, 768, 1 ], "widgets_values_named": { "width": 1376, "height": 768, "batch_size": 1 } }, { "id": 11, "type": "LoadImage", "pos": [ 150.6667204464381, 946.9422720865884 ], "size": [ 300, 330 ], "flags": {}, "order": 4, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 17 ] }, { "name": "MASK", "type": "MASK", "links": null } ], "title": "Depth map / reference image", "properties": { "Node name for S&R": "LoadImage" }, "widgets_values": [ "example.png", "image" ], "widgets_values_named": { "image": "example.png", "upload": "image" } }, { "id": 12, "type": "PrimitiveBoolean", "pos": [ 485.47218638305696, 978.4995804260254 ], "size": [ 372.194921875, 58 ], "flags": {}, "order": 5, "mode": 0, "inputs": [], "outputs": [ { "name": "BOOLEAN", "type": "BOOLEAN", "links": [ 11, 18 ] } ], "title": "Reference image switch (off = pure text-to-image)", "properties": { "Node name for S&R": "PrimitiveBoolean" }, "widgets_values": [ false ], "widgets_values_named": { "value": false } }, { "id": 13, "type": "ComfySwitchNode", "pos": [ 513.5829242553709, 1145.3510485107422 ], "size": [ 300, 78 ], "flags": {}, "order": 8, "mode": 0, "inputs": [ { "name": "on_false", "type": "*", "link": null }, { "name": "on_true", "type": "*", "link": 17 }, { "name": "switch", "type": "BOOLEAN", "widget": { "name": "switch" }, "link": 18 } ], "outputs": [ { "name": "output", "type": "*", "links": [ 19 ] } ], "title": "ON: pass reference / OFF: no image", "properties": { "Node name for S&R": "ComfySwitchNode" }, "widgets_values": [ false ], "widgets_values_named": { "switch": false } }, { "id": 5, "type": "TextEncodeQwenImage21", "pos": [ 1105.7140377136232, 74.09034702758792 ], "size": [ 610, 560 ], "flags": {}, "order": 9, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 4 }, { "name": "images.image_1", "shape": 7, "type": "IMAGE", "link": 19 }, { "name": "images.image_2", "shape": 7, "type": "IMAGE", "link": null }, { "name": "images.image_3", "shape": 7, "type": "IMAGE", "link": null }, { "name": "vae", "shape": 7, "type": "VAE", "link": 5 } ], "outputs": [ { "name": "positive", "type": "CONDITIONING", "links": [ 13 ] }, { "name": "negative", "type": "CONDITIONING", "links": [ 14 ] }, { "name": "latent", "type": "LATENT", "links": [ 10 ] } ], "properties": { "Node name for S&R": "TextEncodeQwenImage21" }, "widgets_values": [ "Use the reference image as a depth map: follow its composition, silhouettes, perspective and spatial layering, and ignore its greyscale colours.\n\nA lone lighthouse on a granite headland at dusk, storm clouds breaking overhead, the beam cutting through sea mist, waves against dark rock, cinematic wide shot, photorealistic, fine surface detail, natural light.", "", 1024 ], "widgets_values_named": { "prompt": "Use the reference image as a depth map: follow its composition, silhouettes, perspective and spatial layering, and ignore its greyscale colours.\n\nA lone lighthouse on a granite headland at dusk, storm clouds breaking overhead, the beam cutting through sea mist, waves against dark rock, cinematic wide shot, photorealistic, fine surface detail, natural light.", "negative_prompt": "", "resolution": 1024 } }, { "id": 10, "type": "Power Lora Loader (rgthree)", "pos": [ 1125.9861252970372, 794.63450912679 ], "size": [ 570, 250 ], "flags": {}, "order": 6, "mode": 0, "inputs": [ { "dir": 3, "name": "model", "type": "MODEL", "link": 1 }, { "dir": 3, "name": "clip", "shape": 7, "type": "CLIP", "link": 2 } ], "outputs": [ { "dir": 4, "name": "MODEL", "type": "MODEL", "links": [ 3 ] }, { "dir": 4, "name": "CLIP", "type": "CLIP", "links": [ 4 ] } ], "properties": { "Show Strengths": "Single Strength", "Match": "", "Node name for S&R": "Power Lora Loader (rgthree)" }, "widgets_values": [ {}, { "type": "PowerLoraLoaderHeaderWidget" }, { "on": false, "lora": null, "strength": 0.8, "strengthTwo": null }, { "on": false, "lora": null, "strength": 0.6, "strengthTwo": null }, { "on": false, "lora": null, "strength": 0.4, "strengthTwo": null }, {}, "" ], "widgets_values_named": { "divider": {}, "PowerLoraLoaderHeaderWidget": { "type": "PowerLoraLoaderHeaderWidget" }, "lora_1": { "on": false, "lora": null, "strength": 0.8, "strengthTwo": null }, "lora_2": { "on": false, "lora": null, "strength": 0.6, "strengthTwo": null }, "lora_3": { "on": false, "lora": null, "strength": 0.4, "strengthTwo": null }, "divider#1": {}, "➕ Add Lora": "" } }, { "id": 14, "type": "ComfySwitchNode", "pos": [ 1915.181582637048, 68.55254367849972 ], "size": [ 361.968359375, 78 ], "flags": {}, "order": 10, "mode": 0, "inputs": [ { "name": "on_false", "type": "*", "link": 9 }, { "name": "on_true", "type": "*", "link": 10 }, { "name": "switch", "type": "BOOLEAN", "widget": { "name": "switch" }, "link": 11 } ], "outputs": [ { "name": "output", "type": "*", "links": [ 12 ] } ], "title": "ON: match reference size / OFF: use aspect ratio", "properties": { "Node name for S&R": "ComfySwitchNode" }, "widgets_values": [ false ], "widgets_values_named": { "switch": false } }, { "id": 6, "type": "KSampler", "pos": [ 1941.9049493041994, 304.46756119384776 ], "size": [ 340, 330 ], "flags": {}, "order": 11, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 3 }, { "name": "positive", "type": "CONDITIONING", "link": 13 }, { "name": "negative", "type": "CONDITIONING", "link": 14 }, { "name": "latent_image", "type": "LATENT", "link": 12 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 15 ] } ], "properties": { "Node name for S&R": "KSampler" }, "widgets_values": [ 0, "randomize", 25, 1, "euler", "simple", 1 ], "widgets_values_named": { "seed": 0, "control_after_generate": "randomize", "steps": 25, "cfg": 1, "sampler_name": "euler", "scheduler": "simple", "denoise": 1 } }, { "id": 7, "type": "VAEDecode", "pos": [ 2371.9049493041994, 344.4675611938478 ], "size": [ 250, 80 ], "flags": {}, "order": 12, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 15 }, { "name": "vae", "type": "VAE", "link": 6 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 16 ] } ], "properties": { "Node name for S&R": "VAEDecode" } }, { "id": 8, "type": "SaveImage", "pos": [ 2719.1050225463855, 289.6676344360352 ], "size": [ 560, 480 ], "flags": {}, "order": 13, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 16 } ], "outputs": [ { "name": "images", "type": "IMAGE", "links": null } ], "properties": { "Node name for S&R": "SaveImage" }, "widgets_values": [ "qwen-image-2.1/t2i_Q8_0" ], "widgets_values_named": { "filename_prefix": "qwen-image-2.1/t2i_Q8_0" } }, { "id": 15, "type": "Note", "pos": [ 2340, 68 ], "size": [ 420, 150 ], "flags": {}, "order": 14, "mode": 0, "inputs": [], "outputs": [], "title": "Read me before changing CFG", "properties": {}, "widgets_values": [ "CFG must stay at 1.0.\n\nQwen-Image 2.1 is a distilled model: raising CFG burns the image rather than strengthening the prompt. The negative prompt also has no effect at CFG 1.0.\n\nSteps 25 / euler / simple are the tested defaults." ], "color": "#432", "bgcolor": "#653" }, { "id": 16, "type": "Note", "pos": [ 485.47, 1300.0 ], "size": [ 400, 190 ], "flags": {}, "order": 15, "mode": 0, "inputs": [], "outputs": [], "title": "What the switch does", "properties": {}, "widgets_values": [ "OFF (default) = pure text-to-image.\n\nON = the loaded image is passed to the text encoder as a reference, AND the sampler takes its latent size from Text Encode Qwen Image 2.1 instead of Empty Latent Image.\n\nSo while the switch is ON the aspect ratio picker has no effect -- output size follows the reference image and the Reference resolution widget." ], "color": "#432", "bgcolor": "#653" } ], "links": [ [ 1, 1, 0, 10, 0, "MODEL" ], [ 2, 2, 0, 10, 1, "CLIP" ], [ 3, 10, 0, 6, 0, "MODEL" ], [ 6, 3, 0, 7, 1, "VAE" ], [ 7, 9, 0, 4, 0, "INT" ], [ 8, 9, 1, 4, 1, "INT" ], [ 9, 4, 0, 14, 0, "LATENT" ], [ 10, 5, 2, 14, 1, "LATENT" ], [ 11, 12, 0, 14, 2, "BOOLEAN" ], [ 12, 14, 0, 6, 3, "LATENT" ], [ 13, 5, 0, 6, 1, "CONDITIONING" ], [ 14, 5, 1, 6, 2, "CONDITIONING" ], [ 15, 6, 0, 7, 0, "LATENT" ], [ 16, 7, 0, 8, 0, "IMAGE" ], [ 17, 11, 0, 13, 1, "IMAGE" ], [ 18, 12, 0, 13, 2, "BOOLEAN" ], [ 4, 10, 1, 5, 0, "CLIP" ], [ 19, 13, 0, 5, 1, "IMAGE" ], [ 5, 3, 0, 5, 4, "VAE" ] ], "groups": [ { "id": 1, "title": "Model", "bounding": [ 287.4414554779051, -137.0642718292236, 605.5999755859375, 525.5999755859375 ], "color": "#3f789e", "flags": {} }, { "id": 2, "title": "Aspect ratio and latent size", "bounding": [ 227.09820673217808, 450.55116657401123, 670.9334038628465, 355 ], "color": "#8a6d3b", "flags": {} }, { "id": 3, "title": "Prompt", "bounding": [ 1071.7140377136232, -1.5096590759277382, 680, 650 ], "color": "#526f3e", "flags": {} }, { "id": 4, "title": "Sampling and output", "bounding": [ 1895.181582637048, 48, 1419.1235131515264, 760.8675856079101 ], "color": "#526f3e", "flags": {} }, { "id": 5, "title": "LoRA (Qwen-Image 2.1 LoRAs only)", "bounding": [ 1097.9416510131834, 696.9455849731443, 629.3333604600696, 380.66663953993043 ], "color": "#6b4c7a", "flags": {} }, { "id": 6, "title": "Optional depth reference (off by default)", "bounding": [ 131.46672349819602, 866.1422842936197, 761.3394107971191, 643.8577157063803 ], "color": "#345b63", "flags": {} } ], "config": {}, "extra": { "ds": { "scale": 0.5884, "offset": [ -91.47, 177.06 ] }, "frontendVersion": "1.53.6" }, "version": 0.4 }