From de3e3d808fe99dc339ce489188d13568238dd54d Mon Sep 17 00:00:00 2001 From: LA <71209534+my-opencode@users.noreply.github.com> Date: Fri, 12 Apr 2024 12:49:33 +0800 Subject: [PATCH] sample workflows --- workflows/generation-time-overlay.json | 1145 ++++++++++++++++++++++++ workflows/time-outputs.json | 942 +++++++++++++++++++ 2 files changed, 2087 insertions(+) create mode 100644 workflows/generation-time-overlay.json create mode 100644 workflows/time-outputs.json diff --git a/workflows/generation-time-overlay.json b/workflows/generation-time-overlay.json new file mode 100644 index 0000000..f0c73e2 --- /dev/null +++ b/workflows/generation-time-overlay.json @@ -0,0 +1,1145 @@ +{ + "last_node_id": 32, + "last_link_id": 43, + "nodes": [ + { + "id": 1, + "type": "CheckpointLoaderSimple", + "pos": [ + 0, + 180 + ], + "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": 2, + "type": "CLIPTextEncode", + "pos": [ + 350, + 250 + ], + "size": [ + 310, + 75.99998474121094 + ], + "flags": { + "collapsed": false + }, + "order": 4, + "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": [ + 350, + 370 + ], + "size": { + "0": 410, + "1": 320 + }, + "flags": { + "collapsed": true + }, + "order": 5, + "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": 9, + "type": "KSamplerTimer", + "pos": [ + 690, + 180 + ], + "size": [ + 440, + 470 + ], + "flags": {}, + "order": 8, + "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": [ + 35 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "GENERATION_TIME", + "type": "FLOAT", + "links": [ + 25 + ], + "shape": 3, + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "KSamplerTimer" + }, + "widgets_values": [ + 794074181015360, + "randomize", + 4, + 1.8, + "dpmpp_sde_gpu", + "karras", + 1 + ] + }, + { + "id": 7, + "type": "VAEDecode", + "pos": [ + 1180, + 180 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 16 + }, + { + "name": "vae", + "type": "VAE", + "link": 12 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 29 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 30, + "type": "PreviewImage", + "pos": [ + 2660, + 450 + ], + "size": [ + 210, + 250 + ], + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 41 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 24, + "type": "CR Text Replace", + "pos": [ + 1670, + 840 + ], + "size": [ + 400, + 220 + ], + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 34, + "widget": { + "name": "text" + } + }, + { + "name": "replace1", + "type": "STRING", + "link": 37, + "widget": { + "name": "replace1" + } + }, + { + "name": "replace2", + "type": "STRING", + "link": 35, + "widget": { + "name": "replace2" + } + }, + { + "name": "replace3", + "type": "STRING", + "link": 43, + "widget": { + "name": "replace3" + } + } + ], + "outputs": [ + { + "name": "STRING", + "type": "*", + "links": [ + 39 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "show_help", + "type": "STRING", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "CR Text Replace" + }, + "widgets_values": [ + "", + "@size@", + "", + "@total@", + "", + "@avg@", + "" + ] + }, + { + "id": 20, + "type": "MathExpression|pysssss", + "pos": [ + 1200, + 690 + ], + "size": { + "0": 400, + "1": 200 + }, + "flags": {}, + "order": 10, + "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": [], + "shape": 3, + "slot_index": 0 + }, + { + "name": "FLOAT", + "type": "FLOAT", + "links": [ + 33 + ], + "shape": 3, + "slot_index": 1 + } + ], + "title": "Avg Gen Time (s)", + "properties": { + "Node name for S&R": "MathExpression|pysssss" + }, + "widgets_values": [ + "a/b" + ] + }, + { + "id": 27, + "type": "CR Text", + "pos": [ + 1200, + 440 + ], + "size": { + "0": 400, + "1": 200 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "text", + "type": "*", + "links": [ + 34 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "show_help", + "type": "STRING", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "CR Text" + }, + "widgets_values": [ + "Batch of @size@ generated in @total@s (avg.: @avg@s)" + ] + }, + { + "id": 6, + "type": "EmptyLatentImage", + "pos": [ + 350, + 420 + ], + "size": [ + 320, + 110 + ], + "flags": {}, + "order": 6, + "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": [ + 1024, + 1024, + 1 + ] + }, + { + "id": 21, + "type": "CR Image Grid Panel", + "pos": [ + 1440, + 180 + ], + "size": { + "0": 315, + "1": 198 + }, + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 29 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 30 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "show_help", + "type": "STRING", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "CR Image Grid Panel" + }, + "widgets_values": [ + 10, + "white", + 0, + "white", + 5, + "#000000" + ] + }, + { + "id": 22, + "type": "ImagePadForOutpaint", + "pos": [ + 1800, + 180 + ], + "size": { + "0": 315, + "1": 174 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 30 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 31 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "ImagePadForOutpaint" + }, + "widgets_values": [ + 0, + 80, + 0, + 0, + 0 + ] + }, + { + "id": 23, + "type": "CR Overlay Text", + "pos": [ + 2200, + 450 + ], + "size": [ + 400, + 380 + ], + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 31 + }, + { + "name": "text", + "type": "STRING", + "link": 39, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 41 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "show_help", + "type": "STRING", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "CR Overlay Text" + }, + "widgets_values": [ + "text", + "Roboto-Regular.ttf", + 48, + "custom", + "top", + "left", + 0, + 0, + 5, + 5, + 0, + "text center", + "#000000" + ] + }, + { + "id": 10, + "type": "INTConstant", + "pos": [ + 120, + 700 + ], + "size": [ + 200, + 58 + ], + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "value", + "type": "INT", + "links": [ + 17, + 26, + 36 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "Batch Size", + "properties": { + "Node name for S&R": "INTConstant" + }, + "widgets_values": [ + 2 + ], + "color": "#1b4669", + "bgcolor": "#29699c" + }, + { + "id": 26, + "type": "CR Float To String", + "pos": [ + 1230, + 920 + ], + "size": [ + 315, + 78 + ], + "flags": { + "collapsed": true + }, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "float_", + "type": "FLOAT", + "link": 33, + "widget": { + "name": "float_" + } + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 42 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "show_help", + "type": "STRING", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "CR Float To String" + }, + "widgets_values": [ + 0 + ] + }, + { + "id": 29, + "type": "CR Integer To String", + "pos": [ + 1220, + 1010 + ], + "size": [ + 315, + 78 + ], + "flags": { + "collapsed": true + }, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "int_", + "type": "INT", + "link": 36, + "widget": { + "name": "int_" + } + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 37 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "show_help", + "type": "STRING", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "CR Integer To String" + }, + "widgets_values": [ + 0 + ] + }, + { + "id": 32, + "type": "Text String Truncate", + "pos": [ + 1230, + 960 + ], + "size": [ + 315, + 262 + ], + "flags": { + "collapsed": true + }, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 42, + "widget": { + "name": "text" + } + }, + { + "name": "text_b", + "type": "STRING", + "link": null, + "widget": { + "name": "text_b" + } + }, + { + "name": "text_c", + "type": "STRING", + "link": null, + "widget": { + "name": "text_c" + } + }, + { + "name": "text_d", + "type": "STRING", + "link": null, + "widget": { + "name": "text_d" + } + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 43 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "STRING", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "STRING", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "STRING", + "type": "STRING", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Text String Truncate" + }, + "widgets_values": [ + "", + "characters", + "beginning", + 5, + "", + "", + "" + ] + }, + { + "id": 31, + "type": "Note", + "pos": [ + -10, + -110 + ], + "size": [ + 580, + 110 + ], + "flags": {}, + "order": 3, + "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" + ], + [ + 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" + ], + [ + 25, + 9, + 2, + 20, + 0, + "INT,FLOAT,IMAGE,LATENT" + ], + [ + 26, + 10, + 0, + 20, + 1, + "INT,FLOAT,IMAGE,LATENT" + ], + [ + 27, + 1, + 0, + 9, + 0, + "MODEL" + ], + [ + 29, + 7, + 0, + 21, + 0, + "IMAGE" + ], + [ + 30, + 21, + 0, + 22, + 0, + "IMAGE" + ], + [ + 31, + 22, + 0, + 23, + 0, + "IMAGE" + ], + [ + 33, + 20, + 1, + 26, + 0, + "FLOAT" + ], + [ + 34, + 27, + 0, + 24, + 0, + "STRING" + ], + [ + 35, + 9, + 1, + 24, + 2, + "STRING" + ], + [ + 36, + 10, + 0, + 29, + 0, + "INT" + ], + [ + 37, + 29, + 0, + 24, + 1, + "STRING" + ], + [ + 39, + 24, + 0, + 23, + 1, + "STRING" + ], + [ + 41, + 23, + 0, + 30, + 0, + "IMAGE" + ], + [ + 42, + 26, + 0, + 32, + 0, + "STRING" + ], + [ + 43, + 32, + 0, + 24, + 3, + "STRING" + ] + ], + "groups": [ + { + "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": "Generation time overlay", + "bounding": [ + -16, + -334, + 1300, + 168 + ], + "color": "#3f789e", + "font_size": 120, + "locked": false + } + ], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/workflows/time-outputs.json b/workflows/time-outputs.json new file mode 100644 index 0000000..46f7b44 --- /dev/null +++ b/workflows/time-outputs.json @@ -0,0 +1,942 @@ +{ + "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 +} \ No newline at end of file