From 9186e6ef856725e401e39f0ff535f713d8ec49be Mon Sep 17 00:00:00 2001 From: zjt <937178071@qq.com> Date: Thu, 30 May 2024 12:26:52 +0800 Subject: [PATCH] seed --- src/comfyJson/txt2img.ts | 2828 ++++++-------------------------------- 1 file changed, 456 insertions(+), 2372 deletions(-) diff --git a/src/comfyJson/txt2img.ts b/src/comfyJson/txt2img.ts index 29c48cc..2e78c15 100644 --- a/src/comfyJson/txt2img.ts +++ b/src/comfyJson/txt2img.ts @@ -1,2379 +1,463 @@ const txt2imgAPIformatJSON = { - "extra_pnginfo": { - "workflow": { - "last_node_id": 138, - "last_link_id": 241, - "nodes": [ - { - "id": 74, - "type": "ImageCompositeMasked", - "pos": [ - 5136.1200121311485, - 282.6768060322938 - ], - "size": { - "0": 315, - "1": 146 - }, - "flags": {}, - "order": 27, - "mode": 0, - "inputs": [ - { - "name": "destination", - "type": "IMAGE", - "link": 103, - "label": "destination" - }, - { - "name": "source", - "type": "IMAGE", - "link": 98, - "label": "source" - }, - { - "name": "mask", - "type": "MASK", - "link": 99, - "label": "mask" - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 101 - ], - "shape": 3, - "label": "IMAGE", - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "ImageCompositeMasked", - "ttNbgOverride": { - "color": "#346434", - "groupcolor": "#8A8" - } - }, - "widgets_values": [ - 0, - 25, - false - ], - "color": "#346434" - }, - { - "id": 98, - "type": "Reroute", - "pos": [ - 4140, - 1190 - ], - "size": [ - 75, - 26 - ], - "flags": {}, - "order": 20, - "mode": 0, - "inputs": [ - { - "name": "", - "type": "*", - "link": 200, - "label": "" - } - ], - "outputs": [ - { - "name": "", - "type": "LATENT", - "links": [ - 124, - 125 - ], - "slot_index": 0, - "label": "" - } - ], - "properties": { - "showOutputText": false, - "horizontal": false - } - }, - { - "id": 99, - "type": "Reroute", - "pos": [ - 4150, - 1320 - ], - "size": [ - 75, - 26 - ], - "flags": {}, - "order": 23, - "mode": 0, - "inputs": [ - { - "name": "", - "type": "*", - "link": 230, - "label": "", - "slot_index": 0 - } - ], - "outputs": [ - { - "name": "", - "type": "IMAGE", - "links": [ - 126, - 127 - ], - "slot_index": 0, - "label": "" - } - ], - "properties": { - "showOutputText": false, - "horizontal": false - } - }, - { - "id": 77, - "type": "SaveImage", - "pos": [ - 5499.986126893944, - 305.79401864716147 - ], - "size": { - "0": 449.1900329589844, - "1": 608.6851806640625 - }, - "flags": {}, - "order": 31, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 101, - "label": "images" - } - ], - "properties": { - "Node name for S&R": "SaveImage", - "ttNbgOverride": { - "color": "#346434", - "groupcolor": "#8A8" - } - }, - "widgets_values": [ - "ComfyUI" - ], - "color": "#346434" - }, - { - "id": 13, - "type": "TripoSRViewer", - "pos": [ - 4927.457861627501, - 2678.750093342626 - ], - "size": [ - 600, - 500 - ], - "flags": {}, - "order": 30, - "mode": 4, - "inputs": [ - { - "name": "mesh", - "type": "MESH", - "link": 15, - "slot_index": 0, - "label": "mesh" - } - ], - "properties": { - "Node name for S&R": "TripoSRViewer" - }, - "widgets_values": [ - null - ], - "color": "#323", - "bgcolor": "#535" - }, - { - "id": 15, - "type": "TripoSRModelLoader", - "pos": [ - 5545.283121068138, - 3114.459881264704 - ], - "size": { - "0": 588.4208374023438, - "1": 82 - }, - "flags": {}, - "order": 0, - "mode": 4, - "outputs": [ - { - "name": "TRIPOSR_MODEL", - "type": "TRIPOSR_MODEL", - "links": [ - 16 - ], - "shape": 3, - "label": "TRIPOSR_MODEL" - } - ], - "properties": { - "Node name for S&R": "TripoSRModelLoader" - }, - "widgets_values": [ - "3D\\TripoSR.ckpt", - 8192 - ], - "color": "#323", - "bgcolor": "#535" - }, - { - "id": 14, - "type": "TripoSRSampler", - "pos": [ - 4923.212903460762, - 2501.764038641842 - ], - "size": { - "0": 602.5859375, - "1": 122 - }, - "flags": {}, - "order": 26, - "mode": 4, - "inputs": [ - { - "name": "model", - "type": "TRIPOSR_MODEL", - "link": 16, - "label": "model", - "slot_index": 0 - }, - { - "name": "reference_image", - "type": "IMAGE", - "link": 94, - "label": "reference_image", - "slot_index": 1 - }, - { - "name": "reference_mask", - "type": "MASK", - "link": 95, - "label": "reference_mask" - } - ], - "outputs": [ - { - "name": "MESH", - "type": "MESH", - "links": [ - 15 - ], - "shape": 3, - "label": "MESH", - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "TripoSRSampler" - }, - "widgets_values": [ - 256, - 10 - ], - "color": "#323", - "bgcolor": "#535" - }, - { - "id": 78, - "type": "ImageResize+", - "pos": [ - 4772, - 282 - ], - "size": { - "0": 315, - "1": 218 - }, - "flags": {}, - "order": 9, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 102, - "label": "image" - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 103 - ], - "shape": 3, - "label": "IMAGE", - "slot_index": 0 - }, - { - "name": "width", - "type": "INT", - "links": null, - "shape": 3, - "label": "width" - }, - { - "name": "height", - "type": "INT", - "links": null, - "shape": 3, - "label": "height" - } - ], - "properties": { - "Node name for S&R": "ImageResize+", - "ttNbgOverride": { - "color": "#346434", - "groupcolor": "#8A8" - } - }, - "widgets_values": [ - 1024, - 1024, - "nearest", - false, - "always", - 0 - ], - "color": "#346434" - }, - { - "id": 75, - "type": "LoadImage", - "pos": [ - 4434, - 275 - ], - "size": { - "0": 315, - "1": 314 - }, - "flags": {}, - "order": 1, - "mode": 0, - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 102 - ], - "shape": 3, - "label": "IMAGE", - "slot_index": 0 - }, - { - "name": "MASK", - "type": "MASK", - "links": null, - "shape": 3, - "label": "MASK" - } - ], - "properties": { - "Node name for S&R": "LoadImage", - "ttNbgOverride": { - "color": "#346434", - "groupcolor": "#8A8" - } - }, - "widgets_values": [ - "QR Code.png", - "image" - ], - "color": "#346434" - }, - { - "id": 125, - "type": "LLM_api_loader", - "pos": [ - 711, - 1117 - ], - "size": { - "0": 408.4917907714844, - "1": 106 - }, - "flags": {}, - "order": 2, - "mode": 0, - "outputs": [ - { - "name": "model", - "type": "CUSTOM", - "links": [ - 218 - ], - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "LLM_api_loader" - }, - "widgets_values": [ - "glm-4", - "https://open.bigmodel.cn/api/paas/v4/", - "a8335bc54e5ad749b78eb19c0604e620.7bt1wReQu4wPUgBg" - ] - }, - { - "id": 69, - "type": "LayeredDiffusionApply", - "pos": [ - 3301, - 1076 - ], - "size": { - "0": 315, - "1": 82 - }, - "flags": {}, - "order": 18, - "mode": 0, - "inputs": [ - { - "name": "model", - "type": "MODEL", - "link": 224, - "label": "model" - } - ], - "outputs": [ - { - "name": "MODEL", - "type": "MODEL", - "links": [ - 87 - ], - "shape": 3, - "label": "MODEL", - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "LayeredDiffusionApply", - "ttNbgOverride": { - "color": "#346434", - "groupcolor": "#8A8" - } - }, - "widgets_values": [ - "SDXL, Attention Injection", - 1 - ], - "color": "#346434" - }, - { - "id": 22, - "type": "ShowText|pysssss", - "pos": [ - 2454, - 1642 - ], - "size": { - "0": 392.6477966308594, - "1": 78.11640167236328 - }, - "flags": {}, - "order": 16, - "mode": 0, - "inputs": [ - { - "name": "text", - "type": "STRING", - "link": 221, - "widget": { - "name": "text" - }, - "label": "text" - } - ], - "outputs": [ - { - "name": "STRING", - "type": "STRING", - "links": [ - 229 - ], - "shape": 6, - "label": "STRING", - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "ShowText|pysssss", - "ttNbgOverride": { - "color": "#346434", - "groupcolor": "#8A8" - } - }, - "widgets_values": [ - "", - "ugly, deformed, noisy, low poly, blurry, painting" - ], - "color": "#346434" - }, - { - "id": 130, - "type": "Efficient Loader", - "pos": [ - 2917, - 1253 - ], - "size": { - "0": 371.9156799316406, - "1": 462.7869567871094 - }, - "flags": {}, - "order": 17, - "mode": 0, - "inputs": [ - { - "name": "lora_stack", - "type": "LORA_STACK", - "link": 222 - }, - { - "name": "cnet_stack", - "type": "CONTROL_NET_STACK", - "link": null - }, - { - "name": "positive", - "type": 0, - "link": 223, - "widget": { - "name": "positive" - } - }, - { - "name": "negative", - "type": "STRING", - "link": 229, - "widget": { - "name": "negative" - } - } - ], - "outputs": [ - { - "name": "MODEL", - "type": "MODEL", - "links": [ - 224 - ], - "shape": 3 - }, - { - "name": "CONDITIONING+", - "type": "CONDITIONING", - "links": [ - 225 - ], - "shape": 3 - }, - { - "name": "CONDITIONING-", - "type": "CONDITIONING", - "links": [ - 226 - ], - "shape": 3 - }, - { - "name": "LATENT", - "type": "LATENT", - "links": [ - 227 - ], - "shape": 3 - }, - { - "name": "VAE", - "type": "VAE", - "links": [ - 228 - ], - "shape": 3 - }, - { - "name": "CLIP", - "type": "CLIP", - "links": null, - "shape": 3 - }, - { - "name": "DEPENDENCIES", - "type": "DEPENDENCIES", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Efficient Loader" - }, - "widgets_values": [ - "sd_xl_base_1.0.safetensors", - "Baked VAE", - -1, - "None", - 1, - 1, - "CLIP_POSITIVE", - "", - "none", - "comfy", - 1024, - 1024, - 1 - ], - "color": "#223333", - "bgcolor": "#553355", - "shape": 1 - }, - { - "id": 32, - "type": "ShowText|pysssss", - "pos": [ - 1960, - 979 - ], - "size": { - "0": 408.28466796875, - "1": 161.98403930664062 - }, - "flags": {}, - "order": 13, - "mode": 0, - "inputs": [ - { - "name": "text", - "type": "STRING", - "link": 114, - "widget": { - "name": "text" - }, - "label": "text" - } - ], - "outputs": [ - { - "name": "STRING", - "type": "STRING", - "links": [ - 219 - ], - "shape": 6, - "label": "STRING", - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "ShowText|pysssss", - "ttNbgOverride": { - "color": "#346434", - "groupcolor": "#8A8" - } - }, - "widgets_values": [ - "", - "The vast river eastward flows, waves scouring away, eternally masking the traces of accomplished characters in its restless movement." - ], - "color": "#346434" - }, - { - "id": 124, - "type": "LLM", - "pos": [ - 720, - 1282 - ], - "size": { - "0": 409.18035888671875, - "1": 505.53741455078125 - }, - "flags": {}, - "order": 10, - "mode": 0, - "inputs": [ - { - "name": "model", - "type": "CUSTOM", - "link": 218, - "slot_index": 0 - }, - { - "name": "images", - "type": "IMAGE", - "link": null - }, - { - "name": "system_prompt_input", - "type": "STRING", - "link": null, - "widget": { - "name": "system_prompt_input" - } - }, - { - "name": "tools", - "type": "STRING", - "link": null, - "widget": { - "name": "tools" - } - }, - { - "name": "file_content", - "type": "STRING", - "link": null, - "widget": { - "name": "file_content" - } - }, - { - "name": "user_prompt", - "type": 0, - "link": 214, - "widget": { - "name": "user_prompt" - } - } - ], - "outputs": [ - { - "name": "assistant_response", - "type": "STRING", - "links": [ - 215 - ], - "shape": 3 - }, - { - "name": "history", - "type": "STRING", - "links": null, - "shape": 3, - "slot_index": 1 - }, - { - "name": "tool", - "type": "STRING", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "LLM" - }, - "widgets_values": [ - "你是一个懂宋词分析的古诗词专家,我会给你一句宋词。请你分析古诗中的意象(带有古代中国特色的形象)并给出意象的动态(action)并表述他在空间中前后关系不要分开列意象、动态和位置,组成一个短句(如什么(意象)在什么位置怎么动)。注意只需要英文(ENGLISH),请控制输出长度在256token以内。不要回复额外内容,不要回复额外内容,不需要回复诗歌解析。只需要英文(ENGLISH)。只需要英文(ENGLISH)。不要出现人\n", - "你好", - 0.7, - "disable", - "disable", - "disable", - "disable", - 2048, - "", - "", - "", - "" - ], - "color": "#346434" - }, - { - "id": 33, - "type": "Simple String", - "pos": [ - 161, - 1123 - ], - "size": { - "0": 315, - "1": 58 - }, - "flags": {}, - "order": 3, - "mode": 0, - "outputs": [ - { - "name": "STRING", - "type": "STRING", - "links": [ - 113, - 214 - ], - "shape": 3, - "label": "STRING", - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "Simple String", - "ttNbgOverride": { - "color": "#346434", - "groupcolor": "#8A8" - } - }, - "widgets_values": [ - "大江东去,浪淘尽,千古风流人物。" - ], - "color": "#346434" - }, - { - "id": 131, - "type": "Reroute", - "pos": [ - 4045, - 1320.4913906021707 - ], - "size": [ - 75, - 26 - ], - "flags": {}, - "order": 22, - "mode": 0, - "inputs": [ - { - "name": "", - "type": "*", - "link": 231, - "slot_index": 0 - } - ], - "outputs": [ - { - "name": "", - "type": "IMAGE", - "links": [ - 230 - ] - } - ], - "properties": { - "showOutputText": false, - "horizontal": false - } - }, - { - "id": 121, - "type": "LoRA Stacker", - "pos": [ - 2914, - 788 - ], - "size": { - "0": 315, - "1": 274 - }, - "flags": {}, - "order": 4, - "mode": 0, - "inputs": [ - { - "name": "lora_stack", - "type": "LORA_STACK", - "link": null - } - ], - "outputs": [ - { - "name": "LORA_STACK", - "type": "LORA_STACK", - "links": [ - 222 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "LoRA Stacker" - }, - "widgets_values": [ - "simple", - 4, - "formv2-zeng-xl\\formV21024-xl-000006.safetensors", - 0, - 1, - 1, - "Hyper-SD\\Hyper-SDXL-8steps-CFG-lora.safetensors", - 0.5, - 1, - 1, - "Yutong_Zhu\\taihu1-000008.safetensors", - 0.5, - 1, - 1, - "X潮玩.safetensors", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1, - "None", - 1, - 1, - 1 - ], - "color": "#222233", - "bgcolor": "#333355", - "shape": 1 - }, - { - "id": 10, - "type": "KSampler (Efficient)", - "pos": [ - 3628, - 1246 - ], - "size": { - "0": 231.2859649658203, - "1": 564.1793212890625 - }, - "flags": {}, - "order": 19, - "mode": 0, - "inputs": [ - { - "name": "model", - "type": "MODEL", - "link": 87, - "label": "model", - "slot_index": 0 - }, - { - "name": "positive", - "type": "CONDITIONING", - "link": 225, - "label": "positive" - }, - { - "name": "negative", - "type": "CONDITIONING", - "link": 226, - "label": "negative" - }, - { - "name": "latent_image", - "type": "LATENT", - "link": 227, - "label": "latent_image" - }, - { - "name": "optional_vae", - "type": "VAE", - "link": 228, - "label": "optional_vae" - }, - { - "name": "script", - "type": "SCRIPT", - "link": null, - "label": "script", - "slot_index": 5 - } - ], - "outputs": [ - { - "name": "MODEL", - "type": "MODEL", - "links": [], - "shape": 3, - "label": "MODEL", - "slot_index": 0 - }, - { - "name": "CONDITIONING+", - "type": "CONDITIONING", - "links": [], - "shape": 3, - "label": "CONDITIONING+", - "slot_index": 1 - }, - { - "name": "CONDITIONING-", - "type": "CONDITIONING", - "links": [], - "shape": 3, - "label": "CONDITIONING-", - "slot_index": 2 - }, - { - "name": "LATENT", - "type": "LATENT", - "links": [ - 200 - ], - "shape": 3, - "label": "LATENT", - "slot_index": 3 - }, - { - "name": "VAE", - "type": "VAE", - "links": [], - "shape": 3, - "label": "VAE", - "slot_index": 4 - }, - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 202, - 231 - ], - "shape": 3, - "label": "IMAGE", - "slot_index": 5 - } - ], - "properties": { - "Node name for S&R": "KSampler (Efficient)" - }, - "widgets_values": [ - 276358496079565, - null, - 15, - 8, - "ddim", - "normal", - 1, - "auto", - "true" - ], - "color": "#332222", - "bgcolor": "#665533", - "shape": 1 - }, - { - "id": 94, - "type": "SaveImage", - "pos": [ - 4351, - 1614 - ], - "size": { - "0": 351.2366943359375, - "1": 270 - }, - "flags": {}, - "order": 28, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 122, - "label": "images" - } - ], - "properties": { - "Node name for S&R": "SaveImage", - "ttNbgOverride": { - "color": "#346434", - "groupcolor": "#8A8" - } - }, - "widgets_values": [ - "ComfyUI" - ], - "color": "#346434" - }, - { - "id": 110, - "type": "SaveImage", - "pos": [ - 3949, - 1529 - ], - "size": { - "0": 326.15435791015625, - "1": 270 - }, - "flags": {}, - "order": 21, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 202, - "label": "images" - } - ], - "properties": { - "Node name for S&R": "SaveImage" - }, - "widgets_values": [ - "ComfyUI" - ] - }, - { - "id": 129, - "type": "Note", - "pos": [ - 5572, - 1256 - ], - "size": { - "0": 210, - "1": 58 - }, - "flags": {}, - "order": 5, - "mode": 0, - "properties": { - "text": "" - }, - "widgets_values": [ - "ctrl+B bypass" - ], - "color": "#c09430" - }, - { - "id": 132, - "type": "LoadImage", - "pos": [ - 4430, - 707 - ], - "size": { - "0": 315, - "1": 314 - }, - "flags": {}, - "order": 6, - "mode": 0, - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [], - "shape": 3, - "slot_index": 0 - }, - { - "name": "MASK", - "type": "MASK", - "links": [], - "shape": 3, - "slot_index": 1 - } - ], - "properties": { - "Node name for S&R": "LoadImage" - }, - "widgets_values": [ - "marble (1).png", - "image" - ] - }, - { - "id": 21, - "type": "ShowText|pysssss", - "pos": [ - 2463, - 1115 - ], - "size": { - "0": 368.0568542480469, - "1": 455.1419677734375 - }, - "flags": {}, - "order": 15, - "mode": 0, - "inputs": [ - { - "name": "text", - "type": "STRING", - "link": 220, - "widget": { - "name": "text" - }, - "label": "text" - } - ], - "outputs": [ - { - "name": "STRING", - "type": "STRING", - "links": [ - 223 - ], - "shape": 6, - "label": "STRING", - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "ShowText|pysssss", - "ttNbgOverride": { - "color": "#346434", - "groupcolor": "#8A8" - } - }, - "widgets_values": [ - "", - "A minimalistic 3D sculpture focusing on abstract forms that represent The vast river eastward flows, waves scouring away, eternally masking the traces of accomplished characters in its restless movement. in Path leading through golden fields, reflective mood. Created Using: abstract art style, minimalistic design, sleek lines, subdued color palette, themes of transience and recurrence, focus on gentle fall, contemplative mood" - ], - "color": "#346434" - }, - { - "id": 85, - "type": "ShowText|pysssss", - "pos": [ - 1198, - 1286 - ], - "size": { - "0": 349.2051086425781, - "1": 495.9770202636719 - }, - "flags": {}, - "order": 12, - "mode": 0, - "inputs": [ - { - "name": "text", - "type": "STRING", - "link": 215, - "widget": { - "name": "text" - }, - "label": "text" - } - ], - "outputs": [ - { - "name": "STRING", - "type": "STRING", - "links": [ - 114 - ], - "shape": 6, - "label": "STRING", - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "ShowText|pysssss", - "ttNbgOverride": { - "color": "#346434", - "groupcolor": "#8A8" - } - }, - "widgets_values": [ - "", - "The vast river eastward flows, waves scouring away, eternally masking the traces of accomplished characters in its restless movement." - ], - "color": "#346434" - }, - { - "id": 72, - "type": "LayeredDiffusionDecode", - "pos": [ - 4305, - 1119 - ], - "size": { - "0": 315, - "1": 102 - }, - "flags": {}, - "order": 24, - "mode": 0, - "inputs": [ - { - "name": "samples", - "type": "LATENT", - "link": 124, - "label": "samples" - }, - { - "name": "images", - "type": "IMAGE", - "link": 126, - "label": "images" - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 94, - 98 - ], - "shape": 3, - "label": "IMAGE", - "slot_index": 0 - }, - { - "name": "MASK", - "type": "MASK", - "links": [ - 95, - 99 - ], - "shape": 3, - "label": "MASK", - "slot_index": 1 - } - ], - "properties": { - "Node name for S&R": "LayeredDiffusionDecode", - "ttNbgOverride": { - "color": "#346434", - "groupcolor": "#8A8" - } - }, - "widgets_values": [ - "SDXL", - 16 - ], - "color": "#346434" - }, - { - "id": 70, - "type": "LayeredDiffusionDecodeRGBA", - "pos": [ - 4332, - 1429 - ], - "size": { - "0": 315, - "1": 102 - }, - "flags": {}, - "order": 25, - "mode": 0, - "inputs": [ - { - "name": "samples", - "type": "LATENT", - "link": 125, - "label": "samples" - }, - { - "name": "images", - "type": "IMAGE", - "link": 127, - "label": "images", - "slot_index": 1 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 122, - 240 - ], - "shape": 3, - "label": "IMAGE", - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "LayeredDiffusionDecodeRGBA", - "ttNbgOverride": { - "color": "#346434", - "groupcolor": "#8A8" - } - }, - "widgets_values": [ - "SDXL", - 16 - ], - "color": "#346434" - }, - { - "id": 133, - "type": "ImageRemoveBackground+", - "pos": [ - 5066, - 815 - ], - "size": { - "0": 321.211669921875, - "1": 49.238773345947266 - }, - "flags": {}, - "order": 29, - "mode": 0, - "inputs": [ - { - "name": "rembg_session", - "type": "REMBG_SESSION", - "link": 232, - "slot_index": 0 - }, - { - "name": "image", - "type": "IMAGE", - "link": 240 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 236, - 237 - ], - "shape": 3, - "slot_index": 0 - }, - { - "name": "MASK", - "type": "MASK", - "links": [], - "shape": 3, - "slot_index": 1 - } - ], - "properties": { - "Node name for S&R": "ImageRemoveBackground+" - } - }, - { - "id": 120, - "type": "TripoGLBViewer_ZHO", - "pos": [ - 4973, - 1633 - ], - "size": [ - 600, - 500 - ], - "flags": {}, - "order": 34, - "mode": 0, - "inputs": [ - { - "name": "mesh", - "type": "MESH_GLB", - "link": 206, - "label": "mesh" - } - ], - "properties": { - "Node name for S&R": "TripoGLBViewer_ZHO" - }, - "widgets_values": [ - null - ] - }, - { - "id": 119, - "type": "TripoAPI_Zho", - "pos": [ - 5028, - 1382 - ], - "size": [ - 406.2181091308594, - 192.6945037841797 - ], - "flags": {}, - "order": 32, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 236, - "label": "image" - }, - { - "name": "prompt", - "type": "STRING", - "link": null, - "widget": { - "name": "prompt" - } - } - ], - "outputs": [ - { - "name": "MESH_GLB", - "type": "MESH_GLB", - "links": [ - 206 - ], - "shape": 3, - "slot_index": 0, - "label": "MESH_GLB" - }, - { - "name": "TASK_ID", - "type": "TASK_ID", - "links": null, - "shape": 3, - "slot_index": 1, - "label": "TASK_ID" - } - ], - "properties": { - "Node name for S&R": "TripoAPI_Zho" - }, - "widgets_values": [ - "image-to-3d", - "" - ] - }, - { - "id": 135, - "type": "SaveImage", - "pos": [ - 5079, - 1054 - ], - "size": [ - 318.06160489014565, - 270 - ], - "flags": {}, - "order": 33, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 237 - } - ], - "properties": { - "Node name for S&R": "SaveImage" - }, - "widgets_values": [ - "ComfyUI" - ] - }, - { - "id": 134, - "type": "RemBGSession+", - "pos": [ - 5058, - 661 - ], - "size": { - "0": 315, - "1": 82 - }, - "flags": {}, - "order": 7, - "mode": 0, - "outputs": [ - { - "name": "REMBG_SESSION", - "type": "REMBG_SESSION", - "links": [ - 232 - ], - "shape": 3, - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "RemBGSession+" - }, - "widgets_values": [ - "isnet-general-use: general purpose", - "CUDA" - ] - }, - { - "id": 137, - "type": "ImageRemoveBackground+", - "pos": [ - 5566.463795443904, - 1022.7755093691102 - ], - "size": { - "0": 241.79998779296875, - "1": 46 - }, - "flags": {}, - "order": 11, - "mode": 0, - "inputs": [ - { - "name": "rembg_session", - "type": "REMBG_SESSION", - "link": 241, - "slot_index": 0 - }, - { - "name": "image", - "type": "IMAGE", - "link": null - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": null, - "shape": 3 - }, - { - "name": "MASK", - "type": "MASK", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "ImageRemoveBackground+" - } - }, - { - "id": 138, - "type": "RemBGSession+", - "pos": [ - 5464, - 1093 - ], - "size": { - "0": 315, - "1": 82 - }, - "flags": {}, - "order": 8, - "mode": 0, - "outputs": [ - { - "name": "REMBG_SESSION", - "type": "REMBG_SESSION", - "links": [ - 241 - ], - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "RemBGSession+" - }, - "widgets_values": [ - "u2net: general purpose", - "CPU" - ] - }, - { - "id": 128, - "type": "SDXLPromptStyler", - "pos": [ - 2453, - 802 - ], - "size": { - "0": 400, - "1": 242 - }, - "flags": {}, - "order": 14, - "mode": 0, - "inputs": [ - { - "name": "text_positive", - "type": 0, - "link": 219, - "widget": { - "name": "text_positive" - } - } - ], - "outputs": [ - { - "name": "text_positive", - "type": "STRING", - "links": [ - 220 - ], - "shape": 3 - }, - { - "name": "text_negative", - "type": "STRING", - "links": [ - 221 - ], - "shape": 3 - } - ], - "title": "SDXLPromptStyler", - "properties": { - "Node name for S&R": "SDXLPromptStyler" - }, - "widgets_values": [ - "", - "", - "南乡子", - false, - true, - true - ], - "color": "#346434" - } + "10": { + "inputs": { + "seed": 276358496079565, + "steps": 15, + "cfg": 8, + "sampler_name": "ddim", + "scheduler": "normal", + "denoise": 1, + "preview_method": "auto", + "vae_decode": "true", + "model": [ + "69", + 0 ], - "links": [ - [ - 15, - 14, - 0, - 13, - 0, - "MESH" - ], - [ - 16, - 15, - 0, - 14, - 0, - "TRIPOSR_MODEL" - ], - [ - 87, - 69, - 0, - 10, - 0, - "MODEL" - ], - [ - 94, - 72, - 0, - 14, - 1, - "IMAGE" - ], - [ - 95, - 72, - 1, - 14, - 2, - "MASK" - ], - [ - 98, - 72, - 0, - 74, - 1, - "IMAGE" - ], - [ - 99, - 72, - 1, - 74, - 2, - "MASK" - ], - [ - 101, - 74, - 0, - 77, - 0, - "IMAGE" - ], - [ - 102, - 75, - 0, - 78, - 0, - "IMAGE" - ], - [ - 103, - 78, - 0, - 74, - 0, - "IMAGE" - ], - [ - 114, - 85, - 0, - 32, - 0, - "STRING" - ], - [ - 122, - 70, - 0, - 94, - 0, - "IMAGE" - ], - [ - 124, - 98, - 0, - 72, - 0, - "LATENT" - ], - [ - 125, - 98, - 0, - 70, - 0, - "LATENT" - ], - [ - 126, - 99, - 0, - 72, - 1, - "IMAGE" - ], - [ - 127, - 99, - 0, - 70, - 1, - "IMAGE" - ], - [ - 200, - 10, - 3, - 98, - 0, - "*" - ], - [ - 202, - 10, - 5, - 110, - 0, - "IMAGE" - ], - [ - 206, - 119, - 0, - 120, - 0, - "MESH_GLB" - ], - [ - 214, - 33, - 0, - 124, - 5, - "STRING" - ], - [ - 215, - 124, - 0, - 85, - 0, - "STRING" - ], - [ - 218, - 125, - 0, - 124, - 0, - "CUSTOM" - ], - [ - 219, - 32, - 0, - 128, - 0, - "STRING" - ], - [ - 220, - 128, - 0, - 21, - 0, - "STRING" - ], - [ - 221, - 128, - 1, - 22, - 0, - "STRING" - ], - [ - 222, - 121, - 0, - 130, - 0, - "LORA_STACK" - ], - [ - 223, - 21, - 0, - 130, - 2, - "STRING" - ], - [ - 224, - 130, - 0, - 69, - 0, - "MODEL" - ], - [ - 225, - 130, - 1, - 10, - 1, - "CONDITIONING" - ], - [ - 226, - 130, - 2, - 10, - 2, - "CONDITIONING" - ], - [ - 227, - 130, - 3, - 10, - 3, - "LATENT" - ], - [ - 228, - 130, - 4, - 10, - 4, - "VAE" - ], - [ - 229, - 22, - 0, - 130, - 3, - "STRING" - ], - [ - 230, - 131, - 0, - 99, - 0, - "*" - ], - [ - 231, - 10, - 5, - 131, - 0, - "*" - ], - [ - 232, - 134, - 0, - 133, - 0, - "REMBG_SESSION" - ], - [ - 236, - 133, - 0, - 119, - 0, - "IMAGE" - ], - [ - 237, - 133, - 0, - 135, - 0, - "IMAGE" - ], - [ - 240, - 70, - 0, - 133, - 1, - "IMAGE" - ], - [ - 241, - 138, - 0, - 137, - 0, - "REMBG_SESSION" - ] + "positive": [ + "130", + 1 ], - "groups": [ - { - "title": "Group", - "bounding": [ - 6564, - 89, - 2563, - 1976 - ], - "color": "#444", - "font_size": 24, - "locked": false - }, - { - "title": "文字处理03-词牌名预设style", - "bounding": [ - 2444, - 695, - 432, - 1112 - ], - "color": "#3f789e", - "font_size": 24, - "locked": false - }, - { - "title": "文字处理2-大语言提取", - "bounding": [ - 1906, - 693, - 504, - 2051 - ], - "color": "#3f789e", - "font_size": 24, - "locked": false - }, - { - "title": "文字处理1-文本输入", - "bounding": [ - 128, - 707, - 362, - 1170 - ], - "color": "#3f789e", - "font_size": 24, - "locked": false - }, - { - "title": "生图节点", - "bounding": [ - 2899, - 717, - 1400, - 1199 - ], - "color": "#3f789e", - "font_size": 24, - "locked": false - }, - { - "title": "输出结果1-换底高清图", - "bounding": [ - 4432, - 173, - 1605, - 794 - ], - "color": "#3f789e", - "font_size": 24, - "locked": false - }, - { - "title": "输出结果2- lowpoly雕塑", - "bounding": [ - 4850, - 2222, - 1660, - 1107 - ], - "color": "#3f789e", - "font_size": 24, - "locked": false - }, - { - "title": "llm+file", - "bounding": [ - 634, - 723, - 1171, - 1155 - ], - "color": "#3f789e", - "font_size": 24, - "locked": false - } + "negative": [ + "130", + 2 ], - "config": {}, - "extra": { - "workspace_info": { - "id": "tEi1FShW_BMjCcsXwVHAx", - "name": "ZHU-level3-test 2 2" - }, - "ds": { - "scale": 0.28966437973668785, - "offset": { - "0": -2711.4283390778987, - "1": -93.85904135919621 - } - } - }, - "version": 0.4, - "widget_idx_map": { - "10": { - "seed": 0, - "sampler_name": 4, - "scheduler": 5 - } - }, - "seed_widgets": { - "10": 0 - } - } + "latent_image": [ + "130", + 3 + ], + "optional_vae": [ + "130", + 4 + ] + }, + "class_type": "KSampler (Efficient)" + }, + "21": { + "inputs": { + "text": [ + "128", + 0 + ] + }, + "class_type": "ShowText|pysssss" + }, + "22": { + "inputs": { + "text": [ + "128", + 1 + ] + }, + "class_type": "ShowText|pysssss" + }, + "32": { + "inputs": { + "text": [ + "85", + 0 + ] + }, + "class_type": "ShowText|pysssss" + }, + "33": { + "inputs": { + "string": "大江东去,浪淘尽,千古风流人物。" + }, + "class_type": "Simple String" + }, + "69": { + "inputs": { + "config": "SDXL, Attention Injection", + "weight": 1, + "model": [ + "130", + 0 + ] + }, + "class_type": "LayeredDiffusionApply" + }, + "72": { + "inputs": { + "sd_version": "SDXL", + "sub_batch_size": 16, + "samples": [ + "10", + 3 + ], + "images": [ + "10", + 5 + ] + }, + "class_type": "LayeredDiffusionDecode" + }, + "74": { + "inputs": { + "x": 0, + "y": 25, + "resize_source": false, + "destination": [ + "78", + 0 + ], + "source": [ + "72", + 0 + ], + "mask": [ + "72", + 1 + ] + }, + "class_type": "ImageCompositeMasked" + }, + "75": { + "inputs": { + "image": "QR Code.png", + "upload": "image" + }, + "class_type": "LoadImage" + }, + "77": { + "inputs": { + "filename_prefix": "ComfyUI", + "images": [ + "74", + 0 + ] + }, + "class_type": "SaveImage" + }, + "78": { + "inputs": { + "width": 1024, + "height": 1024, + "interpolation": "nearest", + "keep_proportion": false, + "condition": "always", + "multiple_of": 0, + "image": [ + "75", + 0 + ] + }, + "class_type": "ImageResize+" + }, + "85": { + "inputs": { + "text": [ + "124", + 0 + ] + }, + "class_type": "ShowText|pysssss" + }, + "110": { + "inputs": { + "filename_prefix": "ComfyUI", + "images": [ + "10", + 5 + ] + }, + "class_type": "SaveImage" + }, + "121": { + "inputs": { + "input_mode": "simple", + "lora_count": 4, + "lora_name_1": "formv2-zeng-xl\\formV21024-xl-000006.safetensors", + "lora_wt_1": 0, + "model_str_1": 1, + "clip_str_1": 1, + "lora_name_2": "Hyper-SD\\Hyper-SDXL-8steps-CFG-lora.safetensors", + "lora_wt_2": 0.5, + "model_str_2": 1, + "clip_str_2": 1, + "lora_name_3": "Yutong_Zhu\\taihu1-000008.safetensors", + "lora_wt_3": 0.5, + "model_str_3": 1, + "clip_str_3": 1, + "lora_name_4": "X潮玩.safetensors", + "lora_wt_4": 1, + "model_str_4": 1, + "clip_str_4": 1, + "lora_name_5": "None", + "lora_wt_5": 1, + "model_str_5": 1, + "clip_str_5": 1, + "lora_name_6": "None", + "lora_wt_6": 1, + "model_str_6": 1, + "clip_str_6": 1, + "lora_name_7": "None", + "lora_wt_7": 1, + "model_str_7": 1, + "clip_str_7": 1, + "lora_name_8": "None", + "lora_wt_8": 1, + "model_str_8": 1, + "clip_str_8": 1, + "lora_name_9": "None", + "lora_wt_9": 1, + "model_str_9": 1, + "clip_str_9": 1, + "lora_name_10": "None", + "lora_wt_10": 1, + "model_str_10": 1, + "clip_str_10": 1, + "lora_name_11": "None", + "lora_wt_11": 1, + "model_str_11": 1, + "clip_str_11": 1, + "lora_name_12": "None", + "lora_wt_12": 1, + "model_str_12": 1, + "clip_str_12": 1, + "lora_name_13": "None", + "lora_wt_13": 1, + "model_str_13": 1, + "clip_str_13": 1, + "lora_name_14": "None", + "lora_wt_14": 1, + "model_str_14": 1, + "clip_str_14": 1, + "lora_name_15": "None", + "lora_wt_15": 1, + "model_str_15": 1, + "clip_str_15": 1, + "lora_name_16": "None", + "lora_wt_16": 1, + "model_str_16": 1, + "clip_str_16": 1, + "lora_name_17": "None", + "lora_wt_17": 1, + "model_str_17": 1, + "clip_str_17": 1, + "lora_name_18": "None", + "lora_wt_18": 1, + "model_str_18": 1, + "clip_str_18": 1, + "lora_name_19": "None", + "lora_wt_19": 1, + "model_str_19": 1, + "clip_str_19": 1, + "lora_name_20": "None", + "lora_wt_20": 1, + "model_str_20": 1, + "clip_str_20": 1, + "lora_name_21": "None", + "lora_wt_21": 1, + "model_str_21": 1, + "clip_str_21": 1, + "lora_name_22": "None", + "lora_wt_22": 1, + "model_str_22": 1, + "clip_str_22": 1, + "lora_name_23": "None", + "lora_wt_23": 1, + "model_str_23": 1, + "clip_str_23": 1, + "lora_name_24": "None", + "lora_wt_24": 1, + "model_str_24": 1, + "clip_str_24": 1, + "lora_name_25": "None", + "lora_wt_25": 1, + "model_str_25": 1, + "clip_str_25": 1, + "lora_name_26": "None", + "lora_wt_26": 1, + "model_str_26": 1, + "clip_str_26": 1, + "lora_name_27": "None", + "lora_wt_27": 1, + "model_str_27": 1, + "clip_str_27": 1, + "lora_name_28": "None", + "lora_wt_28": 1, + "model_str_28": 1, + "clip_str_28": 1, + "lora_name_29": "None", + "lora_wt_29": 1, + "model_str_29": 1, + "clip_str_29": 1, + "lora_name_30": "None", + "lora_wt_30": 1, + "model_str_30": 1, + "clip_str_30": 1, + "lora_name_31": "None", + "lora_wt_31": 1, + "model_str_31": 1, + "clip_str_31": 1, + "lora_name_32": "None", + "lora_wt_32": 1, + "model_str_32": 1, + "clip_str_32": 1, + "lora_name_33": "None", + "lora_wt_33": 1, + "model_str_33": 1, + "clip_str_33": 1, + "lora_name_34": "None", + "lora_wt_34": 1, + "model_str_34": 1, + "clip_str_34": 1, + "lora_name_35": "None", + "lora_wt_35": 1, + "model_str_35": 1, + "clip_str_35": 1, + "lora_name_36": "None", + "lora_wt_36": 1, + "model_str_36": 1, + "clip_str_36": 1, + "lora_name_37": "None", + "lora_wt_37": 1, + "model_str_37": 1, + "clip_str_37": 1, + "lora_name_38": "None", + "lora_wt_38": 1, + "model_str_38": 1, + "clip_str_38": 1, + "lora_name_39": "None", + "lora_wt_39": 1, + "model_str_39": 1, + "clip_str_39": 1, + "lora_name_40": "None", + "lora_wt_40": 1, + "model_str_40": 1, + "clip_str_40": 1, + "lora_name_41": "None", + "lora_wt_41": 1, + "model_str_41": 1, + "clip_str_41": 1, + "lora_name_42": "None", + "lora_wt_42": 1, + "model_str_42": 1, + "clip_str_42": 1, + "lora_name_43": "None", + "lora_wt_43": 1, + "model_str_43": 1, + "clip_str_43": 1, + "lora_name_44": "None", + "lora_wt_44": 1, + "model_str_44": 1, + "clip_str_44": 1, + "lora_name_45": "None", + "lora_wt_45": 1, + "model_str_45": 1, + "clip_str_45": 1, + "lora_name_46": "None", + "lora_wt_46": 1, + "model_str_46": 1, + "clip_str_46": 1, + "lora_name_47": "None", + "lora_wt_47": 1, + "model_str_47": 1, + "clip_str_47": 1, + "lora_name_48": "None", + "lora_wt_48": 1, + "model_str_48": 1, + "clip_str_48": 1, + "lora_name_49": "None", + "lora_wt_49": 1, + "model_str_49": 1, + "clip_str_49": 1 + }, + "class_type": "LoRA Stacker" + }, + "124": { + "inputs": { + "system_prompt": "你是一个懂宋词分析的古诗词专家,我会给你一句宋词。请你分析古诗中的意象(带有古代中国特色的形象)并给出意象的动态(action)并表述他在空间中前后关系不要分开列意象、动态和位置,组成一个短句(如什么(意象)在什么位置怎么动)。注意只需要英文(ENGLISH),请控制输出长度在256token以内。不要回复额外内容,不要回复额外内容,不需要回复诗歌解析。只需要英文(ENGLISH)。只需要英文(ENGLISH)。不要出现人\n", + "user_prompt": [ + "33", + 0 + ], + "temperature": 0.7, + "is_memory": "disable", + "is_tools_in_sys_prompt": "disable", + "is_locked": "disable", + "main_brain": "disable", + "max_length": 2048, + "imgbb_api_key": "", + "model": [ + "125", + 0 + ] + }, + "class_type": "LLM" + }, + "125": { + "inputs": { + "model_name": "glm-4", + "base_url": "https://open.bigmodel.cn/api/paas/v4/", + "api_key": "a8335bc54e5ad749b78eb19c0604e620.7bt1wReQu4wPUgBg" + }, + "class_type": "LLM_api_loader" + }, + "128": { + "inputs": { + "text_positive": [ + "32", + 0 + ], + "text_negative": "", + "style": "南乡子", + "log_prompt": false, + "style_positive": true, + "style_negative": true + }, + "class_type": "SDXLPromptStyler" + }, + "130": { + "inputs": { + "ckpt_name": "sd_xl_base_1.0.safetensors", + "vae_name": "Baked VAE", + "clip_skip": -1, + "lora_name": "None", + "lora_model_strength": 1, + "lora_clip_strength": 1, + "positive": [ + "21", + 0 + ], + "negative": [ + "22", + 0 + ], + "token_normalization": "none", + "weight_interpretation": "comfy", + "empty_latent_width": 1024, + "empty_latent_height": 1024, + "batch_size": 1, + "lora_stack": [ + "121", + 0 + ] + }, + "class_type": "Efficient Loader" + }, + "132": { + "inputs": { + "image": "marble (1).png", + "upload": "image" + }, + "class_type": "LoadImage" + }, + "137": { + "inputs": { + "rembg_session": [ + "138", + 0 + ] + }, + "class_type": "ImageRemoveBackground+" + }, + "138": { + "inputs": { + "model": "u2net: general purpose", + "providers": "CPU" + }, + "class_type": "RemBGSession+" } } const txt2imgAPIformatExtraData = {