733 lines
15 KiB
JSON
733 lines
15 KiB
JSON
{
|
||
"id": "1d4e4326-6985-4b88-a21b-a8a603a38a6b",
|
||
"revision": 0,
|
||
"last_node_id": 21,
|
||
"last_link_id": 31,
|
||
"nodes": [
|
||
{
|
||
"id": 7,
|
||
"type": "KSampler",
|
||
"pos": [
|
||
1134.633264462809,
|
||
527.0919421487622
|
||
],
|
||
"size": [
|
||
270,
|
||
262
|
||
],
|
||
"flags": {},
|
||
"order": 10,
|
||
"mode": 0,
|
||
"inputs": [
|
||
{
|
||
"name": "model",
|
||
"type": "MODEL",
|
||
"link": 12
|
||
},
|
||
{
|
||
"name": "positive",
|
||
"type": "CONDITIONING",
|
||
"link": 13
|
||
},
|
||
{
|
||
"name": "negative",
|
||
"type": "CONDITIONING",
|
||
"link": 14
|
||
},
|
||
{
|
||
"name": "latent_image",
|
||
"type": "LATENT",
|
||
"link": 11
|
||
}
|
||
],
|
||
"outputs": [
|
||
{
|
||
"name": "LATENT",
|
||
"type": "LATENT",
|
||
"links": [
|
||
10
|
||
]
|
||
}
|
||
],
|
||
"properties": {
|
||
"cnr_id": "comfy-core",
|
||
"ver": "0.19.3",
|
||
"Node name for S&R": "KSampler"
|
||
},
|
||
"widgets_values": [
|
||
770281327801267,
|
||
"randomize",
|
||
30,
|
||
7,
|
||
"euler",
|
||
"normal",
|
||
1
|
||
]
|
||
},
|
||
{
|
||
"id": 1,
|
||
"type": "CheckpointLoaderSimple",
|
||
"pos": [
|
||
628.323002754823,
|
||
530.5096418732777
|
||
],
|
||
"size": [
|
||
210,
|
||
98
|
||
],
|
||
"flags": {},
|
||
"order": 0,
|
||
"mode": 0,
|
||
"inputs": [],
|
||
"outputs": [
|
||
{
|
||
"name": "MODEL",
|
||
"type": "MODEL",
|
||
"links": [
|
||
12
|
||
]
|
||
},
|
||
{
|
||
"name": "CLIP",
|
||
"type": "CLIP",
|
||
"links": [
|
||
15,
|
||
16
|
||
]
|
||
},
|
||
{
|
||
"name": "VAE",
|
||
"type": "VAE",
|
||
"links": [
|
||
20
|
||
]
|
||
}
|
||
],
|
||
"properties": {
|
||
"cnr_id": "comfy-core",
|
||
"ver": "0.19.3",
|
||
"Node name for S&R": "CheckpointLoaderSimple"
|
||
},
|
||
"widgets_values": [
|
||
"waiIllustriousSDXL_v170.safetensors"
|
||
]
|
||
},
|
||
{
|
||
"id": 2,
|
||
"type": "TextDrivenTextLinePrompt",
|
||
"pos": [
|
||
378.7964876033059,
|
||
152.6687327823689
|
||
],
|
||
"size": [
|
||
322.43457300275486,
|
||
180.97451790633613
|
||
],
|
||
"flags": {},
|
||
"order": 1,
|
||
"mode": 0,
|
||
"inputs": [
|
||
{
|
||
"name": "optional_text_in",
|
||
"shape": 7,
|
||
"type": "STRING",
|
||
"link": null
|
||
}
|
||
],
|
||
"outputs": [
|
||
{
|
||
"name": "string_out",
|
||
"type": "STRING",
|
||
"links": [
|
||
17
|
||
]
|
||
}
|
||
],
|
||
"properties": {
|
||
"Node name for S&R": "TextDrivenTextLinePrompt"
|
||
},
|
||
"widgets_values": [
|
||
"1girl, solo, emilia \\(re:zero\\), blonde hair,\n(abstract background:1.5),\nthree quarter view, speed lines,\n(by carnelian:0.6),",
|
||
"2: (abstract background:1.5)",
|
||
1.5,
|
||
true
|
||
],
|
||
"color": "#232",
|
||
"bgcolor": "#353"
|
||
},
|
||
{
|
||
"id": 11,
|
||
"type": "TextDrivenResolutionSelector",
|
||
"pos": [
|
||
624.0013774104659,
|
||
684.5748966942159
|
||
],
|
||
"size": [
|
||
259.2310546875,
|
||
132
|
||
],
|
||
"flags": {},
|
||
"order": 2,
|
||
"mode": 0,
|
||
"inputs": [],
|
||
"outputs": [
|
||
{
|
||
"name": "width",
|
||
"type": "INT",
|
||
"links": [
|
||
23
|
||
]
|
||
},
|
||
{
|
||
"name": "height",
|
||
"type": "INT",
|
||
"links": [
|
||
24
|
||
]
|
||
}
|
||
],
|
||
"properties": {
|
||
"Node name for S&R": "TextDrivenResolutionSelector"
|
||
},
|
||
"widgets_values": [
|
||
"768x1024 (3:4)\n832x1216 (13:19)\n960x1280 (3:4)\n1024x1365 (3:4)\n1024x1496 (paper)\n1080x1440 (3:4)\n1152x1536 (3:4)\n1280x1728 (3:4)\n1536x1536 (1:1)",
|
||
"1024x1365 (3:4)"
|
||
],
|
||
"color": "#232",
|
||
"bgcolor": "#353"
|
||
},
|
||
{
|
||
"id": 10,
|
||
"type": "TextDrivenJoinStrings",
|
||
"pos": [
|
||
624.0013774104677,
|
||
387.48467630854066
|
||
],
|
||
"size": [
|
||
231.97501237517213,
|
||
118
|
||
],
|
||
"flags": {},
|
||
"order": 7,
|
||
"mode": 0,
|
||
"inputs": [
|
||
{
|
||
"label": "string0",
|
||
"name": "string_inputs.string0",
|
||
"type": "STRING",
|
||
"link": 17
|
||
},
|
||
{
|
||
"label": "string1",
|
||
"name": "string_inputs.string1",
|
||
"shape": 7,
|
||
"type": "STRING",
|
||
"link": 18
|
||
},
|
||
{
|
||
"label": "string2",
|
||
"name": "string_inputs.string2",
|
||
"shape": 7,
|
||
"type": "STRING",
|
||
"link": null
|
||
}
|
||
],
|
||
"outputs": [
|
||
{
|
||
"name": "string_out",
|
||
"type": "STRING",
|
||
"links": [
|
||
19,
|
||
31
|
||
]
|
||
}
|
||
],
|
||
"properties": {
|
||
"Node name for S&R": "TextDrivenJoinStrings"
|
||
},
|
||
"widgets_values": [
|
||
","
|
||
],
|
||
"color": "#232",
|
||
"bgcolor": "#353"
|
||
},
|
||
{
|
||
"id": 3,
|
||
"type": "TextDrivenMultiPrompts",
|
||
"pos": [
|
||
383.41081267217646,
|
||
390.4872589531677
|
||
],
|
||
"size": [
|
||
222.9048828125,
|
||
364
|
||
],
|
||
"flags": {},
|
||
"order": 3,
|
||
"mode": 0,
|
||
"inputs": [
|
||
{
|
||
"name": "optional_text_in",
|
||
"shape": 7,
|
||
"type": "STRING",
|
||
"link": null
|
||
}
|
||
],
|
||
"outputs": [
|
||
{
|
||
"name": "string_out",
|
||
"type": "STRING",
|
||
"links": [
|
||
18
|
||
]
|
||
}
|
||
],
|
||
"properties": {
|
||
"Node name for S&R": "TextDrivenMultiPrompts"
|
||
},
|
||
"widgets_values": [
|
||
"3",
|
||
"cinematic lighting, volumetric lighting",
|
||
1,
|
||
true,
|
||
"sundress, ruffled, cotton, ruffled, cotton",
|
||
1.2,
|
||
false,
|
||
"masterpiece, delicate, serene atmosphere",
|
||
0.8,
|
||
true,
|
||
"",
|
||
1,
|
||
true,
|
||
"",
|
||
1,
|
||
true,
|
||
"",
|
||
1,
|
||
true,
|
||
"",
|
||
1,
|
||
true,
|
||
"",
|
||
1,
|
||
true,
|
||
"",
|
||
1,
|
||
true,
|
||
"",
|
||
1,
|
||
true
|
||
],
|
||
"color": "#232",
|
||
"bgcolor": "#353"
|
||
},
|
||
{
|
||
"id": 21,
|
||
"type": "TextDrivenPromptTokenCounter",
|
||
"pos": [
|
||
872.7961432506921,
|
||
392.6069214876045
|
||
],
|
||
"size": [
|
||
280.2857421875,
|
||
58
|
||
],
|
||
"flags": {},
|
||
"order": 9,
|
||
"mode": 0,
|
||
"inputs": [
|
||
{
|
||
"name": "prompt",
|
||
"type": "STRING",
|
||
"link": 31
|
||
}
|
||
],
|
||
"outputs": [],
|
||
"properties": {
|
||
"Node name for S&R": "TextDrivenPromptTokenCounter"
|
||
},
|
||
"widgets_values": [
|
||
"52"
|
||
],
|
||
"color": "#232",
|
||
"bgcolor": "#353"
|
||
},
|
||
{
|
||
"id": 8,
|
||
"type": "VAEDecode",
|
||
"pos": [
|
||
1175.594008264463,
|
||
441.4772727272729
|
||
],
|
||
"size": [
|
||
140,
|
||
46
|
||
],
|
||
"flags": {},
|
||
"order": 11,
|
||
"mode": 0,
|
||
"inputs": [
|
||
{
|
||
"name": "samples",
|
||
"type": "LATENT",
|
||
"link": 10
|
||
},
|
||
{
|
||
"name": "vae",
|
||
"type": "VAE",
|
||
"link": 20
|
||
}
|
||
],
|
||
"outputs": [
|
||
{
|
||
"name": "IMAGE",
|
||
"type": "IMAGE",
|
||
"links": [
|
||
9
|
||
]
|
||
}
|
||
],
|
||
"properties": {
|
||
"cnr_id": "comfy-core",
|
||
"ver": "0.19.3",
|
||
"Node name for S&R": "VAEDecode"
|
||
},
|
||
"widgets_values": []
|
||
},
|
||
{
|
||
"id": 4,
|
||
"type": "CLIPTextEncode",
|
||
"pos": [
|
||
899.5179063360873,
|
||
484.4008264462807
|
||
],
|
||
"size": [
|
||
218.659765625,
|
||
88
|
||
],
|
||
"flags": {},
|
||
"order": 8,
|
||
"mode": 0,
|
||
"inputs": [
|
||
{
|
||
"name": "clip",
|
||
"type": "CLIP",
|
||
"link": 15
|
||
},
|
||
{
|
||
"name": "text",
|
||
"type": "STRING",
|
||
"widget": {
|
||
"name": "text"
|
||
},
|
||
"link": 19
|
||
}
|
||
],
|
||
"outputs": [
|
||
{
|
||
"name": "CONDITIONING",
|
||
"type": "CONDITIONING",
|
||
"links": [
|
||
13
|
||
]
|
||
}
|
||
],
|
||
"properties": {
|
||
"cnr_id": "comfy-core",
|
||
"ver": "0.19.3",
|
||
"Node name for S&R": "CLIPTextEncode"
|
||
},
|
||
"widgets_values": [
|
||
""
|
||
]
|
||
},
|
||
{
|
||
"id": 5,
|
||
"type": "CLIPTextEncode",
|
||
"pos": [
|
||
903.9084022038585,
|
||
603.908402203858
|
||
],
|
||
"size": [
|
||
218.659765625,
|
||
88
|
||
],
|
||
"flags": {},
|
||
"order": 5,
|
||
"mode": 0,
|
||
"inputs": [
|
||
{
|
||
"name": "clip",
|
||
"type": "CLIP",
|
||
"link": 16
|
||
}
|
||
],
|
||
"outputs": [
|
||
{
|
||
"name": "CONDITIONING",
|
||
"type": "CONDITIONING",
|
||
"links": [
|
||
14
|
||
]
|
||
}
|
||
],
|
||
"properties": {
|
||
"cnr_id": "comfy-core",
|
||
"ver": "0.19.3",
|
||
"Node name for S&R": "CLIPTextEncode"
|
||
},
|
||
"widgets_values": [
|
||
"blurry, low quality, text, error, cropped, worst quality"
|
||
]
|
||
},
|
||
{
|
||
"id": 6,
|
||
"type": "EmptyLatentImage",
|
||
"pos": [
|
||
911.2258953168082,
|
||
724.4232093663918
|
||
],
|
||
"size": [
|
||
210,
|
||
106
|
||
],
|
||
"flags": {},
|
||
"order": 6,
|
||
"mode": 0,
|
||
"inputs": [
|
||
{
|
||
"name": "width",
|
||
"type": "INT",
|
||
"widget": {
|
||
"name": "width"
|
||
},
|
||
"link": 23
|
||
},
|
||
{
|
||
"name": "height",
|
||
"type": "INT",
|
||
"widget": {
|
||
"name": "height"
|
||
},
|
||
"link": 24
|
||
}
|
||
],
|
||
"outputs": [
|
||
{
|
||
"name": "LATENT",
|
||
"type": "LATENT",
|
||
"links": [
|
||
11
|
||
]
|
||
}
|
||
],
|
||
"properties": {
|
||
"cnr_id": "comfy-core",
|
||
"ver": "0.19.3",
|
||
"Node name for S&R": "EmptyLatentImage"
|
||
},
|
||
"widgets_values": [
|
||
1024,
|
||
1024,
|
||
1
|
||
]
|
||
},
|
||
{
|
||
"id": 9,
|
||
"type": "SaveImage",
|
||
"pos": [
|
||
1167.7754820936646,
|
||
72.67561983471076
|
||
],
|
||
"size": [
|
||
237.07128099173542,
|
||
324.3567493112946
|
||
],
|
||
"flags": {},
|
||
"order": 12,
|
||
"mode": 0,
|
||
"inputs": [
|
||
{
|
||
"name": "images",
|
||
"type": "IMAGE",
|
||
"link": 9
|
||
}
|
||
],
|
||
"outputs": [],
|
||
"properties": {
|
||
"cnr_id": "comfy-core",
|
||
"ver": "0.19.3",
|
||
"Node name for S&R": "SaveImage"
|
||
},
|
||
"widgets_values": [
|
||
"ComfyUI_TextDriven"
|
||
]
|
||
},
|
||
{
|
||
"id": 13,
|
||
"type": "MarkdownNote",
|
||
"pos": [
|
||
717.6652892561983,
|
||
64.05148071625365
|
||
],
|
||
"size": [
|
||
388.06301652892535,
|
||
270.0120523415977
|
||
],
|
||
"flags": {},
|
||
"order": 4,
|
||
"mode": 0,
|
||
"inputs": [],
|
||
"outputs": [],
|
||
"properties": {},
|
||
"widgets_values": [
|
||
"# Text-Driven Prompting Workflow Guide\n\nThis workflow streamlines prompt management and eliminates manual weight tweaking by utilizing dedicated custom nodes for layered control and real-time validation.\n\n## Node Overview\n\n### 1. Text Line Prompt (Text-Driven)\nManages a list of prompt assets or concepts line by line.\n- **Bi-directional Sync**: Select a line via the dropdown menu to modify its multiplier or active state. The raw text area updates automatically in real-time.\n- **Muting Function**: Deactivating a line prepends `//` to comment it out. These lines are completely skipped during backend execution.\n\n### 2. Multi Prompts (Text-Driven)\nAllows managing multiple independent prompt blocks simultaneously within a single node.\n- **Layered Control**: Each prompt block can be independently weighted with a multiplier or toggled active/inactive, streamlining the blending of styles, characters, and environments.\n\n### 3. Prompt Token Counter (Text-Driven)\nAn input-only visualization node designed specifically for Stable Diffusion 1.5 and SDXL to estimate the total token count of the incoming combined prompt.\n- **Real-time Color Signals**: \n - **Green (≤ 65 tokens)**: Safe zone. The entire prompt fits comfortably within the primary context chunk.\n - **Yellow (66–75 tokens)**: Warning zone. Approaching the absolute hardware limit of a single CLIP text encoder chunk.\n - **Red (≥ 76 tokens)**: Danger zone. The prompt will be sliced into multiple chunks (sections).\n- **Chunk Slicing Risk**: Tokens forced into the second section or later have a significantly lower probability of being referenced accurately during rendering, which can dilute attention weights, skew character concepts, or lead to image breakdown.\n- **Approximation Note**: Since a strictly exact calculation requires a massive dictionary (~49k words), this node utilizes a highly optimized, high-speed approximation algorithm. The displayed count serves as a close reference estimate.\n\n### 4. Join Strings (Text-Driven)\nConcatenates strings from multiple text-driven nodes using a customizable delimiter (e.g., a comma), serving as the bridge to consolidate your structured prompt layers into a single continuous stream."
|
||
],
|
||
"color": "#432",
|
||
"bgcolor": "#653"
|
||
}
|
||
],
|
||
"links": [
|
||
[
|
||
null,
|
||
null,
|
||
null,
|
||
null,
|
||
null,
|
||
null
|
||
],
|
||
[
|
||
9,
|
||
8,
|
||
0,
|
||
9,
|
||
0,
|
||
"IMAGE"
|
||
],
|
||
[
|
||
10,
|
||
7,
|
||
0,
|
||
8,
|
||
0,
|
||
"LATENT"
|
||
],
|
||
[
|
||
11,
|
||
6,
|
||
0,
|
||
7,
|
||
3,
|
||
"LATENT"
|
||
],
|
||
[
|
||
12,
|
||
1,
|
||
0,
|
||
7,
|
||
0,
|
||
"MODEL"
|
||
],
|
||
[
|
||
13,
|
||
4,
|
||
0,
|
||
7,
|
||
1,
|
||
"CONDITIONING"
|
||
],
|
||
[
|
||
14,
|
||
5,
|
||
0,
|
||
7,
|
||
2,
|
||
"CONDITIONING"
|
||
],
|
||
[
|
||
15,
|
||
1,
|
||
1,
|
||
4,
|
||
0,
|
||
"CLIP"
|
||
],
|
||
[
|
||
16,
|
||
1,
|
||
1,
|
||
5,
|
||
0,
|
||
"CLIP"
|
||
],
|
||
[
|
||
17,
|
||
2,
|
||
0,
|
||
10,
|
||
0,
|
||
"STRING"
|
||
],
|
||
[
|
||
18,
|
||
3,
|
||
0,
|
||
10,
|
||
1,
|
||
"STRING"
|
||
],
|
||
[
|
||
19,
|
||
10,
|
||
0,
|
||
4,
|
||
1,
|
||
"STRING"
|
||
],
|
||
[
|
||
20,
|
||
1,
|
||
2,
|
||
8,
|
||
1,
|
||
"VAE"
|
||
],
|
||
[
|
||
23,
|
||
11,
|
||
0,
|
||
6,
|
||
0,
|
||
"INT"
|
||
],
|
||
[
|
||
24,
|
||
11,
|
||
1,
|
||
6,
|
||
1,
|
||
"INT"
|
||
],
|
||
[
|
||
31,
|
||
10,
|
||
0,
|
||
21,
|
||
0,
|
||
"STRING"
|
||
]
|
||
],
|
||
"groups": [],
|
||
"config": {},
|
||
"extra": {
|
||
"ds": {
|
||
"scale": 1.366588235294118,
|
||
"offset": [
|
||
-110.31336088154292,
|
||
74.24913911845717
|
||
]
|
||
},
|
||
"frontendVersion": "1.42.11"
|
||
},
|
||
"version": 0.4
|
||
} |