{ "last_node_id": 21, "last_link_id": 27, "nodes": [ { "id": 6, "type": "EmptyLatentImage", "pos": [ 40, 250 ], "size": { "0": 320, "1": 110 }, "flags": {}, "order": 5, "mode": 0, "inputs": [ { "name": "batch_size", "type": "INT", "link": 17, "widget": { "name": "batch_size" } } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 15 ], "shape": 3 } ], "properties": { "Node name for S&R": "EmptyLatentImage" }, "widgets_values": [ 896, 896, 1 ] }, { "id": 7, "type": "VAEDecode", "pos": [ 410, 510 ], "size": { "0": 210, "1": 46 }, "flags": {}, "order": 8, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 16 }, { "name": "vae", "type": "VAE", "link": 12 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 10 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "VAEDecode" } }, { "id": 17, "type": "CR Integer To String", "pos": [ 960, 80 ], "size": { "0": 315, "1": 78 }, "flags": { "collapsed": true }, "order": 6, "mode": 0, "inputs": [ { "name": "int_", "type": "INT", "link": 20, "widget": { "name": "int_" } } ], "outputs": [ { "name": "STRING", "type": "STRING", "links": [ 21 ], "shape": 3 }, { "name": "show_help", "type": "STRING", "links": null, "shape": 3 } ], "properties": { "Node name for S&R": "CR Integer To String" }, "widgets_values": [ 0 ] }, { "id": 18, "type": "CR Text Concatenate", "pos": [ 1180, 80 ], "size": { "0": 315, "1": 126 }, "flags": { "collapsed": true }, "order": 10, "mode": 0, "inputs": [ { "name": "text1", "type": "STRING", "link": 21, "widget": { "name": "text1" }, "slot_index": 0 }, { "name": "text2", "type": "STRING", "link": 22, "widget": { "name": "text2" } } ], "outputs": [ { "name": "STRING", "type": "*", "links": [ 23 ], "shape": 3, "slot_index": 0 }, { "name": "show_help", "type": "STRING", "links": null, "shape": 3 } ], "properties": { "Node name for S&R": "CR Text Concatenate" }, "widgets_values": [ "", "", "," ] }, { "id": 1, "type": "CheckpointLoaderSimple", "pos": [ 34.446806286664184, 99.76884437576652 ], "size": { "0": 315, "1": 98 }, "flags": {}, "order": 0, "mode": 0, "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 27 ], "shape": 3, "slot_index": 0 }, { "name": "CLIP", "type": "CLIP", "links": [ 1, 2 ], "shape": 3, "slot_index": 1 }, { "name": "VAE", "type": "VAE", "links": [ 12 ], "shape": 3, "slot_index": 2 } ], "properties": { "Node name for S&R": "CheckpointLoaderSimple" }, "widgets_values": [ "sdxl\\juggernautXL_v9Rdphoto2Lightning.safetensors" ] }, { "id": 9, "type": "KSamplerTimer", "pos": [ 410, 210 ], "size": { "0": 440, "1": 470 }, "flags": {}, "order": 7, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 27 }, { "name": "positive", "type": "CONDITIONING", "link": 13, "slot_index": 1 }, { "name": "negative", "type": "CONDITIONING", "link": 14, "slot_index": 2 }, { "name": "latent_image", "type": "LATENT", "link": 15, "slot_index": 3 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 16 ], "shape": 3, "slot_index": 0 }, { "name": "GENERATION_TIME_STRING", "type": "STRING", "links": [ 19, 22 ], "shape": 3, "slot_index": 1 }, { "name": "GENERATION_TIME", "type": "FLOAT", "links": [ 24, 25 ], "shape": 3, "slot_index": 2 } ], "properties": { "Node name for S&R": "KSamplerTimer" }, "widgets_values": [ 660679848583862, "randomize", 4, 1.8, "dpmpp_sde_gpu", "karras", 1 ] }, { "id": 2, "type": "CLIPTextEncode", "pos": [ 40, 400 ], "size": { "0": 310, "1": 76 }, "flags": { "collapsed": false }, "order": 3, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 1 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 13 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "a timer" ] }, { "id": 3, "type": "CLIPTextEncode", "pos": [ 40, 520 ], "size": { "0": 410, "1": 320 }, "flags": { "collapsed": true }, "order": 4, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 2 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 14 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "" ] }, { "id": 10, "type": "INTConstant", "pos": [ 420, 100 ], "size": { "0": 210, "1": 58 }, "flags": {}, "order": 1, "mode": 0, "outputs": [ { "name": "value", "type": "INT", "links": [ 17, 20, 26 ], "shape": 3, "slot_index": 0 } ], "title": "Batch Size", "properties": { "Node name for S&R": "INTConstant" }, "widgets_values": [ 1 ], "color": "#1b4669", "bgcolor": "#29699c" }, { "id": 15, "type": "ShowText|pysssss", "pos": [ 1800, 80 ], "size": { "0": 310, "1": 200 }, "flags": {}, "order": 15, "mode": 0, "inputs": [ { "name": "text", "type": "STRING", "link": 18, "widget": { "name": "text" } } ], "outputs": [ { "name": "STRING", "type": "STRING", "links": null, "shape": 6 } ], "properties": { "Node name for S&R": "ShowText|pysssss" }, "widgets_values": [ "", "5,127.10\n2,56.59\n2,57.43\n2,57.67\n2,57.92\n2,57.59\n1,29.81\n1,29.77\n1,29.72\n1,29.57\n1,29.80" ] }, { "id": 8, "type": "SaveImage", "pos": [ 410, 490 ], "size": { "0": 440, "1": 450 }, "flags": {}, "order": 13, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 10 } ], "properties": {}, "widgets_values": [ "timer" ] }, { "id": 14, "type": "SaveText|pysssss", "pos": [ 1390, 80 ], "size": { "0": 400, "1": 200 }, "flags": {}, "order": 14, "mode": 0, "inputs": [ { "name": "text", "type": "STRING", "link": 23, "widget": { "name": "text" } } ], "outputs": [ { "name": "STRING", "type": "STRING", "links": [ 18 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "SaveText|pysssss" }, "widgets_values": [ "output", "timer.csv", "append", true, "" ] }, { "id": 16, "type": "ShowText|pysssss", "pos": [ 950, 350 ], "size": { "0": 320, "1": 80 }, "flags": {}, "order": 9, "mode": 0, "inputs": [ { "name": "text", "type": "STRING", "link": 19, "widget": { "name": "text" } } ], "outputs": [ { "name": "STRING", "type": "STRING", "links": null, "shape": 6 } ], "title": "Time in seconds (string)", "properties": { "Node name for S&R": "ShowText|pysssss" }, "widgets_values": [ "", "29.80" ] }, { "id": 19, "type": "MathExpression|pysssss", "pos": [ 950, 500 ], "size": { "0": 400, "1": 200 }, "flags": {}, "order": 11, "mode": 0, "inputs": [ { "name": "a", "type": "INT,FLOAT,IMAGE,LATENT", "link": 24 }, { "name": "b", "type": "INT,FLOAT,IMAGE,LATENT", "link": null }, { "name": "c", "type": "INT,FLOAT,IMAGE,LATENT", "link": null } ], "outputs": [ { "name": "INT", "type": "INT", "links": null, "shape": 3 }, { "name": "FLOAT", "type": "FLOAT", "links": null, "shape": 3 } ], "title": "Total Gen Time (s)", "properties": { "Node name for S&R": "MathExpression|pysssss" }, "widgets_values": [ "a" ] }, { "id": 20, "type": "MathExpression|pysssss", "pos": [ 950, 750 ], "size": { "0": 400, "1": 200 }, "flags": {}, "order": 12, "mode": 0, "inputs": [ { "name": "a", "type": "INT,FLOAT,IMAGE,LATENT", "link": 25 }, { "name": "b", "type": "INT,FLOAT,IMAGE,LATENT", "link": 26 }, { "name": "c", "type": "INT,FLOAT,IMAGE,LATENT", "link": null } ], "outputs": [ { "name": "INT", "type": "INT", "links": null, "shape": 3 }, { "name": "FLOAT", "type": "FLOAT", "links": null, "shape": 3 } ], "title": "Avg Gen Time (s)", "properties": { "Node name for S&R": "MathExpression|pysssss" }, "widgets_values": [ "a/b" ] }, { "id": 21, "type": "Note", "pos": [ -20, -120 ], "size": { "0": 580, "1": 110 }, "flags": {}, "order": 2, "mode": 0, "properties": { "text": "" }, "widgets_values": [ "Repository:\nhttps://gitlab.com/lanterieur/comfyui_ksamplertimer\nProfile:\nhttps://civitai.com/user/IndustrialVectors" ], "color": "#432", "bgcolor": "#653" } ], "links": [ [ 1, 1, 1, 2, 0, "CLIP" ], [ 2, 1, 1, 3, 0, "CLIP" ], [ 10, 7, 0, 8, 0, "IMAGE" ], [ 12, 1, 2, 7, 1, "VAE" ], [ 13, 2, 0, 9, 1, "CONDITIONING" ], [ 14, 3, 0, 9, 2, "CONDITIONING" ], [ 15, 6, 0, 9, 3, "LATENT" ], [ 16, 9, 0, 7, 0, "LATENT" ], [ 17, 10, 0, 6, 0, "INT" ], [ 18, 14, 0, 15, 0, "STRING" ], [ 19, 9, 1, 16, 0, "STRING" ], [ 20, 10, 0, 17, 0, "INT" ], [ 21, 17, 0, 18, 0, "STRING" ], [ 22, 9, 1, 18, 1, "STRING" ], [ 23, 18, 0, 14, 0, "STRING" ], [ 24, 9, 2, 19, 0, "INT,FLOAT,IMAGE,LATENT" ], [ 25, 9, 2, 20, 0, "INT,FLOAT,IMAGE,LATENT" ], [ 26, 10, 0, 20, 1, "INT,FLOAT,IMAGE,LATENT" ], [ 27, 1, 0, 9, 0, "MODEL" ] ], "groups": [ { "title": "Save batch size and times to file", "bounding": [ 950, 6, 1170, 284 ], "color": "#3f789e", "font_size": 24, "locked": false }, { "title": "KSampler (timer)", "bounding": [ -16, -874, 1821, 336 ], "color": "#b58b2a", "font_size": 240, "locked": false }, { "title": "by @IndustrialVectors", "bounding": [ -16, -522, 140, 169 ], "color": "#3f789e", "font_size": 120, "locked": false }, { "title": "Time outputs", "bounding": [ -16, -334, 709, 168 ], "color": "#3f789e", "font_size": 120, "locked": false } ], "config": {}, "extra": {}, "version": 0.4 }