Files
VrchStudio-comfyui-web-viewer/example_workflows/example_websocket_nodes_001_basic.json

1529 lines
27 KiB
JSON

{
"id": "80416f5c-0a89-47fe-ad16-2aa76cff5a8b",
"revision": 0,
"last_node_id": 75,
"last_link_id": 85,
"nodes": [
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
-1.3937621116638184,
263.7741394042969
],
"size": [
425.27801513671875,
180.6060791015625
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 5
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
6
]
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"text, watermark"
]
},
{
"id": 26,
"type": "CLIPTextEncode",
"pos": [
4.762545108795166,
1083.6009521484375
],
"size": [
425.27801513671875,
180.6060791015625
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 24
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
27
]
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"text, watermark"
]
},
{
"id": 27,
"type": "CheckpointLoaderSimple",
"pos": [
-385.2374572753906,
1163.6016845703125
],
"size": [
315,
98
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"slot_index": 0,
"links": [
25
]
},
{
"name": "CLIP",
"type": "CLIP",
"slot_index": 1,
"links": [
24,
31
]
},
{
"name": "VAE",
"type": "VAE",
"slot_index": 2,
"links": [
30
]
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"sdxl/sd_xl_turbo_1.0_fp16.safetensors"
]
},
{
"id": 28,
"type": "KSampler",
"pos": [
454.7625427246094,
873.6008911132812
],
"size": [
315,
262
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 25
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 26
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 27
},
{
"name": "latent_image",
"type": "LATENT",
"link": 28
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"slot_index": 0,
"links": [
29
]
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
741612532863749,
"randomize",
1,
1,
"euler",
"normal",
1
]
},
{
"id": 30,
"type": "CLIPTextEncode",
"pos": [
4.762545108795166,
873.6008911132812
],
"size": [
422.84503173828125,
164.31304931640625
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 31
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
26
]
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"black cat"
]
},
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
-391.3937072753906,
353.77398681640625
],
"size": [
315,
98
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"slot_index": 0,
"links": [
1
]
},
{
"name": "CLIP",
"type": "CLIP",
"slot_index": 1,
"links": [
3,
5
]
},
{
"name": "VAE",
"type": "VAE",
"slot_index": 2,
"links": [
8
]
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"sdxl/sd_xl_turbo_1.0_fp16.safetensors"
]
},
{
"id": 3,
"type": "KSampler",
"pos": [
448.6063232421875,
63.774192810058594
],
"size": [
315,
262
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 1
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 4
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 6
},
{
"name": "latent_image",
"type": "LATENT",
"link": 2
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"slot_index": 0,
"links": [
7
]
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
384960442391742,
"randomize",
1,
1,
"euler",
"normal",
1
]
},
{
"id": 31,
"type": "EmptyLatentImage",
"pos": [
64.76255798339844,
1303.6016845703125
],
"size": [
315,
106
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"slot_index": 0,
"links": [
28
]
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
512,
512,
1
]
},
{
"id": 29,
"type": "VAEDecode",
"pos": [
810.0703125,
873.59521484375
],
"size": [
210,
46
],
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 29
},
{
"name": "vae",
"type": "VAE",
"link": 30
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
83
]
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 59,
"type": "Textbox",
"pos": [
-337.01239013671875,
-582.1746215820312
],
"size": [
402.2647705078125,
213.4285430908203
],
"flags": {},
"order": 3,
"mode": 4,
"inputs": [
{
"name": "passthrough",
"shape": 7,
"type": "STRING",
"link": null
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [
68
]
}
],
"title": "System Prompt",
"properties": {
"Node name for S&R": "Textbox"
},
"widgets_values": [
"You are a music-style inference engine. For every user message, reply with exactly the structure below—replace the example values with your own inference and output nothing else:\n\n{\n \"genre\": \"alternative indie rock\",\n \"mood\": \"melancholy yet hopeful\",\n \"tempo\": \"slow-medium around 95 BPM\",\n \"style\": \"layered guitars with lo-fi ambience\"\n}\n"
]
},
{
"id": 50,
"type": "VrchJsonWebSocketSenderNode",
"pos": [
461.0880126953125,
-289.2833557128906
],
"size": [
379.2452392578125,
175.04705810546875
],
"flags": {},
"order": 24,
"mode": 4,
"inputs": [
{
"name": "server",
"type": "STRING",
"widget": {
"name": "server"
},
"link": 59
},
{
"name": "json_string",
"type": "STRING",
"widget": {
"name": "json_string"
},
"link": 66
}
],
"outputs": [
{
"name": "JSON",
"type": "JSON",
"links": []
}
],
"properties": {
"Node name for S&R": "VrchJsonWebSocketSenderNode"
},
"widgets_values": [
"1",
"192.168.123.112:8001",
false,
""
]
},
{
"id": 58,
"type": "Textbox",
"pos": [
459.90667724609375,
-526.4411010742188
],
"size": [
373.6030578613281,
141.9469757080078
],
"flags": {},
"order": 18,
"mode": 4,
"inputs": [
{
"name": "passthrough",
"shape": 7,
"type": "STRING",
"link": 65
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [
66
]
}
],
"properties": {
"Node name for S&R": "Textbox"
},
"widgets_values": [
"{\n \"genre\": \"ambient classical\",\n \"mood\": \"reflective and serene\",\n \"tempo\": \"very slow around 60 BPM\",\n \"style\": \"sparse piano with subtle string textures\"\n}"
]
},
{
"id": 60,
"type": "Textbox",
"pos": [
-338.6883239746094,
-278.4886779785156
],
"size": [
410.91900634765625,
194.771728515625
],
"flags": {},
"order": 4,
"mode": 4,
"inputs": [
{
"name": "passthrough",
"shape": 7,
"type": "STRING",
"link": null
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [
69
]
}
],
"title": "User Input",
"properties": {
"Node name for S&R": "Textbox"
},
"widgets_values": [
" 孤独的熊猫在弹钢琴"
]
},
{
"id": 57,
"type": "OllamaGenerateAdvance",
"pos": [
118.09649658203125,
-572.4064331054688
],
"size": [
286.7680358886719,
484.33447265625
],
"flags": {},
"order": 12,
"mode": 4,
"inputs": [
{
"name": "context",
"shape": 7,
"type": "STRING",
"link": null
},
{
"name": "prompt",
"type": "STRING",
"widget": {
"name": "prompt"
},
"link": 69
},
{
"name": "system",
"type": "STRING",
"widget": {
"name": "system"
},
"link": 68
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
65
]
},
{
"name": "context",
"type": "STRING",
"links": null
}
],
"properties": {
"Node name for S&R": "OllamaGenerateAdvance"
},
"widgets_values": [
"",
false,
"http://127.0.0.1:11434",
"gemma3:4b",
"",
873002179,
"fixed",
40,
0.9,
0.8,
-1,
1,
5,
false,
"json"
]
},
{
"id": 40,
"type": "VrchWebSocketServerNode",
"pos": [
-1059.6630859375,
381.81964111328125
],
"size": [
327.5999755859375,
160
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "SERVER",
"type": "STRING",
"links": [
47,
50,
58,
59,
82,
84
]
}
],
"properties": {
"Node name for S&R": "VrchWebSocketServerNode"
},
"widgets_values": [
"192.168.123.112:8001",
false,
""
]
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
798.6065673828125,
63.774192810058594
],
"size": [
210,
46
],
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 7
},
{
"name": "vae",
"type": "VAE",
"link": 8
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
81
]
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
-1.3937621116638184,
63.774192810058594
],
"size": [
422.84503173828125,
164.31304931640625
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 3
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
4
]
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"beautiful scenery nature glass bottle landscape, , purple galaxy bottle, black guns"
]
},
{
"id": 63,
"type": "Fast Groups Bypasser (rgthree)",
"pos": [
-1053.4385986328125,
113.03338623046875
],
"size": [
337.2578125,
182.3694305419922
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "OPT_CONNECTION",
"type": "*",
"links": null
}
],
"properties": {
"matchColors": "",
"matchTitle": "",
"showNav": true,
"sort": "position",
"customSortAlphabet": "",
"toggleRestriction": "default"
}
},
{
"id": 74,
"type": "VrchImageWebSocketWebViewerNode",
"pos": [
823.439208984375,
977.2025146484375
],
"size": [
371.6800537109375,
530
],
"flags": {},
"order": 25,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 83
},
{
"name": "server",
"type": "STRING",
"widget": {
"name": "server"
},
"link": 84
}
],
"outputs": [
{
"name": "IMAGES",
"type": "IMAGE",
"links": null
}
],
"properties": {
"Node name for S&R": "VrchImageWebSocketWebViewerNode"
},
"widgets_values": [
"2",
"192.168.123.112:8001",
"JPEG",
4,
1000,
200,
"none",
true,
false,
"#222222",
"",
false,
1280,
960,
false,
false,
"",
"http://vrch.ai/viewer?mode=image-websocket&server=192.168.123.112:8001&ssl=false&protocol=websocket&path=web_viewer&channel=2&numberOfImages=4&imageDisplayDuration=1000&fadeAnimDuration=200&mixBlendMode=none&enableLoop=true&enableUpdateOnEnd=false&bgColourPicker=#222222",
""
]
},
{
"id": 34,
"type": "PreviewImage",
"pos": [
653.4133911132812,
-1209.7869873046875
],
"size": [
376.1124267578125,
375.944580078125
],
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 49
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 5,
"type": "EmptyLatentImage",
"pos": [
58.60615158081055,
483.77398681640625
],
"size": [
315,
106
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"slot_index": 0,
"links": [
2
]
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
512,
512,
1
]
},
{
"id": 41,
"type": "VrchImageWebSocketChannelLoaderNode",
"pos": [
138.30303955078125,
-1423.129638671875
],
"size": [
336,
150
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "default_image",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "server",
"type": "STRING",
"widget": {
"name": "server"
},
"link": 47
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
85
]
},
{
"name": "IS_DEFAULT_IMAGE",
"type": "BOOLEAN",
"links": null
}
],
"properties": {
"Node name for S&R": "VrchImageWebSocketChannelLoaderNode"
},
"widgets_values": [
"1",
"192.168.123.112:8001",
"black",
false
]
},
{
"id": 42,
"type": "VrchImageWebSocketChannelLoaderNode",
"pos": [
647.6109008789062,
-1437.2628173828125
],
"size": [
381.1897277832031,
150
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "default_image",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "server",
"type": "STRING",
"widget": {
"name": "server"
},
"link": 50
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
49
]
},
{
"name": "IS_DEFAULT_IMAGE",
"type": "BOOLEAN",
"links": null
}
],
"properties": {
"Node name for S&R": "VrchImageWebSocketChannelLoaderNode"
},
"widgets_values": [
"2",
"192.168.123.112:8001",
"black",
false
]
},
{
"id": 75,
"type": "PreviewImage",
"pos": [
123.69780731201172,
-1206.265625
],
"size": [
414.09722900390625,
371.09466552734375
],
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 85
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 44,
"type": "Show any to JSON [Crystools]",
"pos": [
-341.66864013671875,
-1136.142333984375
],
"size": [
333.5288391113281,
136.85183715820312
],
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "any_value",
"shape": 7,
"type": "*",
"link": 57
}
],
"outputs": [
{
"name": "string",
"type": "STRING",
"links": null
}
],
"properties": {
"Node name for S&R": "Show any to JSON [Crystools]"
}
},
{
"id": 49,
"type": "VrchJsonWebSocketChannelLoaderNode",
"pos": [
-345.44683837890625,
-1374.362060546875
],
"size": [
327.6000061035156,
160
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "server",
"type": "STRING",
"widget": {
"name": "server"
},
"link": 58
}
],
"outputs": [
{
"name": "JSON",
"type": "JSON",
"links": [
57
]
}
],
"properties": {
"Node name for S&R": "VrchJsonWebSocketChannelLoaderNode"
},
"widgets_values": [
"1",
"192.168.123.112:8001",
false,
""
]
},
{
"id": 73,
"type": "VrchImageWebSocketWebViewerNode",
"pos": [
804.1859130859375,
169.39125061035156
],
"size": [
385.7093505859375,
530
],
"flags": {},
"order": 26,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 81
},
{
"name": "server",
"type": "STRING",
"widget": {
"name": "server"
},
"link": 82
}
],
"outputs": [
{
"name": "IMAGES",
"type": "IMAGE",
"links": null
}
],
"properties": {
"Node name for S&R": "VrchImageWebSocketWebViewerNode"
},
"widgets_values": [
"1",
"192.168.123.112:8001",
"JPEG",
4,
1000,
200,
"none",
true,
false,
"#222222",
"",
true,
1280,
960,
false,
false,
"",
"http://vrch.ai/viewer?mode=image-websocket&server=192.168.123.112:8001&ssl=false&protocol=websocket&path=web_viewer&channel=1&numberOfImages=4&imageDisplayDuration=1000&fadeAnimDuration=200&mixBlendMode=none&enableLoop=true&enableUpdateOnEnd=false&bgColourPicker=#222222",
""
]
}
],
"links": [
[
1,
4,
0,
3,
0,
"MODEL"
],
[
2,
5,
0,
3,
3,
"LATENT"
],
[
3,
4,
1,
6,
0,
"CLIP"
],
[
4,
6,
0,
3,
1,
"CONDITIONING"
],
[
5,
4,
1,
7,
0,
"CLIP"
],
[
6,
7,
0,
3,
2,
"CONDITIONING"
],
[
7,
3,
0,
8,
0,
"LATENT"
],
[
8,
4,
2,
8,
1,
"VAE"
],
[
24,
27,
1,
26,
0,
"CLIP"
],
[
25,
27,
0,
28,
0,
"MODEL"
],
[
26,
30,
0,
28,
1,
"CONDITIONING"
],
[
27,
26,
0,
28,
2,
"CONDITIONING"
],
[
28,
31,
0,
28,
3,
"LATENT"
],
[
29,
28,
0,
29,
0,
"LATENT"
],
[
30,
27,
2,
29,
1,
"VAE"
],
[
31,
27,
1,
30,
0,
"CLIP"
],
[
47,
40,
0,
41,
1,
"STRING"
],
[
49,
42,
0,
34,
0,
"IMAGE"
],
[
50,
40,
0,
42,
1,
"STRING"
],
[
57,
49,
0,
44,
0,
"*"
],
[
58,
40,
0,
49,
0,
"STRING"
],
[
59,
40,
0,
50,
0,
"STRING"
],
[
65,
57,
0,
58,
0,
"STRING"
],
[
66,
58,
0,
50,
1,
"STRING"
],
[
68,
59,
0,
57,
2,
"STRING"
],
[
69,
60,
0,
57,
1,
"STRING"
],
[
81,
8,
0,
73,
0,
"IMAGE"
],
[
82,
40,
0,
73,
1,
"STRING"
],
[
83,
29,
0,
74,
0,
"IMAGE"
],
[
84,
40,
0,
74,
1,
"STRING"
],
[
85,
41,
0,
75,
0,
"IMAGE"
]
],
"groups": [
{
"id": 1,
"title": "Image Generation for Channel 1",
"bounding": [
-401.3937072753906,
-9.825807571411133,
1613.4013671875,
719.217041015625
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 2,
"title": "Image Generation for Channel 2",
"bounding": [
-395.2374572753906,
799.9952392578125,
1600.5341796875,
717.207275390625
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 3,
"title": "WebSocket Loader Panel",
"bounding": [
-394.5039978027344,
-1566.959716796875,
1565.1549072265625,
824.74755859375
],
"color": "#A88",
"font_size": 24,
"flags": {}
},
{
"id": 4,
"title": "Json Generation for Channel 1",
"bounding": [
-399.97760009765625,
-684.23291015625,
1291.6109619140625,
632.1173095703125
],
"color": "#b58b2a",
"font_size": 24,
"flags": {}
},
{
"id": 5,
"title": "Control Panel",
"bounding": [
-1216.6798095703125,
-10.031065940856934,
636.00390625,
707.961669921875
],
"color": "#88A",
"font_size": 24,
"flags": {}
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.5131581182307068,
"offset": [
1158.1835156731931,
597.8256484448793
]
},
"frontendVersion": "1.16.9",
"node_versions": {
"comfy-core": "0.3.29",
"ComfyUI-Chibi-Nodes": "290ccef2a8c1bc3917e1c00dbe5c206b66fb8ded",
"comfyui-web-viewer": "b3fa76e9c0a51a8d41a9515bc9d44393cd110acb",
"comfyui-ollama": "0a01988e224d9f9dd7ebcae18fdb72b3e2189340",
"ComfyUI-Crystools": "ad2e9b8be8c601f17cf04d676a16afe538b89497"
}
},
"version": 0.4
}