forked from MixLabPro/comfyui-mixlab-nodes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path5-gpt-workflow.json
More file actions
620 lines (620 loc) · 18 KB
/
5-gpt-workflow.json
File metadata and controls
620 lines (620 loc) · 18 KB
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
{
"last_node_id": 46,
"last_link_id": 42,
"nodes": [
{
"id": 27,
"type": "CLIPTextEncode",
"pos": [
1961.178268896482,
527.6060791015625
],
"size": {
"0": 422.84503173828125,
"1": 164.31304931640625
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 24
},
{
"name": "text",
"type": "STRING",
"link": 42,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
21
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"beautiful scenery nature glass bottle landscape, , purple galaxy bottle,"
]
},
{
"id": 28,
"type": "CLIPTextEncode",
"pos": [
1958.7452854980445,
266
],
"size": {
"0": 425.27801513671875,
"1": 180.6060791015625
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 25
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
22
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"text, watermark"
]
},
{
"id": 24,
"type": "KSampler",
"pos": [
2434.0233006347635,
80
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 20
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 21
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 22
},
{
"name": "latent_image",
"type": "LATENT",
"link": 23
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
26
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
261818020972971,
"randomize",
15,
8,
"euler",
"karras",
1
]
},
{
"id": 29,
"type": "VAEDecode",
"pos": [
2799.0233006347635,
80
],
"size": {
"0": 210,
"1": 46
},
"flags": {
"collapsed": false
},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 26
},
{
"name": "vae",
"type": "VAE",
"link": 27
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
31
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 26,
"type": "EmptyLatentImage",
"pos": [
2069.0233006347635,
80
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
23
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
512,
512,
1
]
},
{
"id": 25,
"type": "CheckpointLoaderSimple",
"pos": [
1593.7452854980445,
80
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
20
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
24,
25
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
27
],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"deliberate_v2.safetensors"
]
},
{
"id": 31,
"type": "PreviewImage",
"pos": [
2439,
408
],
"size": {
"0": 563.4671630859375,
"1": 720.8866577148438
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 31
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 44,
"type": "ShowTextForGPT",
"pos": [
1171,
425
],
"size": [
432.46002197265625,
264.40771484375
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 40,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": null,
"shape": 6
}
],
"properties": {
"Node name for S&R": "ShowTextForGPT"
},
"widgets_values": [
"[\n {\n \"role\": \"system\",\n \"content\": \"你现在充当stable diffsion 提示词专家,根据我输入的场景或需求描述,生成提示词,由stable diffsion根据你的提示词生成画面。stable diffusion是文本到图像的扩散模型。你的任务是在各种情况下产生适当的提示,引导人工智能创造出所需的图像。\\n\\n一个优秀的提示词需要遵循下面的规范:\\n\\n“““\\n\\n简洁明了:避免过于复杂或模糊的描述,以免造成模型的混乱或错误。\\n\\n具体细致:提供足够的细节,以便模型能够准确地捕捉想要生成的图片的特征。\\n\\n逻辑连贯:避免出现矛盾或不合理的描述,以免影响模型的理解和生成。\\n\\n创意独特:有创意,展示自己的想象力和个性,以便模型能够生成有趣和新颖的图片。\\n\\n我建议你可以参考以下几个步骤思考:\\n\\n• 确定主题:首先,你需要确定想要生成图片的主题,例如风景、动物、人物等。\\n\\n• 确定风格:其次,根据主题要求,确定合适的风格(如极简、现代)或根据主题(人物、风景等)调整提示词的语言风格、词汇和描述角度。\\n\\n• 选择关键词:再次,你需要选择一些能够描述主题的关键词,常用的关键词类别包括:主体、媒介、风格、画家、网站、分辨率、额外细节、色调和光影。 可以使用名人的名字作为关键词,来控制人物形象,因为他们在训练集中出现频次较大而训练充分。\\n\\n• 组合句子:然后,你需要将关键词组合成一个或多个简单句子,提示词的句式通常如:【图片的风格】,【内容主题 】,【 细节描述】,【 绘画风格或者艺术家风格】, 用逗号或分号隔开,例如a blue sky with white clouds, a green field with yellow flowers。\\n\\n• 调整细节:最后,根据告诉你的内容主题,尽可能细致刻画画面,譬如,要画“大海”,你需要给出类似这样的提示:梦幻的大海,白沙滩岸边铺满了粉色的玫瑰花,月光轻柔的人洒在海面上,绿色发光的海浪。对于细节描述,我们可以拆分【形容词】+【视角】+【时间】+【颜色】+【其他】,形容词可以是梦幻,神秘,浪漫或者写实 ……视角可以是:超广角,俯视和仰视 ……,时间:秋天,清晨,黄昏,夜晚 ……,颜色可以是 红黄绿蓝橙紫……,其他可以包含图片的尺寸,4k,8k ,HD,光效,高细节等。\\n\\n• 如果想让生成的图片更加的艺术化、风格化,可以考虑在 提示词中添加绘画风格和艺术家。艺术绘画风格可以是一些美术风格:梵高风格,油画,水彩,古风,CG感,动漫,少女,赛博朋克,卡通画,中国画,黄昏等等,艺术家风格包含:现实主义,印象派,野兽派,新艺术,表现主义,立体主义,未来主义等等\\n\\n• 以简洁的英语输出。输出完整提示词后,把它翻译成中文,然后保留英语版本备用。\\n\\n“““\\n\\n为了让你更好的理解提示词,我收集了一些表现效果较好的提示词案例,你可以对照上面的规则学习吸收:\\n\\n“““\\n\\nMaximalist chaotic buenos aires, birds eye view, illustrated by hergé, style of tin tin comics, pen and ink\\n\\nHyper -realistic girl in blue coat, left in the woods, weird, otherworldly, real, vintage photograph, film set, 85mm lens, f/2.8 aperture\\n\\ninstagram photo of a Japanese and Scandinavian design style living room with lots of golden light, hyperrealistic surrealism, award winning masterpiece with incredible details\\n\\nPortrait of an owl, steampunk, indigo blue, colorful, illustration, highly detailed, simple, smooth, and clean vector, no jagged lines, vector art, smooth, made all with grey colored gears inspired by future technology\\n\\n“““\\n\\n请通过回复 “确认 “来确认你是否理解了这项任务。然后我将向你发送第一条命令。\"\n },\n {\n \"role\": \"user\",\n \"content\": \"证件照,女生,请认真回答噢,很重要这个问题\"\n }\n]"
]
},
{
"id": 43,
"type": "ShowTextForGPT",
"pos": [
1166,
740
],
"size": [
424.00797187258513,
430.6391176555039
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 39,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": null,
"shape": 6
}
],
"properties": {
"Node name for S&R": "ShowTextForGPT"
},
"widgets_values": [
"[\n {\n \"role\": \"user\",\n \"content\": \"\"\n },\n {\n \"role\": \"assistant\",\n \"content\": \"ChatGPT is an artificial intelligence chatbot program launched by OpenAI in November 2022. The program is based on a large language model GPT-3.5, trained with Instruction Tuning and Reinforcement Learning with Human Feedback (RLHF).\"\n },\n {\n \"role\": \"user\",\n \"content\": \"\"\n },\n {\n \"role\": \"assistant\",\n \"content\": \"GPT-3.5 is a language model developed by OpenAI, based on the Transformer architecture. It is designed to perform a wide range of natural language processing tasks, including language translation, text summarization, and text generation.\"\n },\n {\n \"role\": \"user\",\n \"content\": \"\"\n },\n {\n \"role\": \"assistant\",\n \"content\": \"Is there anything specific you would like to know about GPT-3.5? I am here to help.\"\n },\n {\n \"role\": \"user\",\n \"content\": \"今天天气\"\n },\n {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I am a text-based AI model and do not have the capability to access the current weather. However, I can tell you that it is likely to be a beautiful day, with the sun shining and a gentle breeze in the air. Enjoy your day!\"\n },\n {\n \"role\": \"user\",\n \"content\": \"今天天气不错噢,小明……\"\n },\n {\n \"role\": \"assistant\",\n \"content\": \"谢谢您的夸奖,不过我是一个人工智能模型,没有能力感知天气,只是通过语言理解回答问题。如果您需要查询当地的天气情况,建议您查询当地的天气预报。\"\n },\n {\n \"role\": \"user\",\n \"content\": \"今天天气不错噢,小明……\"\n },\n {\n \"role\": \"assistant\",\n \"content\": \"今天天气不错噢,小明……(这句话是重复的,之前已经回答过您的问题了。如果您需要查询当地的天气情况,建议您查询当地的天气预报。\"\n },\n {\n \"role\": \"user\",\n \"content\": \"证件照,女生\"\n },\n {\n \"role\": \"assistant\",\n \"content\": \"“女生分别为: Cut out of a colorful plaid skirt and white shirt, faced front, with a friendly smile, blonde-haired girl, age 22, blue eyes, naturalistic, clear, bright, young,以及人像,摄于户外,背景为美丽的自然风光,使用的相机是佳能5D Mark IV,镜头焦距为50mm,拍摄模式为肖像模式,使用的后期处理软件为Adobe Lightroom和Photoshop。\"\n },\n {\n \"role\": \"user\",\n \"content\": \"证件照,女生\"\n },\n {\n \"role\": \"assistant\",\n \"content\": \"• 拍摄证件照,要求提供女生的照片,背景可以是一片白色的天空,或者一片纯色的草地,不能有杂色。\\n• 视角应该从 above,即从上方俯视,让女生显得稳定自信。\\n• 时间应该选择在阳光明媚的早晨,这样可以让女生看起来更加青春活力。\\n• 颜色可以选择蓝色,这种颜色可以让人感到清新自然。\\n• 照片应该有高清清晰的效果,不能有模糊模糊的现象。\\n• 照片的尺寸可以选择2K或者4K,这样可以让照片更加清晰。\\n• 光效可以选择自然光,这样可以让照片看起来更加自然。\\n• 照片的风格可以选择日系或者韩系,这样可以让照片看起来更加时尚。\\n• 照片的背景可以选择浅色系,这样可以让照片看起来更加清新自然。\\n• 照片中不能有重大的人物或者动物,否则需要事先沟通好。\\n• 照片中不能有太强烈的光线或者阴影,需要调整好光线和阴影的平衡,使照片更加均匀。\\n• 照片中不能有太多的文字或者文字的内容,需要将文字或者文字的内容进行处理。\\n• 在拍摄证件照之前,需要让女生进行一些准备,比如保持好心态,调整好光线,保持好角度等等。\\n• 拍摄完证件照之后,需要将照片进行一些处理,比如进行美颜,磨皮,瘦脸等等。\"\n },\n {\n \"role\": \"user\",\n \"content\": \"证件照,女生,请认真回答噢,很重要这个问题\"\n },\n {\n \"role\": \"assistant\",\n \"content\": \"确认\"\n }\n]"
]
},
{
"id": 45,
"type": "ShowTextForGPT",
"pos": [
1092,
262
],
"size": [
635.8358236838778,
101.46092513017766
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 41,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": null,
"shape": 6
}
],
"properties": {
"Node name for S&R": "ShowTextForGPT"
},
"widgets_values": [
"确认"
]
},
{
"id": 42,
"type": "ChatGPT",
"pos": [
611,
285
],
"size": [
417.3319772767625,
531.1873476643206
],
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [
41,
42
],
"shape": 3,
"slot_index": 0
},
{
"name": "messages",
"type": "STRING",
"links": [
40
],
"shape": 3,
"slot_index": 1
},
{
"name": "session_history",
"type": "STRING",
"links": [
39
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "ChatGPT"
}
}
],
"links": [
[
2,
4,
0,
5,
0,
"STRING"
],
[
3,
6,
0,
4,
0,
"STRING"
],
[
4,
6,
1,
7,
0,
"JSON"
],
[
8,
10,
0,
11,
0,
"STRING"
],
[
12,
10,
1,
14,
0,
"STRING"
],
[
13,
10,
1,
16,
0,
"JSON"
],
[
20,
25,
0,
24,
0,
"MODEL"
],
[
21,
27,
0,
24,
1,
"CONDITIONING"
],
[
22,
28,
0,
24,
2,
"CONDITIONING"
],
[
23,
26,
0,
24,
3,
"LATENT"
],
[
24,
25,
1,
27,
0,
"CLIP"
],
[
25,
25,
1,
28,
0,
"CLIP"
],
[
26,
24,
0,
29,
0,
"LATENT"
],
[
27,
25,
2,
29,
1,
"VAE"
],
[
31,
29,
0,
31,
0,
"IMAGE"
],
[
39,
42,
2,
43,
0,
"STRING"
],
[
40,
42,
1,
44,
0,
"STRING"
],
[
41,
42,
0,
45,
0,
"STRING"
],
[
42,
42,
0,
27,
1,
"STRING"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}