Files
asagi4-comfyui-prompt-control/workflows/example.json
T
2023-08-04 00:31:57 +03:00

1915 lines
31 KiB
JSON

{
"last_node_id": 51,
"last_link_id": 92,
"nodes": [
{
"id": 2,
"type": "PrimitiveNode",
"pos": [
-190,
150
],
"size": {
"0": 300,
"1": 160
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
2
],
"slot_index": 0,
"widget": {
"name": "text",
"config": [
"STRING",
{
"default": "",
"multiline": true
}
]
}
}
],
"title": "Negative",
"properties": {},
"widgets_values": [
"(quality:1.4)"
],
"color": "#322",
"bgcolor": "#533",
"shape": 1
},
{
"id": 1,
"type": "PrimitiveNode",
"pos": [
-190,
-60
],
"size": {
"0": 300,
"1": 160
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
1
],
"slot_index": 0,
"widget": {
"name": "text",
"config": [
"STRING",
{
"default": "",
"multiline": true
}
]
}
}
],
"title": "Positive",
"properties": {},
"widgets_values": [
"a masterpiece illustration of a [space:0.3] [dog|[cat:tiger:HR]], [sitting on a bench::0.3] [<lora:vector_revanimated:0.7>:0.2]"
],
"color": "#2a363b",
"bgcolor": "#3f5159",
"shape": 1
},
{
"id": 26,
"type": "EmptyLatentImage",
"pos": [
384,
-254
],
"size": {
"0": 210,
"1": 106
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
82
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
512,
512,
1
]
},
{
"id": 25,
"type": "Reroute",
"pos": [
177,
-331
],
"size": [
75,
26
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 42
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
43
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 30,
"type": "Reroute",
"pos": [
882,
-344
],
"size": [
75,
26
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 43
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
44,
51
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 34,
"type": "Reroute",
"pos": [
1145,
-342
],
"size": [
75,
26
],
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 51
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
52
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 10,
"type": "CheckpointLoaderSimple",
"pos": [
-186,
-203
],
"size": {
"0": 319.8316650390625,
"1": 98
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
9
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
11
],
"shape": 3,
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
42
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"revanimated_v122-0900-0868-0708.safetensors"
]
},
{
"id": 41,
"type": "PromptToSchedule",
"pos": [
405,
72
],
"size": {
"0": 210,
"1": 46.00000762939453
},
"flags": {
"collapsed": true
},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 57,
"widget": {
"name": "text",
"config": [
"STRING",
{
"multiline": true
}
]
},
"slot_index": 0
}
],
"outputs": [
{
"name": "PROMPT_SCHEDULE",
"type": "PROMPT_SCHEDULE",
"links": [
56
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "PromptToSchedule"
},
"widgets_values": [
""
]
},
{
"id": 42,
"type": "ScheduleToCond",
"pos": [
405,
123
],
"size": {
"0": 355.20001220703125,
"1": 46
},
"flags": {
"collapsed": true
},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 92
},
{
"name": "prompt_schedule",
"type": "PROMPT_SCHEDULE",
"link": 56
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
81
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "ScheduleToCond"
}
},
{
"id": 44,
"type": "FilterSchedule",
"pos": [
401,
289
],
"size": [
393,
106
],
"flags": {
"collapsed": true
},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "prompt_schedule",
"type": "PROMPT_SCHEDULE",
"link": 70,
"slot_index": 0
},
{
"name": "tags",
"type": "STRING",
"link": 64,
"widget": {
"name": "tags",
"config": [
"STRING",
{
"default": ""
}
]
}
},
{
"name": "start",
"type": "FLOAT",
"link": 65,
"widget": {
"name": "start",
"config": [
"FLOAT",
{
"min": 0,
"max": 1,
"default": 0,
"step": 0.01
}
]
}
},
{
"name": "end",
"type": "FLOAT",
"link": 66,
"widget": {
"name": "end",
"config": [
"FLOAT",
{
"min": 0,
"max": 1,
"default": 1,
"step": 0.01
}
]
}
}
],
"outputs": [
{
"name": "PROMPT_SCHEDULE",
"type": "PROMPT_SCHEDULE",
"links": [
68,
69
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "FilterSchedule"
},
"widgets_values": [
"HR",
0,
1
]
},
{
"id": 47,
"type": "ScheduleToModel",
"pos": [
401,
337
],
"size": {
"0": 267,
"1": 46
},
"flags": {
"collapsed": true
},
"order": 26,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 78
},
{
"name": "prompt_schedule",
"type": "PROMPT_SCHEDULE",
"link": 69
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
88
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "ScheduleToModel"
}
},
{
"id": 46,
"type": "ScheduleToCond",
"pos": [
401,
379
],
"size": {
"0": 355.20001220703125,
"1": 46
},
"flags": {
"collapsed": true
},
"order": 25,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 77
},
{
"name": "prompt_schedule",
"type": "PROMPT_SCHEDULE",
"link": 68
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
89
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "ScheduleToCond"
}
},
{
"id": 49,
"type": "ScheduleToCond",
"pos": [
401,
466
],
"size": {
"0": 355.20001220703125,
"1": 46
},
"flags": {
"collapsed": true
},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 76,
"slot_index": 0
},
{
"name": "prompt_schedule",
"type": "PROMPT_SCHEDULE",
"link": 75
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
90
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "ScheduleToCond"
}
},
{
"id": 11,
"type": "Reroute",
"pos": [
248,
-214
],
"size": [
75,
26
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 9
}
],
"outputs": [
{
"name": "",
"type": "MODEL",
"links": [
61,
78
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 48,
"type": "PromptToSchedule",
"pos": [
401,
425
],
"size": [
210,
34
],
"flags": {
"collapsed": true
},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 73,
"widget": {
"name": "text",
"config": [
"STRING",
{
"multiline": true
}
]
}
}
],
"outputs": [
{
"name": "PROMPT_SCHEDULE",
"type": "PROMPT_SCHEDULE",
"links": [
75
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "PromptToSchedule"
},
"widgets_values": [
""
]
},
{
"id": 39,
"type": "ScheduleToCond",
"pos": [
405,
26
],
"size": {
"0": 355.20001220703125,
"1": 46
},
"flags": {
"collapsed": true
},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 60
},
{
"name": "prompt_schedule",
"type": "PROMPT_SCHEDULE",
"link": 54
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
80
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "ScheduleToCond"
}
},
{
"id": 40,
"type": "ScheduleToModel",
"pos": [
405,
-17
],
"size": {
"0": 267,
"1": 46
},
"flags": {
"collapsed": true
},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 61
},
{
"name": "prompt_schedule",
"type": "PROMPT_SCHEDULE",
"link": 55
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
79
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "ScheduleToModel"
}
},
{
"id": 43,
"type": "PromptToSchedule",
"pos": [
401,
246
],
"size": [
400,
200
],
"flags": {
"collapsed": true
},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 74,
"widget": {
"name": "text",
"config": [
"STRING",
{
"multiline": true
}
]
}
}
],
"outputs": [
{
"name": "PROMPT_SCHEDULE",
"type": "PROMPT_SCHEDULE",
"links": [
70
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "PromptToSchedule"
},
"widgets_values": [
""
]
},
{
"id": 38,
"type": "PromptToSchedule",
"pos": [
405,
-54
],
"size": [
210,
46.000009536743164
],
"flags": {
"collapsed": true
},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 53,
"widget": {
"name": "text",
"config": [
"STRING",
{
"multiline": true
}
]
},
"slot_index": 0
}
],
"outputs": [
{
"name": "PROMPT_SCHEDULE",
"type": "PROMPT_SCHEDULE",
"links": [
54,
55
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "PromptToSchedule"
},
"widgets_values": [
""
]
},
{
"id": 29,
"type": "VAEDecode",
"pos": [
972,
-271
],
"size": {
"0": 210,
"1": 46
},
"flags": {
"collapsed": true
},
"order": 27,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 84
},
{
"name": "vae",
"type": "VAE",
"link": 44
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
45
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 50,
"type": "KSampler",
"pos": [
629,
-207
],
"size": [
215.84753417968773,
446
],
"flags": {},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 79,
"slot_index": 0
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 80,
"slot_index": 1
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 81,
"slot_index": 2
},
{
"name": "latent_image",
"type": "LATENT",
"link": 82,
"slot_index": 3
},
{
"name": "seed",
"type": "INT",
"link": 83,
"widget": {
"name": "seed",
"config": [
"INT",
{
"default": 0,
"min": 0,
"max": 18446744073709552000
}
]
},
"slot_index": 4
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
84,
85
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
744189450576017,
"randomize",
20,
8,
"euler",
"karras",
1
]
},
{
"id": 32,
"type": "VAEDecode",
"pos": [
1180,
99
],
"size": {
"0": 210,
"1": 46
},
"flags": {
"collapsed": true
},
"order": 31,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 87
},
{
"name": "vae",
"type": "VAE",
"link": 52
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
48
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 12,
"type": "Reroute",
"pos": [
248,
-173
],
"size": [
75,
26
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 11
}
],
"outputs": [
{
"name": "",
"type": "CLIP",
"links": [
60,
76,
77,
92
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 31,
"type": "PreviewImage",
"pos": [
1180,
-200
],
"size": {
"0": 210,
"1": 250
},
"flags": {},
"order": 29,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 45
}
],
"title": "First pass",
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 24,
"type": "PrimitiveNode",
"pos": [
-182,
-340
],
"size": [
311.00371044921894,
82
],
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
83,
91
],
"slot_index": 0,
"widget": {
"name": "seed",
"config": [
"INT",
{
"default": 0,
"min": 0,
"max": 18446744073709552000
}
]
}
}
],
"title": "Seed",
"properties": {},
"widgets_values": [
5,
"fixed"
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 28,
"type": "LatentUpscaleBy",
"pos": [
619,
297
],
"size": [
239.46753417968762,
82
],
"flags": {},
"order": 28,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 85
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
86
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "LatentUpscaleBy"
},
"widgets_values": [
"nearest-exact",
1.5
]
},
{
"id": 18,
"type": "PrimitiveNode",
"pos": [
136,
528
],
"size": {
"0": 210,
"1": 58
},
"flags": {},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
64
],
"slot_index": 0,
"widget": {
"name": "tags",
"config": [
"STRING",
{
"default": ""
}
]
}
}
],
"title": "Second pass tag",
"properties": {},
"widgets_values": [
"HR"
]
},
{
"id": 21,
"type": "PrimitiveNode",
"pos": [
136,
404
],
"size": {
"0": 210,
"1": 82
},
"flags": {},
"order": 6,
"mode": 0,
"outputs": [
{
"name": "FLOAT",
"type": "FLOAT",
"links": [
66
],
"slot_index": 0,
"widget": {
"name": "end",
"config": [
"FLOAT",
{
"min": 0,
"max": 1,
"default": 1,
"step": 0.01
}
]
}
}
],
"title": "2nd pass remove after",
"properties": {},
"widgets_values": [
1,
"fixed"
]
},
{
"id": 20,
"type": "PrimitiveNode",
"pos": [
136,
277
],
"size": {
"0": 210,
"1": 82
},
"flags": {
"collapsed": false
},
"order": 7,
"mode": 0,
"outputs": [
{
"name": "FLOAT",
"type": "FLOAT",
"links": [
65
],
"slot_index": 0,
"widget": {
"name": "start",
"config": [
"FLOAT",
{
"min": 0,
"max": 1,
"default": 0,
"step": 0.01
}
]
}
}
],
"title": "2nd pass remove before",
"properties": {},
"widgets_values": [
0,
"fixed"
]
},
{
"id": 4,
"type": "JinjaRender",
"pos": [
205,
107
],
"size": {
"0": 210,
"1": 46
},
"flags": {
"collapsed": true
},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 2,
"widget": {
"name": "text",
"config": [
"STRING",
{
"default": "",
"multiline": true
}
]
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
57,
73
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "JinjaRender"
},
"widgets_values": [
"(quality:1.4)"
]
},
{
"id": 3,
"type": "JinjaRender",
"pos": [
207,
-4
],
"size": {
"0": 210,
"1": 46
},
"flags": {
"collapsed": true
},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 1,
"widget": {
"name": "text",
"config": [
"STRING",
{
"default": "",
"multiline": true
}
]
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
53,
74
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "JinjaRender"
},
"widgets_values": [
"a masterpiece illustration of a [space:0.3] [dog|[cat:tiger:HR]], [sitting on a bench::0.3] [<lora:vector_revanimated:0.7>:0.2]"
]
},
{
"id": 51,
"type": "KSampler",
"pos": [
917,
-203
],
"size": [
215.8475341796875,
446
],
"flags": {},
"order": 30,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 88,
"slot_index": 0
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 89,
"slot_index": 1
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 90,
"slot_index": 2
},
{
"name": "latent_image",
"type": "LATENT",
"link": 86,
"slot_index": 3
},
{
"name": "seed",
"type": "INT",
"link": 91,
"widget": {
"name": "seed",
"config": [
"INT",
{
"default": 0,
"min": 0,
"max": 18446744073709552000
}
]
},
"slot_index": 4
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
87
],
"shape": 3,
"slot_index": 0
}
],
"title": "KSampler (2nd)",
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
590405639165905,
"randomize",
20,
8,
"euler",
"karras",
0.6999999999999997
]
},
{
"id": 33,
"type": "PreviewImage",
"pos": [
1160,
140
],
"size": [
320,
340
],
"flags": {},
"order": 32,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 48
}
],
"title": "Second pass",
"properties": {
"Node name for S&R": "PreviewImage"
}
}
],
"links": [
[
1,
1,
0,
3,
0,
"STRING"
],
[
2,
2,
0,
4,
0,
"STRING"
],
[
9,
10,
0,
11,
0,
"*"
],
[
11,
10,
1,
12,
0,
"*"
],
[
42,
10,
2,
25,
0,
"*"
],
[
43,
25,
0,
30,
0,
"*"
],
[
44,
30,
0,
29,
1,
"VAE"
],
[
45,
29,
0,
31,
0,
"IMAGE"
],
[
48,
32,
0,
33,
0,
"IMAGE"
],
[
51,
30,
0,
34,
0,
"*"
],
[
52,
34,
0,
32,
1,
"VAE"
],
[
53,
3,
0,
38,
0,
"STRING"
],
[
54,
38,
0,
39,
1,
"PROMPT_SCHEDULE"
],
[
55,
38,
0,
40,
1,
"PROMPT_SCHEDULE"
],
[
56,
41,
0,
42,
1,
"PROMPT_SCHEDULE"
],
[
57,
4,
0,
41,
0,
"STRING"
],
[
60,
12,
0,
39,
0,
"CLIP"
],
[
61,
11,
0,
40,
0,
"MODEL"
],
[
64,
18,
0,
44,
1,
"STRING"
],
[
65,
20,
0,
44,
2,
"FLOAT"
],
[
66,
21,
0,
44,
3,
"FLOAT"
],
[
68,
44,
0,
46,
1,
"PROMPT_SCHEDULE"
],
[
69,
44,
0,
47,
1,
"PROMPT_SCHEDULE"
],
[
70,
43,
0,
44,
0,
"PROMPT_SCHEDULE"
],
[
73,
4,
0,
48,
0,
"STRING"
],
[
74,
3,
0,
43,
0,
"STRING"
],
[
75,
48,
0,
49,
1,
"PROMPT_SCHEDULE"
],
[
76,
12,
0,
49,
0,
"CLIP"
],
[
77,
12,
0,
46,
0,
"CLIP"
],
[
78,
11,
0,
47,
0,
"MODEL"
],
[
79,
40,
0,
50,
0,
"MODEL"
],
[
80,
39,
0,
50,
1,
"CONDITIONING"
],
[
81,
42,
0,
50,
2,
"CONDITIONING"
],
[
82,
26,
0,
50,
3,
"LATENT"
],
[
83,
24,
0,
50,
4,
"INT"
],
[
84,
50,
0,
29,
0,
"LATENT"
],
[
85,
50,
0,
28,
0,
"LATENT"
],
[
86,
28,
0,
51,
3,
"LATENT"
],
[
87,
51,
0,
32,
0,
"LATENT"
],
[
88,
47,
0,
51,
0,
"MODEL"
],
[
89,
46,
0,
51,
1,
"CONDITIONING"
],
[
90,
49,
0,
51,
2,
"CONDITIONING"
],
[
91,
24,
0,
51,
4,
"INT"
],
[
92,
12,
0,
42,
0,
"CLIP"
]
],
"groups": [
{
"title": "First pass",
"bounding": [
393,
-120,
190,
269
],
"color": "#8A8"
},
{
"title": "Second pass",
"bounding": [
384,
180,
190,
309
],
"color": "#3f789e"
},
{
"title": "Filtering",
"bounding": [
127,
203,
227,
387
],
"color": "#3f789e"
}
],
"config": {},
"extra": {},
"version": 0.4
}