From fea0cfd5dda644a78a961a99170f44a55ea2afeb Mon Sep 17 00:00:00 2001 From: shadowcz007 Date: Thu, 11 Jan 2024 15:40:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0workflow=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AIPC大赛模板-图片参赛模板-workflow.json | 196 +++---- workflow/Text-to-Image-app.json | 330 +++++------ workflow/poster-layers-workflow.json | 516 ++++++++++-------- 3 files changed, 533 insertions(+), 509 deletions(-) diff --git a/workflow/AIPC大赛模板-图片参赛模板-workflow.json b/workflow/AIPC大赛模板-图片参赛模板-workflow.json index a171484..eb5fa72 100644 --- a/workflow/AIPC大赛模板-图片参赛模板-workflow.json +++ b/workflow/AIPC大赛模板-图片参赛模板-workflow.json @@ -1,6 +1,6 @@ { - "last_node_id": 128, - "last_link_id": 207, + "last_node_id": 129, + "last_link_id": 208, "nodes": [ { "id": 8, @@ -466,7 +466,7 @@ "1": 262 }, "flags": {}, - "order": 28, + "order": 27, "mode": 0, "inputs": [ { @@ -526,7 +526,7 @@ "1": 262 }, "flags": {}, - "order": 30, + "order": 29, "mode": 0, "inputs": [ { @@ -574,31 +574,6 @@ "" ] }, - { - "id": 101, - "type": "PreviewImage", - "pos": [ - 5328.397364750004, - -1726.0537115390628 - ], - "size": { - "0": 210, - "1": 246 - }, - "flags": {}, - "order": 27, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 161 - } - ], - "properties": { - "Node name for S&R": "PreviewImage" - } - }, { "id": 21, "type": "Note", @@ -670,7 +645,7 @@ "1": 262 }, "flags": {}, - "order": 32, + "order": 31, "mode": 0, "inputs": [ { @@ -1148,7 +1123,7 @@ "1": 46 }, "flags": {}, - "order": 34, + "order": 33, "mode": 0, "inputs": [ { @@ -1171,6 +1146,12 @@ ], "shape": 3, "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 } ], "properties": { @@ -1189,7 +1170,7 @@ "1": 46 }, "flags": {}, - "order": 35, + "order": 34, "mode": 0, "inputs": [ { @@ -1212,6 +1193,12 @@ ], "shape": 3, "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 } ], "properties": { @@ -1230,7 +1217,7 @@ "1": 46 }, "flags": {}, - "order": 36, + "order": 35, "mode": 0, "inputs": [ { @@ -1253,6 +1240,12 @@ ], "shape": 3, "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 } ], "properties": { @@ -1304,7 +1297,7 @@ "1": 532.8897705078125 }, "flags": {}, - "order": 37, + "order": 36, "mode": 0, "inputs": [ { @@ -1329,7 +1322,7 @@ "1": 553.1112670898438 }, "flags": {}, - "order": 38, + "order": 37, "mode": 0, "inputs": [ { @@ -1354,7 +1347,7 @@ "1": 150 }, "flags": {}, - "order": 31, + "order": 30, "mode": 0, "inputs": [ { @@ -1464,7 +1457,7 @@ "1": 499.6607971191406 }, "flags": {}, - "order": 39, + "order": 38, "mode": 0, "inputs": [ { @@ -1489,7 +1482,7 @@ "1": 150 }, "flags": {}, - "order": 33, + "order": 32, "mode": 0, "inputs": [ { @@ -1554,7 +1547,7 @@ "1": 150 }, "flags": {}, - "order": 29, + "order": 28, "mode": 0, "inputs": [ { @@ -1705,56 +1698,10 @@ 101, 0, "#000000", + false, false ] }, - { - "id": 98, - "type": "AppInfo", - "pos": [ - 4922.397364750004, - -1807.0537115390628 - ], - "size": { - "0": 362.42608642578125, - "1": 431.3537902832031 - }, - "flags": {}, - "order": 16, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 162 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 161 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "AppInfo" - }, - "widgets_values": [ - "AIPC大赛模板", - "\n75\n118", - "57\n126\n127\n", - "投稿模板#发挥你的想象力", - 4, - "#AIPC# 参赛作品", - "https://www.weibo.com", - "", - null - ] - }, { "id": 106, "type": "LoadImage", @@ -1762,10 +1709,10 @@ 4535, -1843 ], - "size": [ - 210, - 314 - ], + "size": { + "0": 210, + "1": 314 + }, "flags": {}, "order": 7, "mode": 0, @@ -1774,7 +1721,7 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 162 + 208 ], "shape": 3, "slot_index": 0 @@ -1835,6 +1782,43 @@ "1703665898041.png", "image" ] + }, + { + "id": 129, + "type": "AppInfo", + "pos": [ + 4893, + -1778 + ], + "size": { + "0": 400, + "1": 344.0000305175781 + }, + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "LOGO", + "type": "IMAGE", + "link": 208 + } + ], + "properties": { + "Node name for S&R": "AppInfo" + }, + "widgets_values": [ + "AIPC大赛模板", + "\n75\n118", + "57\n126\n127\n", + "投稿模板#发挥你的想象力", + 4, + "#AIPC# 参赛作品", + "https://www.weibo.com", + "", + "enable", + 1 + ] } ], "links": [ @@ -2174,22 +2158,6 @@ 0, "IMAGE" ], - [ - 161, - 98, - 0, - 101, - 0, - "IMAGE" - ], - [ - 162, - 106, - 0, - 98, - 0, - "IMAGE" - ], [ 185, 118, @@ -2333,6 +2301,14 @@ 127, 0, "IMAGE" + ], + [ + 208, + 106, + 0, + 129, + 0, + "IMAGE" ] ], "groups": [ @@ -2351,10 +2327,10 @@ { "title": "Group", "bounding": [ - 4912, + 4883, -2035, - 637, - 669 + 666, + 611 ], "color": "#444", "font_size": 24, diff --git a/workflow/Text-to-Image-app.json b/workflow/Text-to-Image-app.json index 1bcdf95..da1c956 100644 --- a/workflow/Text-to-Image-app.json +++ b/workflow/Text-to-Image-app.json @@ -1,6 +1,6 @@ { - "last_node_id": 25, - "last_link_id": 32, + "last_node_id": 26, + "last_link_id": 34, "nodes": [ { "id": 5, @@ -41,48 +41,6 @@ "text, watermark" ] }, - { - "id": 6, - "type": "VAEDecode", - "pos": [ - 1867, - -2378 - ], - "size": { - "0": 210, - "1": 46 - }, - "flags": { - "collapsed": false - }, - "order": 10, - "mode": 0, - "inputs": [ - { - "name": "samples", - "type": "LATENT", - "link": 7 - }, - { - "name": "vae", - "type": "VAE", - "link": 8 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 9 - ], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "VAEDecode" - } - }, { "id": 15, "type": "EnhanceImage", @@ -101,7 +59,7 @@ { "name": "image", "type": "IMAGE", - "link": 25 + "link": 34 } ], "outputs": [ @@ -122,57 +80,6 @@ 1.1 ] }, - { - "id": 21, - "type": "EmptyLatentImage", - "pos": [ - 998, - -2674 - ], - "size": [ - 315, - 106 - ], - "flags": {}, - "order": 8, - "mode": 0, - "inputs": [ - { - "name": "width", - "type": "INT", - "link": 30, - "widget": { - "name": "width" - } - }, - { - "name": "height", - "type": "INT", - "link": 32, - "widget": { - "name": "height" - } - } - ], - "outputs": [ - { - "name": "LATENT", - "type": "LATENT", - "links": [ - 26 - ], - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "EmptyLatentImage" - }, - "widgets_values": [ - 512, - 512, - 1 - ] - }, { "id": 24, "type": "LimitNumber", @@ -262,7 +169,7 @@ ], "size": { "0": 315, - "1": 58 + "1": 130 }, "flags": {}, "order": 0, @@ -283,7 +190,10 @@ "Node name for S&R": "IntNumber" }, "widgets_values": [ - 512 + 1, + 0, + 1, + 1 ] }, { @@ -295,7 +205,7 @@ ], "size": { "0": 315, - "1": 58 + "1": 130 }, "flags": {}, "order": 1, @@ -316,7 +226,10 @@ "Node name for S&R": "IntNumber" }, "widgets_values": [ - 512 + 1, + 0, + 1, + 1 ] }, { @@ -428,7 +341,7 @@ "Node name for S&R": "KSampler" }, "widgets_values": [ - 730250870715434, + 52336089190516, "randomize", 15, 6.9, @@ -437,39 +350,6 @@ 0.59 ] }, - { - "id": 14, - "type": "FloatSlider", - "pos": [ - 1007, - -2819 - ], - "size": { - "0": 315, - "1": 58 - }, - "flags": {}, - "order": 3, - "mode": 0, - "outputs": [ - { - "name": "FLOAT", - "type": "FLOAT", - "links": [ - 16 - ], - "shape": 3, - "slot_index": 0 - } - ], - "title": "denoise", - "properties": { - "Node name for S&R": "FloatSlider" - }, - "widgets_values": [ - 1 - ] - }, { "id": 16, "type": "PreviewImage", @@ -535,24 +415,31 @@ ] }, { - "id": 7, - "type": "AppInfo", + "id": 6, + "type": "VAEDecode", "pos": [ - 2134, - -2528 + 1867, + -2378 ], "size": { - "0": 408.4201965332031, - "1": 406.9195861816406 + "0": 210, + "1": 46 }, - "flags": {}, - "order": 11, + "flags": { + "collapsed": false + }, + "order": 10, "mode": 0, "inputs": [ { - "name": "image", - "type": "IMAGE", - "link": 9 + "name": "samples", + "type": "LATENT", + "link": 7 + }, + { + "name": "vae", + "type": "VAE", + "link": 8 } ], "outputs": [ @@ -560,12 +447,37 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 25 + 33, + 34 ], - "shape": 3, "slot_index": 0 } ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 26, + "type": "AppInfo", + "pos": [ + 2134, + -2264 + ], + "size": { + "0": 400, + "1": 344.00006103515625 + }, + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "LOGO", + "type": "IMAGE", + "link": 33 + } + ], "properties": { "Node name for S&R": "AppInfo" }, @@ -576,7 +488,97 @@ "演示基本的文生图流程", 1, "#comfyui-mixlab-nodes# ", - null + "https://", + "", + "enable", + 1 + ] + }, + { + "id": 14, + "type": "FloatSlider", + "pos": [ + 1007, + -2860 + ], + "size": { + "0": 315, + "1": 130 + }, + "flags": {}, + "order": 3, + "mode": 0, + "outputs": [ + { + "name": "FLOAT", + "type": "FLOAT", + "links": [ + 16 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "denoise", + "properties": { + "Node name for S&R": "FloatSlider" + }, + "widgets_values": [ + 1, + 0, + 1, + 0.001 + ] + }, + { + "id": 21, + "type": "EmptyLatentImage", + "pos": [ + 1004, + -2633 + ], + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "width", + "type": "INT", + "link": 30, + "widget": { + "name": "width" + } + }, + { + "name": "height", + "type": "INT", + "link": 32, + "widget": { + "name": "height" + } + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 26 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 512, + 512, + 1 ] } ], @@ -637,14 +639,6 @@ 1, "VAE" ], - [ - 9, - 6, - 0, - 7, - 0, - "IMAGE" - ], [ 16, 14, @@ -661,14 +655,6 @@ 0, "IMAGE" ], - [ - 25, - 7, - 0, - 15, - 0, - "IMAGE" - ], [ 26, 21, @@ -708,6 +694,22 @@ 21, 1, "INT" + ], + [ + 33, + 6, + 0, + 26, + 0, + "IMAGE" + ], + [ + 34, + 6, + 0, + 15, + 0, + "IMAGE" ] ], "groups": [], diff --git a/workflow/poster-layers-workflow.json b/workflow/poster-layers-workflow.json index 9d7c3ae..df0132e 100644 --- a/workflow/poster-layers-workflow.json +++ b/workflow/poster-layers-workflow.json @@ -1,6 +1,6 @@ { - "last_node_id": 133, - "last_link_id": 289, + "last_node_id": 134, + "last_link_id": 296, "nodes": [ { "id": 42, @@ -178,7 +178,7 @@ "Node name for S&R": "KSampler" }, "widgets_values": [ - 487152733962296, + 981322491518329, "randomize", 13, 8, @@ -284,7 +284,7 @@ { "name": "width", "type": "INT", - "link": 91, + "link": 291, "widget": { "name": "width" } @@ -292,7 +292,7 @@ { "name": "height", "type": "INT", - "link": 92, + "link": 292, "widget": { "name": "height" } @@ -554,7 +554,7 @@ "Node name for S&R": "KSampler" }, "widgets_values": [ - 1031291986804327, + 836429510062488, "randomize", 13, 8, @@ -824,7 +824,7 @@ "Node name for S&R": "KSampler" }, "widgets_values": [ - 715240655341851, + 24900528323969, "randomize", 12, 8, @@ -875,67 +875,6 @@ "Node name for S&R": "VAEDecode" } }, - { - "id": 46, - "type": "NewLayer", - "pos": [ - 1012.7987748686522, - 1330 - ], - "size": { - "0": 315, - "1": 262 - }, - "flags": {}, - "order": 32, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 78 - }, - { - "name": "mask", - "type": "MASK", - "link": 79 - }, - { - "name": "layers", - "type": "LAYER", - "link": 227, - "slot_index": 2 - }, - { - "name": "canvas", - "type": "IMAGE", - "link": null - } - ], - "outputs": [ - { - "name": "layers", - "type": "LAYER", - "links": [ - 228 - ], - "shape": 6, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "NewLayer" - }, - "widgets_values": [ - 179, - 134, - 156, - 146, - 4, - "width", - "" - ] - }, { "id": 65, "type": "NewLayer", @@ -1221,42 +1160,6 @@ "" ] }, - { - "id": 28, - "type": "Reroute", - "pos": [ - 616, - 1515 - ], - "size": [ - 75, - 26 - ], - "flags": {}, - "order": 13, - "mode": 0, - "inputs": [ - { - "name": "", - "type": "*", - "link": 48 - } - ], - "outputs": [ - { - "name": "", - "type": "IMAGE", - "links": [ - 90 - ], - "slot_index": 0 - } - ], - "properties": { - "showOutputText": false, - "horizontal": false - } - }, { "id": 96, "type": "Reroute", @@ -1294,55 +1197,6 @@ "horizontal": false } }, - { - "id": 49, - "type": "GetImageSize", - "pos": [ - 999, - 1189 - ], - "size": { - "0": 210, - "1": 46 - }, - "flags": {}, - "order": 24, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 90 - } - ], - "outputs": [ - { - "name": "width", - "type": "INT", - "links": [ - 91, - 238, - 248 - ], - "shape": 3, - "slot_index": 0 - }, - { - "name": "height", - "type": "INT", - "links": [ - 92, - 239, - 249 - ], - "shape": 3, - "slot_index": 1 - } - ], - "properties": { - "Node name for S&R": "GetImageSize" - } - }, { "id": 118, "type": "NewLayer", @@ -1376,7 +1230,7 @@ { "name": "width", "type": "INT", - "link": 248, + "link": 295, "widget": { "name": "width" } @@ -1384,7 +1238,7 @@ { "name": "height", "type": "INT", - "link": 249, + "link": 296, "widget": { "name": "height" } @@ -1572,7 +1426,7 @@ { "name": "width", "type": "INT", - "link": 238, + "link": 293, "widget": { "name": "width" } @@ -1580,7 +1434,7 @@ { "name": "height", "type": "INT", - "link": 239, + "link": 294, "widget": { "name": "height" } @@ -1955,7 +1809,7 @@ "Node name for S&R": "KSampler" }, "widgets_values": [ - 397643785545040, + 371831550273153, "randomize", 13, 8, @@ -2164,7 +2018,7 @@ "Node name for S&R": "KSampler" }, "widgets_values": [ - 590319162197911, + 996820396025175, "randomize", 13, 8, @@ -2310,7 +2164,7 @@ "Node name for S&R": "KSampler" }, "widgets_values": [ - 457217754867837, + 763274893004397, "randomize", 13, 8, @@ -2780,7 +2634,7 @@ ], "size": { "0": 315, - "1": 234 + "1": 240 }, "flags": {}, "order": 3, @@ -2814,7 +2668,8 @@ 100, 13, null, - true + true, + false ] }, { @@ -2986,10 +2841,10 @@ 100, 706 ], - "size": [ - 315, - 234 - ], + "size": { + "0": 315, + "1": 234 + }, "flags": {}, "order": 15, "mode": 0, @@ -3034,7 +2889,8 @@ 100, 13, null, - true + true, + false ] }, { @@ -3044,10 +2900,10 @@ 100, 1330 ], - "size": [ - 315, - 234 - ], + "size": { + "0": 315, + "1": 234 + }, "flags": {}, "order": 16, "mode": 0, @@ -3091,7 +2947,8 @@ 100, 13, null, - true + true, + false ] }, { @@ -3101,10 +2958,10 @@ 100, 1922 ], - "size": [ - 315, - 234 - ], + "size": { + "0": 315, + "1": 234 + }, "flags": {}, "order": 17, "mode": 0, @@ -3147,7 +3004,8 @@ 100, 13, null, - true + true, + false ] }, { @@ -3159,7 +3017,7 @@ ], "size": { "0": 315, - "1": 70 + "1": 174 }, "flags": {}, "order": 6, @@ -3175,13 +3033,37 @@ ], "shape": 3, "slot_index": 0 + }, + { + "name": "r", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "g", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "b", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "a", + "type": "FLOAT", + "links": null, + "shape": 3 } ], "properties": { "Node name for S&R": "Color" }, "widgets_values": [ - null, + "#000000", null ] }, @@ -3221,6 +3103,12 @@ ], "shape": 3, "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 } ], "properties": { @@ -3263,6 +3151,12 @@ ], "shape": 3, "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 } ], "properties": { @@ -3306,6 +3200,12 @@ ], "shape": 3, "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 } ], "properties": { @@ -3334,6 +3234,152 @@ ], "color": "#432", "bgcolor": "#653" + }, + { + "id": 134, + "type": "GetImageSize_", + "pos": [ + 734, + 1628 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 24, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 290 + } + ], + "outputs": [ + { + "name": "width", + "type": "INT", + "links": [ + 291, + 293, + 295 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "height", + "type": "INT", + "links": [ + 292, + 294, + 296 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "GetImageSize_" + } + }, + { + "id": 28, + "type": "Reroute", + "pos": [ + 597, + 1627 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 48 + } + ], + "outputs": [ + { + "name": "", + "type": "IMAGE", + "links": [ + 290 + ], + "slot_index": 0 + } + ], + "properties": { + "showOutputText": false, + "horizontal": false + } + }, + { + "id": 46, + "type": "NewLayer", + "pos": [ + 1056, + 1247 + ], + "size": { + "0": 315, + "1": 262 + }, + "flags": {}, + "order": 32, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 78 + }, + { + "name": "mask", + "type": "MASK", + "link": 79 + }, + { + "name": "layers", + "type": "LAYER", + "link": 227, + "slot_index": 2 + }, + { + "name": "canvas", + "type": "IMAGE", + "link": null + } + ], + "outputs": [ + { + "name": "layers", + "type": "LAYER", + "links": [ + 228 + ], + "shape": 6, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "NewLayer" + }, + "widgets_values": [ + 179, + 134, + 156, + 146, + 4, + "width", + "" + ] } ], "links": [ @@ -3433,30 +3479,6 @@ 1, "MASK" ], - [ - 90, - 28, - 0, - 49, - 0, - "IMAGE" - ], - [ - 91, - 49, - 0, - 50, - 0, - "INT" - ], - [ - 92, - 49, - 1, - 50, - 1, - "INT" - ], [ 111, 63, @@ -4001,22 +4023,6 @@ 0, "IMAGE" ], - [ - 238, - 49, - 0, - 116, - 3, - "INT" - ], - [ - 239, - 49, - 1, - 116, - 4, - "INT" - ], [ 247, 116, @@ -4025,22 +4031,6 @@ 2, "LAYER" ], - [ - 248, - 49, - 0, - 118, - 3, - "INT" - ], - [ - 249, - 49, - 1, - 118, - 4, - "INT" - ], [ 251, 119, @@ -4312,6 +4302,62 @@ 119, 0, "IMAGE" + ], + [ + 290, + 28, + 0, + 134, + 0, + "IMAGE" + ], + [ + 291, + 134, + 0, + 50, + 0, + "INT" + ], + [ + 292, + 134, + 1, + 50, + 1, + "INT" + ], + [ + 293, + 134, + 0, + 116, + 3, + "INT" + ], + [ + 294, + 134, + 1, + 116, + 4, + "INT" + ], + [ + 295, + 134, + 0, + 118, + 3, + "INT" + ], + [ + 296, + 134, + 1, + 118, + 4, + "INT" ] ], "groups": [],