From 001beaf7f52df8f39f1f5cbd8d9abb998b648a77 Mon Sep 17 00:00:00 2001 From: chflame163 <130118553+chflame163@users.noreply.github.com> Date: Sun, 14 Jan 2024 08:06:26 +0800 Subject: [PATCH] update workflow --- workflow/comfy_wordcloud_advance.json | 1017 +++++++++++++------------ 1 file changed, 550 insertions(+), 467 deletions(-) diff --git a/workflow/comfy_wordcloud_advance.json b/workflow/comfy_wordcloud_advance.json index 4de5085..ee0996a 100644 --- a/workflow/comfy_wordcloud_advance.json +++ b/workflow/comfy_wordcloud_advance.json @@ -1,468 +1,551 @@ -{ - "last_node_id": 13, - "last_link_id": 35, - "nodes": [ - { - "id": 7, - "type": "ImageScale", - "pos": [ - 1387, - 322 - ], - "size": { - "0": 315, - "1": 130 - }, - "flags": {}, - "order": 5, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 13 - }, - { - "name": "width", - "type": "INT", - "link": 15, - "widget": { - "name": "width" - } - }, - { - "name": "height", - "type": "INT", - "link": 16, - "widget": { - "name": "height" - } - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 25 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "ImageScale" - }, - "widgets_values": [ - "nearest-exact", - 512, - 512, - "disabled" - ] - }, - { - "id": 9, - "type": "ComfyWordCloud", - "pos": [ - 940, - 177 - ], - "size": { - "0": 400, - "1": 600 - }, - "flags": {}, - "order": 3, - "mode": 0, - "inputs": [ - { - "name": "color_ref_image", - "type": "IMAGE", - "link": 19 - }, - { - "name": "mask_image", - "type": "IMAGE", - "link": 28 - }, - { - "name": "text", - "type": "STRING", - "link": 21, - "widget": { - "name": "text" - } - } - ], - "outputs": [ - { - "name": "image", - "type": "IMAGE", - "links": [ - 23, - 24 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "ComfyWordCloud" - }, - "widgets_values": [ - "", - 512, - 512, - 4, - 0, - "C:\\AIRes\\font\\锐字真言体RZZhenYan.ttf", - 4, - 128, - 0.5, - "Oranges", - "#000000", - false, - 0.9, - 200, - false, - false, - -1, - "的,是,再", - 0, - "#000000", - "重,大,新,闻", - 60 - ] - }, - { - "id": 8, - "type": "GetImageSize", - "pos": [ - 1390, - 216 - ], - "size": { - "0": 210, - "1": 46 - }, - "flags": {}, - "order": 4, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 23 - } - ], - "outputs": [ - { - "name": "width", - "type": "INT", - "links": [ - 15 - ], - "shape": 3, - "slot_index": 0 - }, - { - "name": "height", - "type": "INT", - "links": [ - 16 - ], - "shape": 3, - "slot_index": 1 - } - ], - "properties": { - "Node name for S&R": "GetImageSize" - } - }, - { - "id": 11, - "type": "Image Rembg (Remove Background)", - "pos": [ - 578, - 558 - ], - "size": { - "0": 315, - "1": 250 - }, - "flags": {}, - "order": 2, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 27 - } - ], - "outputs": [ - { - "name": "images", - "type": "IMAGE", - "links": [ - 28 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "Image Rembg (Remove Background)" - }, - "widgets_values": [ - true, - "u2net", - false, - false, - false, - 240, - 10, - 10, - "none" - ] - }, - { - "id": 1, - "type": "LoadTextFile", - "pos": [ - 587, - 140 - ], - "size": [ - 289.6014779663086, - 58 - ], - "flags": {}, - "order": 0, - "mode": 0, - "outputs": [ - { - "name": "Text", - "type": "STRING", - "links": [ - 21 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "LoadTextFile" - }, - "widgets_values": [ - "C:\\AIRes\\test2.txt" - ] - }, - { - "id": 3, - "type": "LoadImage", - "pos": [ - 584, - 251 - ], - "size": [ - 295.9548724365235, - 245.6844891357423 - ], - "flags": {}, - "order": 1, - "mode": 0, - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 13, - 19, - 27 - ], - "shape": 3, - "slot_index": 0 - }, - { - "name": "MASK", - "type": "MASK", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "LoadImage" - }, - "widgets_values": [ - "D04QPvc.jpg", - "image" - ] - }, - { - "id": 10, - "type": "ImageBlend", - "pos": [ - 1388, - 518 - ], - "size": { - "0": 315, - "1": 102 - }, - "flags": {}, - "order": 6, - "mode": 0, - "inputs": [ - { - "name": "image1", - "type": "IMAGE", - "link": 24 - }, - { - "name": "image2", - "type": "IMAGE", - "link": 25 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 35 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "ImageBlend" - }, - "widgets_values": [ - 0.56, - "screen" - ] - }, - { - "id": 13, - "type": "SaveImage", - "pos": [ - 1746, - 157 - ], - "size": [ - 621.1948974609377, - 604.6911083984376 - ], - "flags": {}, - "order": 7, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 35 - } - ], - "properties": {}, - "widgets_values": [ - "ComfyUI" - ] - } - ], - "links": [ - [ - 13, - 3, - 0, - 7, - 0, - "IMAGE" - ], - [ - 15, - 8, - 0, - 7, - 1, - "INT" - ], - [ - 16, - 8, - 1, - 7, - 2, - "INT" - ], - [ - 19, - 3, - 0, - 9, - 0, - "IMAGE" - ], - [ - 21, - 1, - 0, - 9, - 2, - "STRING" - ], - [ - 23, - 9, - 0, - 8, - 0, - "IMAGE" - ], - [ - 24, - 9, - 0, - 10, - 0, - "IMAGE" - ], - [ - 25, - 7, - 0, - 10, - 1, - "IMAGE" - ], - [ - 27, - 3, - 0, - 11, - 0, - "IMAGE" - ], - [ - 28, - 11, - 0, - 9, - 1, - "IMAGE" - ], - [ - 35, - 10, - 0, - 13, - 0, - "IMAGE" - ] - ], - "groups": [], - "config": {}, - "extra": {}, - "version": 0.4 +{ + "last_node_id": 15, + "last_link_id": 37, + "nodes": [ + { + "id": 7, + "type": "ImageScale", + "pos": [ + 1384, + 493 + ], + "size": { + "0": 315, + "1": 130 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 13 + }, + { + "name": "width", + "type": "INT", + "link": 15, + "widget": { + "name": "width" + } + }, + { + "name": "height", + "type": "INT", + "link": 16, + "widget": { + "name": "height" + } + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 25 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ImageScale" + }, + "widgets_values": [ + "nearest-exact", + 512, + 512, + "disabled" + ] + }, + { + "id": 8, + "type": "GetImageSize", + "pos": [ + 1386, + 396 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 23 + } + ], + "outputs": [ + { + "name": "width", + "type": "INT", + "links": [ + 15 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "height", + "type": "INT", + "links": [ + 16 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "GetImageSize" + } + }, + { + "id": 15, + "type": "PreviewImage", + "pos": [ + 1377, + 29 + ], + "size": [ + 326.0002197265626, + 305.60007629394534 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 37 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 1, + "type": "LoadTextFile", + "pos": [ + 592, + 45 + ], + "size": { + "0": 289.6014709472656, + "1": 58 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "Text", + "type": "STRING", + "links": [ + 21 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LoadTextFile" + }, + "widgets_values": [ + "C:\\AIRes\\test2.txt" + ] + }, + { + "id": 14, + "type": "RGB_Picker", + "pos": [ + 942, + 25 + ], + "size": { + "0": 210, + "1": 94 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "value", + "type": "STRING", + "links": [ + 36 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "RGB_Picker" + }, + "widgets_values": [ + "#000000", + "HEX" + ] + }, + { + "id": 9, + "type": "ComfyWordCloud", + "pos": [ + 940, + 177 + ], + "size": [ + 394.4380239257812, + 623.7396584472658 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "color_ref_image", + "type": "IMAGE", + "link": 19 + }, + { + "name": "mask_image", + "type": "IMAGE", + "link": 28 + }, + { + "name": "text", + "type": "STRING", + "link": 21, + "widget": { + "name": "text" + } + }, + { + "name": "background_color", + "type": "STRING", + "link": 36, + "widget": { + "name": "background_color" + } + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 23, + 24, + 37 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ComfyWordCloud" + }, + "widgets_values": [ + "", + 512, + 512, + 4, + 0, + "锐字真言体RZZhenYan.ttf", + 4, + 128, + 0.5, + "Oranges", + "#000000", + false, + 0.9, + 200, + false, + false, + -1, + "的,是,再", + 0, + "#000000", + "重,大,新,闻", + 60 + ] + }, + { + "id": 13, + "type": "SaveImage", + "pos": [ + 1731, + 35 + ], + "size": [ + 673.695284497071, + 738.2767741210939 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 35 + } + ], + "properties": {}, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 10, + "type": "ImageBlend", + "pos": [ + 1381, + 676 + ], + "size": { + "0": 315, + "1": 102 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "image1", + "type": "IMAGE", + "link": 24 + }, + { + "name": "image2", + "type": "IMAGE", + "link": 25 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 35 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ImageBlend" + }, + "widgets_values": [ + 0.56, + "screen" + ] + }, + { + "id": 3, + "type": "LoadImage", + "pos": [ + 586, + 164 + ], + "size": { + "0": 295.9548645019531, + "1": 314 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 13, + 19, + 27 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "D04QPvc.jpg", + "image" + ] + }, + { + "id": 11, + "type": "Image Rembg (Remove Background)", + "pos": [ + 584, + 541 + ], + "size": { + "0": 315, + "1": 250 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 27 + } + ], + "outputs": [ + { + "name": "images", + "type": "IMAGE", + "links": [ + 28 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Image Rembg (Remove Background)" + }, + "widgets_values": [ + true, + "u2net", + false, + false, + false, + 240, + 10, + 10, + "none" + ] + } + ], + "links": [ + [ + 13, + 3, + 0, + 7, + 0, + "IMAGE" + ], + [ + 15, + 8, + 0, + 7, + 1, + "INT" + ], + [ + 16, + 8, + 1, + 7, + 2, + "INT" + ], + [ + 19, + 3, + 0, + 9, + 0, + "IMAGE" + ], + [ + 21, + 1, + 0, + 9, + 2, + "STRING" + ], + [ + 23, + 9, + 0, + 8, + 0, + "IMAGE" + ], + [ + 24, + 9, + 0, + 10, + 0, + "IMAGE" + ], + [ + 25, + 7, + 0, + 10, + 1, + "IMAGE" + ], + [ + 27, + 3, + 0, + 11, + 0, + "IMAGE" + ], + [ + 28, + 11, + 0, + 9, + 1, + "IMAGE" + ], + [ + 35, + 10, + 0, + 13, + 0, + "IMAGE" + ], + [ + 36, + 14, + 0, + 9, + 3, + "STRING" + ], + [ + 37, + 9, + 0, + 15, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 } \ No newline at end of file