{ "id": "6251987a-64f5-4ce6-8e76-1007b0f25ad7", "revision": 0, "last_node_id": 73, "last_link_id": 129, "nodes": [ { "id": 13, "type": "EmptySD3LatentImage", "pos": [ 530, 620 ], "size": [ 315, 106 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "label": "Latent", "name": "LATENT", "type": "LATENT", "slot_index": 0, "links": [ 17 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.35", "Node name for S&R": "EmptySD3LatentImage", "widget_ue_connectable": {} }, "widgets_values": [ 832, 1264, 1 ] }, { "id": 14, "type": "Note", "pos": [ 860, -50 ], "size": [ 310, 180 ], "flags": {}, "order": 1, "mode": 0, "inputs": [], "outputs": [], "properties": { "widget_ue_connectable": {} }, "widgets_values": [ "1girl, animal ears, barefoot, long hair, white hair, feet, dress, water, solo, toes, nature, sitting, outdoors, white dress, animal ear fluff, soles, open mouth, forest, legs, green cape, fox ears, hair ornament, bare legs, yellow eyes, cape, tail" ], "color": "#432", "bgcolor": "#653" }, { "id": 22, "type": "CLIPSetLastLayer", "pos": [ -349.20697021484375, 454.1185607910156 ], "size": [ 270, 58 ], "flags": {}, "order": 15, "mode": 0, "inputs": [ { "label": "CLIP", "name": "clip", "type": "CLIP", "link": 38 } ], "outputs": [ { "label": "CLIP", "name": "CLIP", "type": "CLIP", "links": [ 34 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.35", "Node name for S&R": "CLIPSetLastLayer", "widget_ue_connectable": {} }, "widgets_values": [ -2 ] }, { "id": 15, "type": "Note", "pos": [ -12.520955085754395, 181.7156219482422 ], "size": [ 319.26513671875, 197.89625549316406 ], "flags": {}, "order": 2, "mode": 0, "inputs": [], "outputs": [], "properties": { "widget_ue_connectable": {} }, "widgets_values": [ "The \"You are an assistant... \" text before the actual prompt is the one used in the official example.\n\nThe reason it is exposed to the user like this is because the model still works if you modify or remove it." ], "color": "#432", "bgcolor": "#653" }, { "id": 7, "type": "CLIPTextEncode", "pos": [ 367.5848388671875, 379.8739318847656 ], "size": [ 425.27801513671875, 180.6060791015625 ], "flags": {}, "order": 18, "mode": 0, "inputs": [ { "label": "CLIP", "name": "clip", "type": "CLIP", "link": 34 } ], "outputs": [ { "label": "条件", "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 6 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.35", "Node name for S&R": "CLIPTextEncode", "widget_ue_connectable": {} }, "widgets_values": [ "nsfw,worst quality,old,early,low quality,lowres,signature, username,logo,bad hands,mutated hands,mammal,anthro,furry,ambiguous form,feral,semi-anthro,txt,e621,mammal,anthro,furry,ambiguous_form,feral,semi-anthro" ], "color": "#322", "bgcolor": "#533" }, { "id": 20, "type": "VAELoader", "pos": [ -352.98162841796875, 560.4020385742188 ], "size": [ 270, 58 ], "flags": {}, "order": 3, "mode": 0, "inputs": [], "outputs": [ { "name": "VAE", "type": "VAE", "links": [ 81 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.35", "Node name for S&R": "VAELoader", "widget_ue_connectable": {} }, "widgets_values": [ "ae.safetensors" ] }, { "id": 25, "type": "CLIPLoader", "pos": [ -358.5459289550781, 275.4026794433594 ], "size": [ 270, 106 ], "flags": {}, "order": 4, "mode": 0, "inputs": [], "outputs": [ { "label": "CLIP", "name": "CLIP", "type": "CLIP", "links": [ 38, 54 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.35", "Node name for S&R": "CLIPLoader", "widget_ue_connectable": {} }, "widgets_values": [ "gemma_2_2b_fp16.safetensors", "lumina2", "default" ] }, { "id": 26, "type": "UNETLoader", "pos": [ -372.1959228515625, 8.162944793701172 ], "size": [ 270, 82 ], "flags": {}, "order": 5, "mode": 0, "inputs": [], "outputs": [ { "label": "模型", "name": "MODEL", "type": "MODEL", "links": [ 75 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.35", "Node name for S&R": "UNETLoader", "widget_ue_connectable": {} }, "widgets_values": [ "consolidated.00-of-01.pth", "default" ] }, { "id": 32, "type": "WeiLinComfyUIPromptToLorasOnly", "pos": [ 401.20379638671875, 149.92283630371094 ], "size": [ 287.57281494140625, 164.01841735839844 ], "flags": {}, "order": 22, "mode": 0, "inputs": [ { "label": "model", "name": "model", "type": "MODEL", "link": 51 }, { "label": "clip", "name": "clip", "type": "CLIP", "link": 54 } ], "outputs": [ { "label": "model", "name": "model", "type": "MODEL", "links": [ 52 ] }, { "label": "正向条件 CONDITIONING", "name": "正向条件 CONDITIONING", "type": "CONDITIONING", "links": [ 53 ] } ], "properties": { "cnr_id": "weilin-comfyui-prompt-all-in-one", "ver": "3.6.9", "Node name for S&R": "WeiLinComfyUIPromptToLorasOnly", "widget_ue_connectable": {} }, "widgets_values": [ "You are an assistant designed to generate anime images based on textual prompts. ,\ntyomimas,shiratama_(shiratamaco),\ngood hands,best quality,masterpiece,artbook,huge filesize,detailed eyes,\n1girl,solo,hatsune miku,frilled_dress,layered_dress,white_bodystocking,frog_hair_ornament,necklace,rimless_eyewear,library,in spring,day,incredibly absurdres,wallpaper,blurry_foreground,foreshortening,book,open_book,table,", "" ] }, { "id": 53, "type": "easy seed", "pos": [ -659.38916015625, -354.6134948730469 ], "size": [ 270, 106 ], "flags": {}, "order": 6, "mode": 0, "inputs": [], "outputs": [ { "name": "seed", "type": "INT", "links": [ 82 ] } ], "properties": { "cnr_id": "comfyui-easy-use", "ver": "71c7865d2d3c934ccb99f24171e08ae5a81148ac", "Node name for S&R": "easy seed" }, "widgets_values": [ 67131705116460, "randomize", null ] }, { "id": 55, "type": "easy convertAnything", "pos": [ -331.0647277832031, -365.1195983886719 ], "size": [ 270, 58 ], "flags": {}, "order": 16, "mode": 0, "inputs": [ { "name": "*", "type": "*", "link": 82 } ], "outputs": [ { "label": "string", "name": "string", "type": "STRING", "links": [ 83 ] } ], "properties": { "cnr_id": "comfyui-easy-use", "ver": "71c7865d2d3c934ccb99f24171e08ae5a81148ac", "Node name for S&R": "easy convertAnything" }, "widgets_values": [ "string" ] }, { "id": 57, "type": "LPIPS_Model_Loader", "pos": [ 1325.1751708984375, 718.6923217773438 ], "size": [ 192.20468139648438, 26 ], "flags": { "collapsed": false }, "order": 7, "mode": 0, "inputs": [], "outputs": [ { "name": "LPIPS_MODEL", "type": "LPIPS_MODEL", "links": [ 103 ] } ], "properties": { "cnr_id": "cui-lumina2-teacache", "ver": "c44cf0b54fa514a8a1dcfa6e238a62f8205cd970", "Node name for S&R": "LPIPS_Model_Loader" }, "widgets_values": [] }, { "id": 59, "type": "Store_Baseline_Image", "pos": [ 1594.6544189453125, 246.70602416992188 ], "size": [ 196.86679077148438, 26 ], "flags": { "collapsed": false }, "order": 17, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 95 } ], "outputs": [ { "name": "BASELINE_IMG", "type": "BASELINE_IMG", "links": [ 106 ] } ], "properties": { "cnr_id": "cui-lumina2-teacache", "ver": "c44cf0b54fa514a8a1dcfa6e238a62f8205cd970", "Node name for S&R": "Store_Baseline_Image" }, "widgets_values": [] }, { "id": 52, "type": "VAEDecode", "pos": [ 1781.8145751953125, -60.16097640991211 ], "size": [ 140, 46 ], "flags": {}, "order": 24, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 117 }, { "name": "vae", "type": "VAE", "link": 81 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 91, 107 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.40", "Node name for S&R": "VAEDecode" }, "widgets_values": [] }, { "id": 56, "type": "easy showAnything", "pos": [ 1935.3060302734375, -363.62109375 ], "size": [ 292.99920654296875, 151.5146026611328 ], "flags": {}, "order": 29, "mode": 0, "inputs": [ { "name": "anything", "shape": 7, "type": "*", "link": 114 } ], "outputs": [ { "name": "output", "type": "*", "links": null } ], "properties": { "cnr_id": "comfyui-easy-use", "ver": "71c7865d2d3c934ccb99f24171e08ae5a81148ac", "Node name for S&R": "easy showAnything" }, "widgets_values": [ "结果已成功保存到 teacache_analysis.json。\n耗时: 19.70s, 缓存命中/总数: 21/79, LPIPS距离: 0.3978" ] }, { "id": 3, "type": "KSampler", "pos": [ 894.04736328125, 181.1416015625 ], "size": [ 315, 474 ], "flags": {}, "order": 23, "mode": 0, "inputs": [ { "label": "模型", "name": "model", "type": "MODEL", "link": 52 }, { "label": "正面条件", "name": "positive", "type": "CONDITIONING", "link": 53 }, { "label": "负面条件", "name": "negative", "type": "CONDITIONING", "link": 6 }, { "label": "Latent", "name": "latent_image", "type": "LATENT", "link": 17 } ], "outputs": [ { "label": "Latent", "name": "LATENT", "type": "LATENT", "slot_index": 0, "links": [ 117, 118 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.35", "Node name for S&R": "KSampler", "widget_ue_connectable": {} }, "widgets_values": [ 358922174849629, "fixed", 50, 5.5, "euler_ancestral", "linear_quadratic", 1 ] }, { "id": 63, "type": "TeaCache_Result_Collector", "pos": [ 1298.4439697265625, -261.7159118652344 ], "size": [ 288.7564392089844, 98 ], "flags": {}, "order": 27, "mode": 0, "inputs": [ { "name": "latent", "type": "LATENT", "link": 118 }, { "name": "run_id", "type": "STRING", "link": 113 }, { "name": "trigger", "shape": 7, "type": "STRING", "link": 116 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [] }, { "name": "status", "type": "STRING", "links": [ 114 ] } ], "properties": { "cnr_id": "cui-lumina2-teacache", "ver": "c44cf0b54fa514a8a1dcfa6e238a62f8205cd970", "Node name for S&R": "TeaCache_Result_Collector" }, "widgets_values": [ "teacache_analysis.json" ] }, { "id": 64, "type": "TeaCache_LPIPS_Evaluator", "pos": [ 1734.0977783203125, 574.198974609375 ], "size": [ 232.66659545898438, 86 ], "flags": {}, "order": 26, "mode": 0, "inputs": [ { "name": "test_image", "type": "IMAGE", "link": 107 }, { "name": "baseline_image", "type": "BASELINE_IMG", "link": 106 }, { "name": "lpips_model", "type": "LPIPS_MODEL", "link": 103 }, { "name": "run_id", "type": "STRING", "link": 104 } ], "outputs": [ { "name": "status", "type": "STRING", "links": [ 116, 119 ] } ], "properties": { "cnr_id": "cui-lumina2-teacache", "ver": "c44cf0b54fa514a8a1dcfa6e238a62f8205cd970", "Node name for S&R": "TeaCache_LPIPS_Evaluator" }, "widgets_values": [] }, { "id": 67, "type": "easy showAnything", "pos": [ 2050.075927734375, 669.9161376953125 ], "size": [ 210, 88 ], "flags": {}, "order": 28, "mode": 0, "inputs": [ { "name": "anything", "shape": 7, "type": "*", "link": 119 } ], "outputs": [ { "name": "output", "type": "*", "links": null } ], "properties": { "cnr_id": "comfyui-easy-use", "ver": "71c7865d2d3c934ccb99f24171e08ae5a81148ac", "Node name for S&R": "easy showAnything" }, "widgets_values": [ "LPIPS距离计算完成: 0.3978" ] }, { "id": 60, "type": "LoadImage", "pos": [ 1251.2794189453125, 253.52606201171875 ], "size": [ 270, 314 ], "flags": {}, "order": 8, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 95 ] }, { "name": "MASK", "type": "MASK", "links": null } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.40", "Node name for S&R": "LoadImage" }, "widgets_values": [ "ComfyUI_00013_.png", "image" ] }, { "id": 69, "type": "Note", "pos": [ 1893.979248046875, 426.06988525390625 ], "size": [ 228.27394104003906, 88 ], "flags": {}, "order": 9, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "这个玩意可以检查图片之间的差异度" ], "color": "#432", "bgcolor": "#653" }, { "id": 68, "type": "Note", "pos": [ 262.2215881347656, -399.8599548339844 ], "size": [ 314.79998779296875, 88 ], "flags": {}, "order": 10, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "这里拉一个随机数转随机字符串是为了适应comfyui的无随机不自动执行机制,保持持久运行,注意,运行分析之前先要手动输入一次l1阈值为0,断开这边字符串和下面那个玩意的连接并运行一次,然后才可以把l1设置成其他值并连那个字符串使用贝叶斯优化" ], "color": "#432", "bgcolor": "#653" }, { "id": 70, "type": "Note", "pos": [ 1305.10546875, -405.6376953125 ], "size": [ 278.63134765625, 88 ], "flags": {}, "order": 11, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "为了让流程正常拦截,这边必须要一个latent传入,尽管流程里没有地方用到(cui石山代码发力)" ], "color": "#432", "bgcolor": "#653" }, { "id": 11, "type": "ModelSamplingAuraFlow", "pos": [ 406.74481201171875, -11.685216903686523 ], "size": [ 315, 58 ], "flags": {}, "order": 21, "mode": 0, "inputs": [ { "label": "模型", "name": "model", "type": "MODEL", "link": 76 } ], "outputs": [ { "label": "模型", "name": "MODEL", "type": "MODEL", "slot_index": 0, "links": [ 51 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.35", "Node name for S&R": "ModelSamplingAuraFlow", "widget_ue_connectable": {} }, "widgets_values": [ 6.000000000000001 ] }, { "id": 71, "type": "Note", "pos": [ -698.8666381835938, -108.50302124023438 ], "size": [ 311.3214111328125, 384.6645812988281 ], "flags": {}, "order": 12, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "这个工作流的用意是通过贝叶斯优化和图像差异来找到最佳的coefficients数据对,获取最短时间差异最小的数值组,用之前需要先pip install scikit-optimize和pip install lpips,然后才能正常使用这个工作流" ], "color": "#432", "bgcolor": "#653" }, { "id": 72, "type": "Note", "pos": [ 1533.0455322265625, 327.71844482421875 ], "size": [ 210, 88 ], "flags": {}, "order": 13, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "这边放你l1阈值为0跑出来的图,当参照用" ], "color": "#432", "bgcolor": "#653" }, { "id": 73, "type": "Note", "pos": [ 47.175479888916016, 22.277559280395508 ], "size": [ 257.219970703125, 88 ], "flags": {}, "order": 14, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "这边的下面的阈值是为了过滤掉图片差异大并且时间极短的极端情况" ], "color": "#432", "bgcolor": "#653" }, { "id": 9, "type": "SaveImage", "pos": [ 2175.5361328125, -52.20599365234375 ], "size": [ 510.16339111328125, 600.8326416015625 ], "flags": {}, "order": 25, "mode": 0, "inputs": [ { "label": "图像", "name": "images", "type": "IMAGE", "link": 91 } ], "outputs": [], "properties": { "cnr_id": "comfy-core", "ver": "0.3.35", "Node name for S&R": "SaveImage", "widget_ue_connectable": {} }, "widgets_values": [ "ComfyUI" ] }, { "id": 54, "type": "easy string", "pos": [ -29.006330490112305, -394.66888427734375 ], "size": [ 270, 58 ], "flags": {}, "order": 19, "mode": 0, "inputs": [ { "name": "value", "type": "STRING", "widget": { "name": "value" }, "link": 83 } ], "outputs": [ { "name": "string", "type": "STRING", "links": [ 129 ] } ], "properties": { "cnr_id": "comfyui-easy-use", "ver": "71c7865d2d3c934ccb99f24171e08ae5a81148ac", "Node name for S&R": "easy string" }, "widgets_values": [ "" ] }, { "id": 50, "type": "TeaCache_Patcher", "pos": [ -36.84147644042969, -229.90223693847656 ], "size": [ 400, 204 ], "flags": {}, "order": 20, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 75 }, { "name": "coefficients_str", "shape": 7, "type": "STRING", "widget": { "name": "coefficients_str" }, "link": 129 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 76 ] }, { "name": "run_id", "type": "STRING", "links": [ 104, 113 ] } ], "properties": { "cnr_id": "cui-lumina2-teacache", "ver": "c44cf0b54fa514a8a1dcfa6e238a62f8205cd970", "Node name for S&R": "TeaCache_Patcher" }, "widgets_values": [ "贝叶斯优化", "质量-命中率权衡 (LPIPS)", 0.10000000000000002, "[993.76566581, -603.50993606, 209.10239044, -23.00726601, 0.86377344]", 0.6000000000000002 ] } ], "links": [ [ 6, 7, 0, 3, 2, "CONDITIONING" ], [ 17, 13, 0, 3, 3, "LATENT" ], [ 34, 22, 0, 7, 0, "CLIP" ], [ 38, 25, 0, 22, 0, "CLIP" ], [ 51, 11, 0, 32, 0, "MODEL" ], [ 52, 32, 0, 3, 0, "MODEL" ], [ 53, 32, 1, 3, 1, "CONDITIONING" ], [ 54, 25, 0, 32, 1, "CLIP" ], [ 75, 26, 0, 50, 0, "MODEL" ], [ 76, 50, 0, 11, 0, "MODEL" ], [ 81, 20, 0, 52, 1, "VAE" ], [ 82, 53, 0, 55, 0, "*" ], [ 83, 55, 0, 54, 0, "STRING" ], [ 91, 52, 0, 9, 0, "IMAGE" ], [ 95, 60, 0, 59, 0, "IMAGE" ], [ 103, 57, 0, 64, 2, "LPIPS_MODEL" ], [ 104, 50, 1, 64, 3, "STRING" ], [ 106, 59, 0, 64, 1, "BASELINE_IMG" ], [ 107, 52, 0, 64, 0, "IMAGE" ], [ 113, 50, 1, 63, 1, "STRING" ], [ 114, 63, 1, 56, 0, "*" ], [ 116, 64, 0, 63, 2, "STRING" ], [ 117, 3, 0, 52, 0, "LATENT" ], [ 118, 3, 0, 63, 0, "LATENT" ], [ 119, 64, 0, 67, 0, "*" ], [ 129, 54, 0, 50, 1, "STRING" ] ], "groups": [], "config": {}, "extra": { "ds": { "scale": 0.8390545288824263, "offset": [ -815.8448051258971, 314.82595774600685 ] }, "frontendVersion": "1.21.7", "node_versions": { "comfy-core": "0.3.31", "weilin-comfyui-prompt-all-in-one": "1.0.0" }, "ue_links": [], "VHS_latentpreview": false, "VHS_latentpreviewrate": 0, "links_added_by_ue": [], "VHS_MetadataImage": true, "VHS_KeepIntermediate": true }, "version": 0.4 }