{ "id": "2c4f5967-11c9-4c0d-9de2-08d6498d0f00", "revision": 0, "last_node_id": 80, "last_link_id": 204, "nodes": [ { "id": 1, "type": "UNETLoader", "pos": [ -433.89536840373427, 2107.266260400719 ], "size": [ 270, 82 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 1 ] } ], "properties": { "Node name for S&R": "UNETLoader" }, "widgets_values": [ "qwen_image_2.1_int8_convrot.safetensors", "default" ], "widgets_values_named": { "unet_name": "qwen_image_2.1_int8_convrot.safetensors", "weight_dtype": "default" } }, { "id": 2, "type": "CLIPLoader", "pos": [ -433.89536840373427, 2500.791790947743 ], "size": [ 270, 106 ], "flags": {}, "order": 1, "mode": 0, "inputs": [], "outputs": [ { "name": "CLIP", "type": "CLIP", "links": [ 3 ] } ], "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": "LoraLoaderModelOnly", "pos": [ -433.89536840373427, 2238.4414372497276 ], "size": [ 270, 82 ], "flags": {}, "order": 5, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 1 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 143 ] } ], "properties": { "Node name for S&R": "LoraLoaderModelOnly" }, "widgets_values": [ "qwen-image-2.1%E7%BA%A0%E6%AD%A3%E8%83%8C%E6%99%AF%E9%80%8F%E8%A7%86%E6%BA%B6%E5%9B%BEv2.0.safetensors", 1 ], "widgets_values_named": { "lora_name": "qwen-image-2.1%E7%BA%A0%E6%AD%A3%E8%83%8C%E6%99%AF%E9%80%8F%E8%A7%86%E6%BA%B6%E5%9B%BEv2.0.safetensors", "strength_model": 1 } }, { "id": 4, "type": "QwenImage21Cache", "pos": [ -98.83977549038069, 2205.8012560323045 ], "size": [ 270, 82 ], "flags": {}, "order": 12, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 62 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 145 ] } ], "properties": { "Node name for S&R": "QwenImage21Cache" }, "widgets_values": [ "auto", "default" ], "widgets_values_named": { "device": "auto", "dtype": "default" } }, { "id": 5, "type": "TextEncodeQwenImage21", "pos": [ -98.18859486172123, 2348.879906632616 ], "size": [ 502.6032647905131, 412.68631728695755 ], "flags": {}, "order": 14, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 3 }, { "name": "images.image_1", "shape": 7, "type": "IMAGE", "link": 167 }, { "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": 4 } ], "outputs": [ { "name": "positive", "type": "CONDITIONING", "links": [ 146 ] }, { "name": "negative", "type": "CONDITIONING", "links": [ 147 ] }, { "name": "latent", "type": "LATENT", "links": [ 148 ] } ], "properties": { "Node name for S&R": "TextEncodeQwenImage21" }, "widgets_values": [ "pysj666 keep the subject position and size unchanged, adjust the background perspective angle to align with the subject's vanishing point. seamless blending between subject and background.", "", 0 ], "widgets_values_named": { "prompt": "pysj666 keep the subject position and size unchanged, adjust the background perspective angle to align with the subject's vanishing point. seamless blending between subject and background.", "negative_prompt": "", "resolution": 0 } }, { "id": 6, "type": "VAELoader", "pos": [ -433.89536840373427, 2655.9669677967504 ], "size": [ 270, 58 ], "flags": {}, "order": 2, "mode": 0, "inputs": [], "outputs": [ { "name": "VAE", "type": "VAE", "links": [ 4, 10 ] } ], "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": "VAEDecode", "pos": [ 487.10028188497506, 2262.8277303062505 ], "size": [ 229.35650929932717, 46 ], "flags": {}, "order": 17, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 150 }, { "name": "vae", "type": "VAE", "link": 10 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 13 ] } ], "properties": { "Node name for S&R": "VAEDecode" } }, { "id": 12, "type": "SaveImageAdvanced", "pos": [ 744.1769425510197, 2057.7693188341673 ], "size": [ 638.6556742327241, 710.4480722086728 ], "flags": {}, "order": 18, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 13 } ], "outputs": [ { "name": "images", "type": "IMAGE", "links": [ 59 ] } ], "properties": {}, "widgets_values": [ "ComfyUI", "png", "8-bit", "sRGB" ], "widgets_values_named": { "filename_prefix": "ComfyUI", "format": "png", "format.bit_depth": "8-bit", "format.input_color_space": "sRGB" } }, { "id": 20, "type": "Image Comparer (rgthree)", "pos": [ 1409.8308977432232, 2055.6832509655947 ], "size": [ 745.4189001442227, 699.5854823222135 ], "flags": {}, "order": 19, "mode": 0, "inputs": [ { "dir": 3, "name": "image_a", "type": "IMAGE", "link": 59 }, { "dir": 3, "name": "image_b", "type": "IMAGE", "link": 187 } ], "outputs": [ { "dir": 4, "name": "images", "shape": 3, "type": "IMAGE", "links": null } ], "properties": { "comparer_mode": "Slide" }, "widgets_values": [ [ { "name": "A", "selected": true, "url": "/api/view?filename=rgthree.compare._temp_oopvn_00017_.png&type=temp&subfolder=&rand=0.11279329372927038" }, { "name": "B", "selected": true, "url": "/api/view?filename=rgthree.compare._temp_oopvn_00018_.png&type=temp&subfolder=&rand=0.26349046016050526" } ] ], "widgets_values_named": { "rgthree_comparer": { "images": [ { "name": "A", "selected": true, "url": "/api/view?filename=rgthree.compare._temp_oopvn_00017_.png&type=temp&subfolder=&rand=0.11279329372927038", "img": {} }, { "name": "B", "selected": true, "url": "/api/view?filename=rgthree.compare._temp_oopvn_00018_.png&type=temp&subfolder=&rand=0.26349046016050526", "img": {} } ] } } }, { "id": 30, "type": "ModelAttentionBackend", "pos": [ -99.92766133646982, 2104.4029626984075 ], "size": [ 270, 58 ], "flags": {}, "order": 10, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 144 } ], "outputs": [ { "name": "model", "type": "MODEL", "links": [ 62 ] } ], "properties": { "Node name for S&R": "ModelAttentionBackend" }, "widgets_values": [ "comfy kitchen attention" ], "widgets_values_named": { "attention": "comfy kitchen attention" } }, { "id": 59, "type": "LoraLoaderModelOnly", "pos": [ -433.89536840373427, 2369.616614098735 ], "size": [ 270, 82 ], "flags": {}, "order": 8, "mode": 4, "inputs": [ { "name": "model", "type": "MODEL", "link": 143 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 144 ] } ], "properties": { "Node name for S&R": "LoraLoaderModelOnly" }, "widgets_values": [ "p_qwen_image_2.1_8step_v0.1.safetensors", 1 ], "widgets_values_named": { "lora_name": "p_qwen_image_2.1_8step_v0.1.safetensors", "strength_model": 1 } }, { "id": 60, "type": "KSampler", "pos": [ 445.0166150871661, 2352.079853487579 ], "size": [ 270, 262 ], "flags": {}, "order": 16, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 145 }, { "name": "positive", "type": "CONDITIONING", "link": 146 }, { "name": "negative", "type": "CONDITIONING", "link": 147 }, { "name": "latent_image", "type": "LATENT", "link": 148 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 150 ] } ], "properties": { "Node name for S&R": "KSampler" }, "widgets_values": [ 1080519108901108, "randomize", 40, 1, "euler", "simple", 1 ], "widgets_values_named": { "seed": 1080519108901108, "control_after_generate": "randomize", "steps": 40, "cfg": 1, "sampler_name": "euler", "scheduler": "simple", "denoise": 1 } }, { "id": 61, "type": "LoadImage", "pos": [ -422.2495603400328, 2884.866992845521 ], "size": [ 282.798828125, 314.00000000000045 ], "flags": {}, "order": 3, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 188, 203 ] }, { "name": "MASK", "type": "MASK", "links": [ 200 ] } ], "title": "Foreground", "properties": { "Node name for S&R": "LoadImage" }, "widgets_values": [ "pexels-notsoaakash-28999324 (1).jpg", "image" ], "widgets_values_named": { "image": "pexels-notsoaakash-28999324 (1).jpg", "upload": "image" } }, { "id": 62, "type": "LoadImage", "pos": [ 261.65874821851963, 2871.3344451222306 ], "size": [ 282.798828125, 314 ], "flags": {}, "order": 4, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 163 ] }, { "name": "MASK", "type": "MASK", "links": null } ], "title": "background", "properties": { "Node name for S&R": "LoadImage" }, "widgets_values": [ "pexels-azxa661-14986957.jpg", "image" ], "widgets_values_named": { "image": "pexels-azxa661-14986957.jpg", "upload": "image" } }, { "id": 69, "type": "PreviewImage", "pos": [ 944.4630052352882, 2859.484570091102 ], "size": [ 474.9007607101371, 395.3347520177249 ], "flags": {}, "order": 15, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 183 } ], "outputs": [ { "name": "images", "type": "IMAGE", "links": null } ], "properties": { "Node name for S&R": "PreviewImage" }, "widgets_values": [], "widgets_values_named": {} }, { "id": 71, "type": "AILab_ImageCombiner", "pos": [ 602.5344645094251, 3043.2674290348646 ], "size": [ 300, 194 ], "flags": {}, "order": 11, "mode": 0, "inputs": [ { "name": "foreground", "type": "IMAGE", "link": 204 }, { "name": "background", "type": "IMAGE", "link": 163 }, { "name": "foreground_mask", "shape": 7, "type": "MASK", "link": null } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 166 ] }, { "name": "WIDTH", "type": "INT", "links": null }, { "name": "HEIGHT", "type": "INT", "links": null } ], "properties": { "Node name for S&R": "AILab_ImageCombiner" }, "widgets_values": [ "normal", 1, 0.75, 25, 49 ], "widgets_values_named": { "mode": "normal", "foreground_opacity": 1, "foreground_scale": 0.75, "position_x": 25, "position_y": 49 }, "color": "#2e3e57", "bgcolor": "#4b5b73" }, { "id": 72, "type": "ImageScaleToTotalPixels", "pos": [ 612.0134314911552, 2887.5841413784765 ], "size": [ 276.4927734375, 106 ], "flags": {}, "order": 13, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 166 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 167, 183, 187 ] } ], "properties": { "Node name for S&R": "ImageScaleToTotalPixels" }, "widgets_values": [ "bicubic", 1, 32 ], "widgets_values_named": { "upscale_method": "bicubic", "megapixels": 1, "resolution_steps": 32 } }, { "id": 76, "type": "784e2c82-360b-4c75-83d4-2daefaa8f942", "pos": [ -110.13578837589863, 3019.2904499976826 ], "size": [ 313.56895411284813, 310.86990125549573 ], "flags": {}, "order": 6, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 188 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 192 ] } ], "properties": { "previewExposures": [] }, "widgets_values": [ "the red tram" ], "widgets_values_named": { "text": "the red tram" } }, { "id": 77, "type": "ComfySwitchNode", "pos": [ -105.75993448164677, 2889.3581620286263 ], "size": [ 270, 78 ], "flags": {}, "order": 9, "mode": 0, "inputs": [ { "name": "on_false", "shape": 7, "type": "IMAGE", "link": 201 }, { "name": "on_true", "shape": 7, "type": "IMAGE", "link": 192 } ], "outputs": [ { "name": "output", "type": "IMAGE", "links": [ 204 ] } ], "title": "Use SAM", "properties": { "Node name for S&R": "ComfySwitchNode" }, "widgets_values": [ true ], "widgets_values_named": { "switch": true } }, { "id": 80, "type": "JoinImageWithAlpha", "pos": [ -327.73309314747996, 3241.617906510185 ], "size": [ 185.8609375, 46 ], "flags": {}, "order": 7, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 203 }, { "name": "alpha", "type": "MASK", "link": 200 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 201 ] } ], "properties": { "Node name for S&R": "JoinImageWithAlpha" } } ], "links": [ [ 1, 1, 0, 3, 0, "MODEL" ], [ 10, 6, 0, 9, 1, "VAE" ], [ 59, 12, 0, 20, 0, "IMAGE" ], [ 62, 30, 0, 4, 0, "MODEL" ], [ 143, 3, 0, 59, 0, "MODEL" ], [ 144, 59, 0, 30, 0, "MODEL" ], [ 145, 4, 0, 60, 0, "MODEL" ], [ 146, 5, 0, 60, 1, "CONDITIONING" ], [ 147, 5, 1, 60, 2, "CONDITIONING" ], [ 148, 5, 2, 60, 3, "LATENT" ], [ 150, 60, 0, 9, 0, "LATENT" ], [ 163, 62, 0, 71, 1, "IMAGE" ], [ 166, 71, 0, 72, 0, "IMAGE" ], [ 183, 72, 0, 69, 0, "IMAGE" ], [ 187, 72, 0, 20, 1, "IMAGE" ], [ 188, 61, 0, 76, 0, "IMAGE" ], [ 3, 2, 0, 5, 0, "CLIP" ], [ 167, 72, 0, 5, 1, "IMAGE" ], [ 13, 9, 0, 12, 0, "IMAGE" ], [ 4, 6, 0, 5, 4, "VAE" ], [ 192, 76, 0, 77, 1, "IMAGE" ], [ 200, 61, 1, 80, 1, "MASK" ], [ 201, 80, 0, 77, 0, "IMAGE" ], [ 203, 61, 0, 80, 0, "IMAGE" ], [ 204, 77, 0, 71, 0, "IMAGE" ] ], "groups": [ { "id": 5, "title": "Load Models", "bounding": [ -443.89536840373427, 2037.266260400721, 290, 686.7007073960312 ], "color": "#3f789e", "flags": {} }, { "id": 6, "title": "Foreground", "bounding": [ -432.24956034003276, 2802.4910522460978, 655.2563711246098, 542.8958284956084 ], "color": "#3f789e", "flags": {} }, { "id": 7, "title": "Combine With Background", "bounding": [ 251.6587482185197, 2801.3344451222306, 660.875716290905, 445.932983912634 ], "color": "#3f789e", "flags": {} } ], "definitions": { "subgraphs": [ { "id": "784e2c82-360b-4c75-83d4-2daefaa8f942", "version": 1, "state": { "lastGroupId": 7, "lastNodeId": 80, "lastLinkId": 204, "lastRerouteId": 0 }, "revision": 0, "config": {}, "name": "Extract Foreground", "inputNode": { "id": -10, "bounding": [ -689.7223771203217, 3207.0162930227084, 128, 88 ] }, "outputNode": { "id": -20, "bounding": [ 181.97952809327302, 3207.0162930227084, 128, 68 ] }, "inputs": [ { "id": "45745443-2e82-4b54-98cf-ee53560ae12f", "name": "image", "type": "IMAGE", "linkIds": [ 181, 182 ], "localized_name": "image", "pos": [ -585.7223771203217, 3231.0162930227084 ] }, { "id": "11a062a4-c735-48f1-9705-14a395a4d19c", "name": "text", "type": "STRING", "linkIds": [ 190 ], "pos": [ -585.7223771203217, 3251.0162930227084 ] } ], "outputs": [ { "id": "0ae0df6a-0d2c-41cb-9b55-a2c4337fe346", "name": "IMAGE", "type": "IMAGE", "linkIds": [ 162 ], "localized_name": "IMAGE", "pos": [ 205.97952809327302, 3231.0162930227084 ] } ], "widgets": [], "nodes": [ { "id": 63, "type": "SAM3_Detect", "pos": [ -148.02047190672695, 2888.1499901491125 ], "size": [ 270, 206 ], "flags": {}, "order": 1, "mode": 0, "inputs": [ { "localized_name": "model", "name": "model", "type": "MODEL", "link": 151 }, { "localized_name": "image", "name": "image", "type": "IMAGE", "link": 181 }, { "localized_name": "conditioning", "name": "conditioning", "shape": 7, "type": "CONDITIONING", "link": 153 }, { "localized_name": "bboxes", "name": "bboxes", "shape": 7, "type": "BOUNDING_BOX", "link": null }, { "localized_name": "positive_coords", "name": "positive_coords", "shape": 7, "type": "STRING", "link": null }, { "localized_name": "negative_coords", "name": "negative_coords", "shape": 7, "type": "STRING", "link": null } ], "outputs": [ { "localized_name": "masks", "name": "masks", "type": "MASK", "links": [ 160 ] }, { "localized_name": "bboxes", "name": "bboxes", "type": "BOUNDING_BOX", "links": null } ], "properties": { "Node name for S&R": "SAM3_Detect" }, "widgets_values": [ 0.5, 2, false ], "widgets_values_named": { "threshold": 0.5, "refine_iterations": 2, "individual_masks": false } }, { "id": 70, "type": "InvertMask", "pos": [ -18.46784915904038, 3147.7547274508947 ], "size": [ 140, 26 ], "flags": {}, "order": 4, "mode": 0, "inputs": [ { "localized_name": "mask", "name": "mask", "type": "MASK", "link": 160 } ], "outputs": [ { "localized_name": "MASK", "name": "MASK", "type": "MASK", "links": [ 161 ] } ], "properties": { "Node name for S&R": "InvertMask" } }, { "id": 68, "type": "JoinImageWithAlpha", "pos": [ -64.94912723422277, 3216.7302384383884 ], "size": [ 185.8609375, 46 ], "flags": {}, "order": 3, "mode": 0, "inputs": [ { "localized_name": "image", "name": "image", "type": "IMAGE", "link": 182 }, { "localized_name": "alpha", "name": "alpha", "type": "MASK", "link": 161 } ], "outputs": [ { "localized_name": "IMAGE", "name": "IMAGE", "type": "IMAGE", "links": [ 162 ] } ], "properties": { "Node name for S&R": "JoinImageWithAlpha" } }, { "id": 64, "type": "CheckpointLoaderSimple", "pos": [ -501.7223771203216, 3277.113145701931 ], "size": [ 270, 98 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "localized_name": "MODEL", "name": "MODEL", "type": "MODEL", "links": [ 151 ] }, { "localized_name": "CLIP", "name": "CLIP", "type": "CLIP", "links": [ 152 ] }, { "localized_name": "VAE", "name": "VAE", "type": "VAE", "links": null } ], "properties": { "Node name for S&R": "CheckpointLoaderSimple" }, "widgets_values": [ "sam3.1_multiplex_fp16.safetensors" ], "widgets_values_named": { "ckpt_name": "sam3.1_multiplex_fp16.safetensors" } }, { "id": 65, "type": "CLIPTextEncode", "pos": [ -499.9869297832264, 3423.8825958963043 ], "size": [ 400, 200 ], "flags": {}, "order": 2, "mode": 0, "inputs": [ { "localized_name": "clip", "name": "clip", "type": "CLIP", "link": 152 }, { "localized_name": "text", "name": "text", "type": "STRING", "widget": { "name": "text" }, "link": 190 } ], "outputs": [ { "localized_name": "CONDITIONING", "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 153 ] } ], "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "the white car" ], "widgets_values_named": { "text": "the white car" } } ], "groups": [], "links": [ { "id": 151, "origin_id": 64, "origin_slot": 0, "target_id": 63, "target_slot": 0, "type": "MODEL" }, { "id": 153, "origin_id": 65, "origin_slot": 0, "target_id": 63, "target_slot": 2, "type": "CONDITIONING" }, { "id": 160, "origin_id": 63, "origin_slot": 0, "target_id": 70, "target_slot": 0, "type": "MASK" }, { "id": 161, "origin_id": 70, "origin_slot": 0, "target_id": 68, "target_slot": 1, "type": "MASK" }, { "id": 152, "origin_id": 64, "origin_slot": 1, "target_id": 65, "target_slot": 0, "type": "CLIP" }, { "id": 181, "origin_id": -10, "origin_slot": 0, "target_id": 63, "target_slot": 1, "type": "IMAGE" }, { "id": 182, "origin_id": -10, "origin_slot": 0, "target_id": 68, "target_slot": 0, "type": "IMAGE" }, { "id": 162, "origin_id": 68, "origin_slot": 0, "target_id": -20, "target_slot": 0, "type": "IMAGE" }, { "id": 190, "origin_id": -10, "origin_slot": 1, "target_id": 65, "target_slot": 1, "type": "STRING" } ], "extra": {} } ] }, "config": {}, "extra": { "ds": { "scale": 1.0152559799477252, "offset": [ 0.23214933107937274, -2283.9604159426663 ] }, "frontendVersion": "1.55.14", "VHS_latentpreview": false, "VHS_latentpreviewrate": 0, "VHS_MetadataImage": true, "VHS_KeepIntermediate": true }, "version": 0.4 }