{ "id": "multi-sample-qwen-edit", "revision": 0, "last_node_id": 142, "last_link_id": 295, "nodes": [ { "id": 37, "type": "UNETLoader", "pos": [ 3.8020541667938232, 20.189966201782227 ], "size": [ 330, 90 ], "flags": {}, "order": 1, "mode": 0, "inputs": [], "outputs": [ { "name": "MODEL", "type": "MODEL", "slot_index": 0, "links": [ 276 ] } ], "properties": { "Node name for S&R": "UNETLoader" }, "widgets_values": [ "qwen_image_edit_fp8_e4m3fn.safetensors", "fp8_e4m3fn" ] }, { "id": 39, "type": "VAELoader", "pos": [ -19.958463668823242, 314.6122131347656 ], "size": [ 330, 60 ], "flags": {}, "order": 7, "mode": 0, "inputs": [], "outputs": [ { "name": "VAE", "type": "VAE", "slot_index": 0, "links": [ 223, 244, 265, 286 ] } ], "properties": { "Node name for S&R": "VAELoader" }, "widgets_values": [ "qwen_image_vae.safetensors" ] }, { "id": 66, "type": "ModelSamplingAuraFlow", "pos": [ 859.3681030273438, -144.76174926757812 ], "size": [ 300, 58 ], "flags": {}, "order": 24, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 204 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 154 ] } ], "properties": { "Node name for S&R": "ModelSamplingAuraFlow" }, "widgets_values": [ 3.5 ] }, { "id": 73, "type": "LoraLoaderModelOnly", "pos": [ 394.9740905761719, 46.89153289794922 ], "size": [ 270, 82 ], "flags": {}, "order": 11, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 276 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 170 ] } ], "properties": { "Node name for S&R": "LoraLoaderModelOnly" }, "widgets_values": [ "Qwen-Image-Lightning-4steps-V1.0.safetensors", 1 ] }, { "id": 80, "type": "ConditioningZeroOut", "pos": [ 599.8950805664062, 577.550537109375 ], "size": [ 197.712890625, 26 ], "flags": {}, "order": 16, "mode": 0, "inputs": [ { "name": "conditioning", "type": "CONDITIONING", "link": 248 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 271 ] } ], "properties": { "Node name for S&R": "ConditioningZeroOut" }, "widgets_values": [], "color": "#322", "bgcolor": "#533" }, { "id": 81, "type": "CFGNorm", "pos": [ 867.0922241210938, 15.220279693603516 ], "size": [ 270, 58 ], "flags": {}, "order": 25, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 154 } ], "outputs": [ { "name": "patched_model", "type": "MODEL", "links": [ 269 ] } ], "properties": { "Node name for S&R": "CFGNorm" }, "widgets_values": [ 1 ] }, { "id": 86, "type": "PathchSageAttentionKJ", "pos": [ 608.7059936523438, -390.08392333984375 ], "size": [ 270, 58 ], "flags": { "collapsed": false }, "order": 22, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 162 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 169 ] } ], "title": "sage", "properties": { "Node name for S&R": "PathchSageAttentionKJ" }, "widgets_values": [ "auto" ], "color": "#332922", "bgcolor": "#593930", "shape": 1 }, { "id": 87, "type": "CFGZeroStar", "pos": [ 1074.1048583984375, -349.59375 ], "size": [ 159.744140625, 26 ], "flags": { "collapsed": false }, "order": 23, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 169 } ], "outputs": [ { "name": "patched_model", "type": "MODEL", "links": [ 204 ] } ], "properties": { "Node name for S&R": "CFGZeroStar" }, "widgets_values": [], "color": "#332922", "bgcolor": "#593930", "shape": 1 }, { "id": 88, "type": "TorchCompileModelQwenImage", "pos": [ 138.7346649169922, -564.0555419921875 ], "size": [ 282.74609375, 178 ], "flags": { "collapsed": false }, "order": 15, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 170 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 162 ] } ], "properties": { "Node name for S&R": "TorchCompileModelQwenImage" }, "widgets_values": [ "inductor", false, "default", false, true, 128 ] }, { "id": 116, "type": "VAEDecode", "pos": [ 1292.6866455078125, 532.370849609375 ], "size": [ 210, 46 ], "flags": { "collapsed": false }, "order": 27, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 274 }, { "name": "vae", "type": "VAE", "link": 223 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 275 ] } ], "properties": { "Node name for S&R": "VAEDecode" }, "widgets_values": [] }, { "id": 120, "type": "QwenVLCLIPLoader", "pos": [ 35.810157775878906, 163.19113159179688 ], "size": [ 270, 60 ], "flags": {}, "order": 2, "mode": 0, "inputs": [], "outputs": [ { "name": "clip", "type": "CLIP", "links": [ 255, 262 ] } ], "title": "Qwen2.5-VL CLIP Loader", "properties": { "Node name for S&R": "QwenVLCLIPLoader" }, "widgets_values": [ "qwen_2.5_vl_7b.safetensors" ] }, { "id": 122, "type": "Seed (rgthree)", "pos": [ -105.26921844482422, -192.7537384033203 ], "size": [ 315, 130 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "dir": 4, "name": "SEED", "shape": 3, "type": "INT", "links": [ 273 ] } ], "properties": {}, "widgets_values": [ 512754629429031, "", "", "" ] }, { "id": 124, "type": "TextEncodeQwenImageEdit", "pos": [ 401.6606140136719, 570.7852783203125 ], "size": [ 400, 200 ], "flags": {}, "order": 12, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 255 }, { "name": "vae", "shape": 7, "type": "VAE", "link": 244 }, { "name": "image", "shape": 7, "type": "IMAGE", "link": null } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 248 ] } ], "properties": { "Node name for S&R": "TextEncodeQwenImageEdit" }, "widgets_values": [ "" ] }, { "id": 129, "type": "QwenVLTextEncoder", "pos": [ 417.46136474609375, 273.53350830078125 ], "size": [ 400, 200 ], "flags": {}, "order": 13, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 262 }, { "name": "edit_image", "shape": 7, "type": "IMAGE", "link": 284 }, { "name": "vae", "shape": 7, "type": "VAE", "link": 265 } ], "outputs": [ { "name": "conditioning", "type": "CONDITIONING", "links": [ 270 ] } ], "properties": { "Node name for S&R": "QwenVLTextEncoder" }, "widgets_values": [ "Replace all the people on the roller coaster with cats, maintaining the same poses and positions. Keep the roller coaster and background unchanged.", "image_edit", false ] }, { "id": 130, "type": "LoadImage", "pos": [ -436.3197021484375, 364.31353759765625 ], "size": [ 702.244140625, 491.77734375 ], "flags": {}, "order": 10, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 285 ] }, { "name": "MASK", "type": "MASK", "links": null } ], "properties": { "Node name for S&R": "LoadImage" }, "widgets_values": [ "guests-on-superman--scaled.jpg", "image" ] }, { "id": 132, "type": "SaveImage", "pos": [ 1534.3883056640625, 155.74610900878906 ], "size": [ 615.53125, 667.6171875 ], "flags": {}, "order": 28, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 275 } ], "outputs": [], "properties": { "Node name for S&R": "SaveImage" }, "widgets_values": [ "qwen_multi_sample" ] }, { "id": 134, "type": "QwenOptimalResolution", "pos": [ 496.1298828125, 865.144775390625 ], "size": [ 270, 166 ], "flags": {}, "order": 14, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 285 } ], "outputs": [ { "name": "image", "type": "IMAGE", "links": [ 284 ] }, { "name": "width", "type": "INT", "links": [ 288, 291 ] }, { "name": "height", "type": "INT", "links": [ 289, 292 ] }, { "name": "resolution_info", "type": "STRING", "links": [ 290 ] } ], "properties": { "Node name for S&R": "QwenOptimalResolution" }, "widgets_values": [ "fit", 1048576, "" ] }, { "id": 135, "type": "VAEEncode", "pos": [ 868.1650390625, 954.160400390625 ], "size": [ 140, 46 ], "flags": {}, "order": 17, "mode": 0, "inputs": [ { "name": "pixels", "type": "IMAGE", "link": 284 }, { "name": "vae", "type": "VAE", "link": 286 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 293 ] } ], "properties": { "Node name for S&R": "VAEEncode" }, "widgets_values": [] }, { "id": 140, "type": "RepeatLatentBatch", "pos": [ 1058.1650390625, 1054.160400390625 ], "size": [ 270, 58 ], "flags": {}, "order": 18, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 293 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 287 ] } ], "properties": { "Node name for S&R": "RepeatLatentBatch" }, "widgets_values": [ 4 ] }, { "id": 141, "type": "KSamplerAdvanced", "pos": [ 915.61279296875, 171.95233154296875 ], "size": [ 315, 534 ], "flags": {}, "order": 26, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 269 }, { "name": "positive", "type": "CONDITIONING", "link": 270 }, { "name": "negative", "type": "CONDITIONING", "link": 271 }, { "name": "latent_image", "type": "LATENT", "link": 287 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 274 ] } ], "properties": { "Node name for S&R": "KSamplerAdvanced" }, "widgets_values": [ "enable", 12345, "increment", 4, 2.5, "euler", "normal", 0, 10000, "disable" ] }, { "id": 142, "type": "Note", "pos": [ 1058.1650390625, 1144.160400390625 ], "size": [ 270, 140 ], "flags": {}, "order": 19, "mode": 0, "inputs": [], "outputs": [], "title": "Multi-Sample Settings", "properties": {}, "widgets_values": [ "RepeatLatentBatch:\n- Set amount to number of variations\n- Currently set to 4 samples\n\nKSamplerAdvanced:\n- Seed mode: 'increment'\n- Each sample gets different seed\n- Creates unique variations" ], "color": "#432", "bgcolor": "#653" } ], "links": [ [ 154, 66, 0, 81, 0, "MODEL" ], [ 162, 88, 0, 86, 0, "MODEL" ], [ 169, 86, 0, 87, 0, "MODEL" ], [ 170, 73, 0, 88, 0, "MODEL" ], [ 204, 87, 0, 66, 0, "MODEL" ], [ 223, 39, 0, 116, 1, "VAE" ], [ 244, 39, 0, 124, 1, "VAE" ], [ 248, 124, 0, 80, 0, "CONDITIONING" ], [ 255, 120, 0, 124, 0, "CLIP" ], [ 262, 120, 0, 129, 0, "CLIP" ], [ 265, 39, 0, 129, 2, "VAE" ], [ 269, 81, 0, 141, 0, "MODEL" ], [ 270, 129, 0, 141, 1, "CONDITIONING" ], [ 271, 80, 0, 141, 2, "CONDITIONING" ], [ 273, 122, 0, 141, 4, "INT" ], [ 274, 141, 0, 116, 0, "LATENT" ], [ 275, 116, 0, 132, 0, "IMAGE" ], [ 276, 37, 0, 73, 0, "MODEL" ], [ 284, 134, 0, 135, 0, "IMAGE" ], [ 284, 134, 0, 129, 1, "IMAGE" ], [ 285, 130, 0, 134, 0, "IMAGE" ], [ 286, 39, 0, 135, 1, "VAE" ], [ 287, 140, 0, 141, 3, "LATENT" ], [ 293, 135, 0, 140, 0, "LATENT" ] ], "groups": [ { "id": 1, "title": "Step 1 - Load models", "bounding": [ 10, -20, 350, 433.6000061035156 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 2, "title": "Step 2 - Multi-Sample Generation", "bounding": [ 850, 900, 500, 400 ], "color": "#8A3F5F", "font_size": 24, "flags": {} }, { "id": 3, "title": "Step 3 - Prompt & Conditioning", "bounding": [ 380, 160, 450, 470 ], "color": "#3f789e", "font_size": 24, "flags": {} } ], "config": {}, "extra": { "ds": { "scale": 1, "offset": [ 365.4013830217651, 170.22238850375265 ] } }, "version": 0.4 }