-
Notifications
You must be signed in to change notification settings - Fork 7
/
promptmaster-workflow.json
762 lines (762 loc) · 15.3 KB
/
promptmaster-workflow.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
{
"last_node_id": 23,
"last_link_id": 34,
"nodes": [
{
"id": 14,
"type": "PreviewImage",
"pos": [
1830,
500
],
"size": {
"0": 536.2163696289062,
"1": 692.5844116210938
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 13
}
],
"properties": {
"Node name for S&R": "PreviewImage"
},
"color": "#233",
"bgcolor": "#355"
},
{
"id": 13,
"type": "VAEDecode",
"pos": [
1480,
500
],
"size": {
"0": 311.2139587402344,
"1": 69.0113525390625
},
"flags": {
"collapsed": false
},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 14,
"slot_index": 0
},
{
"name": "vae",
"type": "VAE",
"link": 34
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
13
],
"shape": 3,
"slot_index": 0
}
],
"title": "Voodoo Magic to Image",
"properties": {
"Node name for S&R": "VAEDecode"
},
"color": "#233",
"bgcolor": "#355"
},
{
"id": 10,
"type": "KSampler",
"pos": [
1480,
620
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 19
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 23
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 24
},
{
"name": "latent_image",
"type": "LATENT",
"link": 17,
"slot_index": 3
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
14
],
"shape": 3
}
],
"title": "Voodoo Magic Box",
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
790041283668453,
"randomize",
35,
7.5,
"euler_ancestral",
"karras",
1
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 18,
"type": "CR Aspect Ratio",
"pos": [
1480,
940
],
"size": {
"0": 315,
"1": 278
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "width",
"type": "INT",
"links": null,
"shape": 3
},
{
"name": "height",
"type": "INT",
"links": null,
"shape": 3
},
{
"name": "upscale_factor",
"type": "FLOAT",
"links": null,
"shape": 3
},
{
"name": "batch_size",
"type": "INT",
"links": null,
"shape": 3
},
{
"name": "empty_latent",
"type": "LATENT",
"links": [
17
],
"shape": 3,
"slot_index": 4
},
{
"name": "show_help",
"type": "STRING",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "CR Aspect Ratio"
},
"widgets_values": [
1024,
1024,
"SDXL - 3:4 portrait 896x1152",
"Off",
2,
1
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 11,
"type": "CLIPSetLastLayer",
"pos": [
572,
1102
],
"size": {
"0": 404.7189636230469,
"1": 67.70719909667969
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 7
}
],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
8,
9
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "CLIPSetLastLayer"
},
"widgets_values": [
-2
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 9,
"type": "CheckpointLoaderSimple",
"pos": [
120,
1050
],
"size": {
"0": 381.3704833984375,
"1": 98
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
18
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
7
],
"shape": 3,
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
34
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"juggernautXL_v7Rundiffusion.safetensors"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 20,
"type": "VAELoader",
"pos": [
120,
920
],
"size": {
"0": 379.0299377441406,
"1": 58
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"sdxl_vae fp16.safetensors"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 4,
"type": "ShowText|pysssss",
"pos": [
1040,
620
],
"size": {
"0": 396.61602783203125,
"1": 185.1109619140625
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 32,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": null,
"shape": 6
}
],
"title": "Prompt generated by AI",
"properties": {
"Node name for S&R": "ShowText|pysssss"
},
"widgets_values": [
"sketch of a stupid panda chomp on a stick of dynamite and the stick has a \"tick tick boom\" text and the panda wearing (fruit hats:1.2) and its eating banana, surrounded by explosive smoke and fire with an anime style, (masterpiece, top quality, best quality, official art, unity 8k wallpaper, ultra detailed, gorgeous artwork), "
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 21,
"type": "Note",
"pos": [
110,
102
],
"size": {
"0": 684.4935913085938,
"1": 326.1812438964844
},
"flags": {},
"order": 3,
"mode": 0,
"title": "DO NOT RUN BEFORE READING",
"properties": {
"text": ""
},
"widgets_values": [
"The OpenAI node below will NOT WORK till you enter the URL for your local hosted LLM provider and have a model running with the openAI API enabled. If you have no idea what this means, then you probably want to consider using something like LM studio (https://lmstudio.ai/), then download the Model Electrofried/Promptmaster-Mistral-7B-v1-GGUF with that once it is installed.\n\nAfter that you will need to start the local server (↔️ button) and start the server. This is not a guide for that, if you need more help with getting a local llm to work google is your friend or perhaps comment wherever I uploaded this to. Keep in mind running an LLM, even a small one like I have provided uses a lot of resources and RAM/VRAM. If you load the model to GPU it will stay there and ComfyUI will get very unhappy at you unless you are running a literal supercomputer so consider using another PC or if you have enough RAM on your PC loading the model in RAM and do (slower) CPU inference.\n\nOnce you have set everything up, just enter a basic prompt with the style of picture and subject(s) and the LLM will hopefully spit out a formatted prompt with (possibly) relevant additional tags to your prompt.\n\nWARNING WARNING WARNING!!!! WARNING WARNING WARNING!!!! WARNING WARNING WARNING!!!!\n\nThe model I listed above is like a thirsty kid from 4chan who forgot to take their meds. I am not joking when I say it can and will add random totally NSFW/NSFL combinations of things to your prompt. Take care who/where/how you use this. I am not responsible if the LLM hijacks your prompt for \"a baby panda\" in the middle of a discord stream and you get a picture of \"a panda with breasts sitting on a bamboo spike\"... or worse.\n\nWARNING WARNING WARNING!!!! WARNING WARNING WARNING!!!! WARNING WARNING WARNING!!!!\n\nNOTE: The seed for the AI node does nothing. It is only there to ensure a new prompt is generated each run. If you want the prompt to stay fixed then change control after generate to be fixed. "
],
"color": "#223",
"bgcolor": "#335",
"shape": 1
},
{
"id": 23,
"type": "OpenAINode",
"pos": [
537,
525
],
"size": {
"0": 423.8551330566406,
"1": 264.0000305175781
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "prompt",
"type": "STRING",
"link": 31,
"widget": {
"name": "prompt"
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
32,
33
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OpenAINode"
},
"widgets_values": [
"A world without prompts",
"http://127.0.0.1:1234/v1",
"BadPanda",
1,
"You are a prompt generation AI. your task is to take a user input for a stable difusion prompt and output and expand the supplied prompt in a stable difusion format to provide better output. Do not deviate from the format. Do not output anything other than a stable diffusion prompt.",
"<|im_end|>",
250,
719455151432815,
"randomize"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 5,
"type": "CLIPTextEncode",
"pos": [
1040,
487
],
"size": {
"0": 393.8684997558594,
"1": 54
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 8
},
{
"name": "text",
"type": "STRING",
"link": 33,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
23
],
"shape": 3,
"slot_index": 0
}
],
"title": "Positive Prompt Encode",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
1040,
850
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 9
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
24
],
"shape": 3,
"slot_index": 0
}
],
"title": "Negative Prompt Encode",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 19,
"type": "PatchModelAddDownscale",
"pos": [
1039,
1100
],
"size": {
"0": 376.87188720703125,
"1": 202
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 18
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
19
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "PatchModelAddDownscale"
},
"widgets_values": [
4,
2,
0,
0.35,
true,
"bicubic",
"bicubic"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 8,
"type": "String",
"pos": [
537,
840
],
"size": {
"0": 421.69024658203125,
"1": 202.86424255371094
},
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
31
],
"shape": 3,
"slot_index": 0
}
],
"title": "Input prompt for LLM",
"properties": {
"Node name for S&R": "String"
},
"widgets_values": [
"drawing of a stupid panda eating dynamite"
],
"color": "#432",
"bgcolor": "#653"
}
],
"links": [
[
7,
9,
1,
11,
0,
"CLIP"
],
[
8,
11,
0,
5,
0,
"CLIP"
],
[
9,
11,
0,
6,
0,
"CLIP"
],
[
13,
13,
0,
14,
0,
"IMAGE"
],
[
14,
10,
0,
13,
0,
"LATENT"
],
[
17,
18,
4,
10,
3,
"LATENT"
],
[
18,
9,
0,
19,
0,
"MODEL"
],
[
19,
19,
0,
10,
0,
"MODEL"
],
[
23,
5,
0,
10,
1,
"CONDITIONING"
],
[
24,
6,
0,
10,
2,
"CONDITIONING"
],
[
31,
8,
0,
23,
0,
"STRING"
],
[
32,
23,
0,
4,
0,
"STRING"
],
[
33,
23,
0,
5,
1,
"STRING"
],
[
34,
9,
2,
13,
1,
"VAE"
]
],
"groups": [
{
"title": "IMPORTANT INFO",
"bounding": [
93,
7,
726,
436
],
"color": "#b58b2a",
"font_size": 24,
"locked": false
}
],
"config": {},
"extra": {},
"version": 0.4
}