Your Name commited on
Commit
70d472b
·
1 Parent(s): 431ce81

working on workflow script

Browse files
.gitignore CHANGED
@@ -1,4 +1,5 @@
1
  venv
2
  .env
3
  .idea/
4
- ComfyUI
 
 
1
  venv
2
  .env
3
  .idea/
4
+ __pycache__/
5
+ ComfyUI/
FaceEnhancementProd.json ADDED
@@ -0,0 +1,1675 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "ec1f729c-d164-435a-adb9-3a8e8f24a1e3",
3
+ "revision": 0,
4
+ "last_node_id": 134,
5
+ "last_link_id": 222,
6
+ "nodes": [
7
+ {
8
+ "id": 97,
9
+ "type": "Reroute",
10
+ "pos": [
11
+ 621.4758911132812,
12
+ 1410.3482666015625
13
+ ],
14
+ "size": [
15
+ 75,
16
+ 26
17
+ ],
18
+ "flags": {},
19
+ "order": 17,
20
+ "mode": 0,
21
+ "inputs": [
22
+ {
23
+ "name": "",
24
+ "type": "*",
25
+ "link": 160
26
+ }
27
+ ],
28
+ "outputs": [
29
+ {
30
+ "name": "",
31
+ "type": "VAE",
32
+ "slot_index": 0,
33
+ "links": [
34
+ 157,
35
+ 158,
36
+ 191
37
+ ]
38
+ }
39
+ ],
40
+ "properties": {
41
+ "showOutputText": false,
42
+ "horizontal": false
43
+ }
44
+ },
45
+ {
46
+ "id": 123,
47
+ "type": "Image Comparer (rgthree)",
48
+ "pos": [
49
+ 2166.79833984375,
50
+ 1418.202880859375
51
+ ],
52
+ "size": [
53
+ 476.6938171386719,
54
+ 546.7750854492188
55
+ ],
56
+ "flags": {},
57
+ "order": 29,
58
+ "mode": 0,
59
+ "inputs": [
60
+ {
61
+ "dir": 3,
62
+ "name": "image_a",
63
+ "type": "IMAGE",
64
+ "link": 206
65
+ },
66
+ {
67
+ "dir": 3,
68
+ "name": "image_b",
69
+ "type": "IMAGE",
70
+ "link": 208
71
+ }
72
+ ],
73
+ "outputs": [],
74
+ "properties": {
75
+ "cnr_id": "rgthree-comfy",
76
+ "ver": "b84f39c7c224de765de0b54c55b967329011819d",
77
+ "comparer_mode": "Slide",
78
+ "aux_id": "rgthree/rgthree-comfy"
79
+ },
80
+ "widgets_values": [
81
+ [
82
+ {
83
+ "name": "A",
84
+ "selected": true,
85
+ "url": "/api/view?filename=rgthree.compare._temp_bikvi_00001_.png&type=temp&subfolder=&rand=0.3573763312590408"
86
+ },
87
+ {
88
+ "name": "B",
89
+ "selected": true,
90
+ "url": "/api/view?filename=rgthree.compare._temp_bikvi_00002_.png&type=temp&subfolder=&rand=0.1379430430729296"
91
+ }
92
+ ]
93
+ ]
94
+ },
95
+ {
96
+ "id": 118,
97
+ "type": "FaceAnalysisModels",
98
+ "pos": [
99
+ 1311.7503662109375,
100
+ 2008.2781982421875
101
+ ],
102
+ "size": [
103
+ 315,
104
+ 82
105
+ ],
106
+ "flags": {},
107
+ "order": 0,
108
+ "mode": 0,
109
+ "inputs": [],
110
+ "outputs": [
111
+ {
112
+ "name": "ANALYSIS_MODELS",
113
+ "type": "ANALYSIS_MODELS",
114
+ "slot_index": 0,
115
+ "links": [
116
+ 196
117
+ ]
118
+ }
119
+ ],
120
+ "properties": {
121
+ "cnr_id": "comfyui_faceanalysis",
122
+ "ver": "8251fab13bf339eb389b1691153755118fd7a026",
123
+ "Node name for S&R": "FaceAnalysisModels",
124
+ "aux_id": "cubiq/ComfyUI_FaceAnalysis"
125
+ },
126
+ "widgets_values": [
127
+ "insightface",
128
+ "CUDA"
129
+ ]
130
+ },
131
+ {
132
+ "id": 98,
133
+ "type": "Reroute",
134
+ "pos": [
135
+ 367.4774475097656,
136
+ 728.5109252929688
137
+ ],
138
+ "size": [
139
+ 75,
140
+ 26
141
+ ],
142
+ "flags": {},
143
+ "order": 16,
144
+ "mode": 0,
145
+ "inputs": [
146
+ {
147
+ "name": "",
148
+ "type": "*",
149
+ "link": 163
150
+ }
151
+ ],
152
+ "outputs": [
153
+ {
154
+ "name": "",
155
+ "type": "IMAGE",
156
+ "slot_index": 0,
157
+ "links": [
158
+ 161,
159
+ 162,
160
+ 206
161
+ ]
162
+ }
163
+ ],
164
+ "properties": {
165
+ "showOutputText": false,
166
+ "horizontal": false
167
+ }
168
+ },
169
+ {
170
+ "id": 126,
171
+ "type": "Note",
172
+ "pos": [
173
+ -596.5314331054688,
174
+ 188.32418823242188
175
+ ],
176
+ "size": [
177
+ 230.86343383789062,
178
+ 88
179
+ ],
180
+ "flags": {},
181
+ "order": 1,
182
+ "mode": 0,
183
+ "inputs": [],
184
+ "outputs": [],
185
+ "properties": {},
186
+ "widgets_values": [
187
+ "The target image to face enhance"
188
+ ],
189
+ "color": "#432",
190
+ "bgcolor": "#653"
191
+ },
192
+ {
193
+ "id": 125,
194
+ "type": "Note",
195
+ "pos": [
196
+ -593.9556884765625,
197
+ 772.0499877929688
198
+ ],
199
+ "size": [
200
+ 230.86343383789062,
201
+ 88
202
+ ],
203
+ "flags": {},
204
+ "order": 2,
205
+ "mode": 0,
206
+ "inputs": [],
207
+ "outputs": [],
208
+ "properties": {},
209
+ "widgets_values": [
210
+ "The reference face image"
211
+ ],
212
+ "color": "#432",
213
+ "bgcolor": "#653"
214
+ },
215
+ {
216
+ "id": 127,
217
+ "type": "Note",
218
+ "pos": [
219
+ -538.2857666015625,
220
+ 1239.5035400390625
221
+ ],
222
+ "size": [
223
+ 230.86343383789062,
224
+ 88
225
+ ],
226
+ "flags": {},
227
+ "order": 3,
228
+ "mode": 0,
229
+ "inputs": [],
230
+ "outputs": [],
231
+ "properties": {},
232
+ "widgets_values": [
233
+ "Positive/negative prompts are optional"
234
+ ],
235
+ "color": "#432",
236
+ "bgcolor": "#653"
237
+ },
238
+ {
239
+ "id": 124,
240
+ "type": "Reroute",
241
+ "pos": [
242
+ 2035.27978515625,
243
+ 1079.953125
244
+ ],
245
+ "size": [
246
+ 75,
247
+ 26
248
+ ],
249
+ "flags": {},
250
+ "order": 28,
251
+ "mode": 0,
252
+ "inputs": [
253
+ {
254
+ "name": "",
255
+ "type": "*",
256
+ "link": 207
257
+ }
258
+ ],
259
+ "outputs": [
260
+ {
261
+ "name": "",
262
+ "type": "IMAGE",
263
+ "slot_index": 0,
264
+ "links": [
265
+ 208,
266
+ 210,
267
+ 211
268
+ ]
269
+ }
270
+ ],
271
+ "properties": {
272
+ "showOutputText": false,
273
+ "horizontal": false
274
+ }
275
+ },
276
+ {
277
+ "id": 122,
278
+ "type": "BasicGuider",
279
+ "pos": [
280
+ 1313.324462890625,
281
+ 981.9154052734375
282
+ ],
283
+ "size": [
284
+ 241.79998779296875,
285
+ 46
286
+ ],
287
+ "flags": {},
288
+ "order": 25,
289
+ "mode": 0,
290
+ "inputs": [
291
+ {
292
+ "name": "model",
293
+ "type": "MODEL",
294
+ "link": 217
295
+ },
296
+ {
297
+ "name": "conditioning",
298
+ "type": "CONDITIONING",
299
+ "link": 203
300
+ }
301
+ ],
302
+ "outputs": [
303
+ {
304
+ "name": "GUIDER",
305
+ "type": "GUIDER",
306
+ "slot_index": 0,
307
+ "links": [
308
+ 202
309
+ ]
310
+ }
311
+ ],
312
+ "properties": {
313
+ "cnr_id": "comfy-core",
314
+ "ver": "0.3.28",
315
+ "Node name for S&R": "BasicGuider"
316
+ },
317
+ "widgets_values": []
318
+ },
319
+ {
320
+ "id": 42,
321
+ "type": "CLIPTextEncode",
322
+ "pos": [
323
+ 224.627685546875,
324
+ 1002.7890014648438
325
+ ],
326
+ "size": [
327
+ 400,
328
+ 200
329
+ ],
330
+ "flags": {},
331
+ "order": 18,
332
+ "mode": 0,
333
+ "inputs": [
334
+ {
335
+ "name": "clip",
336
+ "type": "CLIP",
337
+ "link": 172
338
+ }
339
+ ],
340
+ "outputs": [
341
+ {
342
+ "name": "CONDITIONING",
343
+ "type": "CONDITIONING",
344
+ "links": [
345
+ 87
346
+ ]
347
+ }
348
+ ],
349
+ "properties": {
350
+ "cnr_id": "comfy-core",
351
+ "ver": "0.3.28",
352
+ "Node name for S&R": "CLIPTextEncode"
353
+ },
354
+ "widgets_values": [
355
+ ""
356
+ ]
357
+ },
358
+ {
359
+ "id": 37,
360
+ "type": "ControlNetApplyAdvanced",
361
+ "pos": [
362
+ 837.775634765625,
363
+ 1001.7030029296875
364
+ ],
365
+ "size": [
366
+ 315,
367
+ 186
368
+ ],
369
+ "flags": {},
370
+ "order": 23,
371
+ "mode": 0,
372
+ "inputs": [
373
+ {
374
+ "name": "positive",
375
+ "type": "CONDITIONING",
376
+ "link": 87
377
+ },
378
+ {
379
+ "name": "negative",
380
+ "type": "CONDITIONING",
381
+ "link": 88
382
+ },
383
+ {
384
+ "name": "control_net",
385
+ "type": "CONTROL_NET",
386
+ "link": 89
387
+ },
388
+ {
389
+ "name": "image",
390
+ "type": "IMAGE",
391
+ "link": 162
392
+ },
393
+ {
394
+ "name": "vae",
395
+ "shape": 7,
396
+ "type": "VAE",
397
+ "link": 157
398
+ }
399
+ ],
400
+ "outputs": [
401
+ {
402
+ "name": "positive",
403
+ "type": "CONDITIONING",
404
+ "slot_index": 0,
405
+ "links": [
406
+ 203
407
+ ]
408
+ },
409
+ {
410
+ "name": "negative",
411
+ "type": "CONDITIONING",
412
+ "links": []
413
+ }
414
+ ],
415
+ "properties": {
416
+ "cnr_id": "comfy-core",
417
+ "ver": "0.3.28",
418
+ "Node name for S&R": "ControlNetApplyAdvanced"
419
+ },
420
+ "widgets_values": [
421
+ 1,
422
+ 0.1,
423
+ 0.8
424
+ ]
425
+ },
426
+ {
427
+ "id": 35,
428
+ "type": "VAEEncode",
429
+ "pos": [
430
+ 1320.22705078125,
431
+ 888.8261108398438
432
+ ],
433
+ "size": [
434
+ 210,
435
+ 46
436
+ ],
437
+ "flags": {},
438
+ "order": 22,
439
+ "mode": 0,
440
+ "inputs": [
441
+ {
442
+ "name": "pixels",
443
+ "type": "IMAGE",
444
+ "link": 161
445
+ },
446
+ {
447
+ "name": "vae",
448
+ "type": "VAE",
449
+ "link": 158
450
+ }
451
+ ],
452
+ "outputs": [
453
+ {
454
+ "name": "LATENT",
455
+ "type": "LATENT",
456
+ "links": [
457
+ 72
458
+ ]
459
+ }
460
+ ],
461
+ "properties": {
462
+ "cnr_id": "comfy-core",
463
+ "ver": "0.3.28",
464
+ "Node name for S&R": "VAEEncode"
465
+ },
466
+ "widgets_values": []
467
+ },
468
+ {
469
+ "id": 23,
470
+ "type": "CLIPTextEncode",
471
+ "pos": [
472
+ 228.5153350830078,
473
+ 1266.098388671875
474
+ ],
475
+ "size": [
476
+ 400,
477
+ 200
478
+ ],
479
+ "flags": {
480
+ "collapsed": true
481
+ },
482
+ "order": 19,
483
+ "mode": 0,
484
+ "inputs": [
485
+ {
486
+ "name": "clip",
487
+ "type": "CLIP",
488
+ "link": 173
489
+ }
490
+ ],
491
+ "outputs": [
492
+ {
493
+ "name": "CONDITIONING",
494
+ "type": "CONDITIONING",
495
+ "links": [
496
+ 88
497
+ ]
498
+ }
499
+ ],
500
+ "properties": {
501
+ "cnr_id": "comfy-core",
502
+ "ver": "0.3.28",
503
+ "Node name for S&R": "CLIPTextEncode"
504
+ },
505
+ "widgets_values": [
506
+ ""
507
+ ]
508
+ },
509
+ {
510
+ "id": 128,
511
+ "type": "SaveImage",
512
+ "pos": [
513
+ 2184.40869140625,
514
+ 882.2232666015625
515
+ ],
516
+ "size": [
517
+ 440.4703063964844,
518
+ 463.7738952636719
519
+ ],
520
+ "flags": {},
521
+ "order": 31,
522
+ "mode": 0,
523
+ "inputs": [
524
+ {
525
+ "name": "images",
526
+ "type": "IMAGE",
527
+ "link": 211
528
+ }
529
+ ],
530
+ "outputs": [],
531
+ "properties": {
532
+ "cnr_id": "comfy-core",
533
+ "ver": "0.3.28",
534
+ "Node name for S&R": "SaveImage"
535
+ },
536
+ "widgets_values": [
537
+ "FaceEnhanced",
538
+ ""
539
+ ]
540
+ },
541
+ {
542
+ "id": 121,
543
+ "type": "Display Any (rgthree)",
544
+ "pos": [
545
+ 2242.676513671875,
546
+ 2028.4595947265625
547
+ ],
548
+ "size": [
549
+ 264.5999755859375,
550
+ 88
551
+ ],
552
+ "flags": {},
553
+ "order": 33,
554
+ "mode": 0,
555
+ "inputs": [
556
+ {
557
+ "dir": 3,
558
+ "name": "source",
559
+ "type": "*",
560
+ "link": 201
561
+ }
562
+ ],
563
+ "outputs": [],
564
+ "properties": {
565
+ "cnr_id": "rgthree-comfy",
566
+ "ver": "b84f39c7c224de765de0b54c55b967329011819d",
567
+ "Node name for S&R": "Display Any (rgthree)",
568
+ "aux_id": "rgthree/rgthree-comfy"
569
+ },
570
+ "widgets_values": [
571
+ ""
572
+ ]
573
+ },
574
+ {
575
+ "id": 129,
576
+ "type": "SaveImage",
577
+ "pos": [
578
+ 2185.483154296875,
579
+ 2173.050537109375
580
+ ],
581
+ "size": [
582
+ 440.4703063964844,
583
+ 463.7738952636719
584
+ ],
585
+ "flags": {},
586
+ "order": 32,
587
+ "mode": 0,
588
+ "inputs": [
589
+ {
590
+ "name": "images",
591
+ "type": "IMAGE",
592
+ "link": 212
593
+ }
594
+ ],
595
+ "outputs": [],
596
+ "properties": {
597
+ "cnr_id": "comfy-core",
598
+ "ver": "0.3.28",
599
+ "Node name for S&R": "SaveImage"
600
+ },
601
+ "widgets_values": [
602
+ "FaceEmbedDist",
603
+ ""
604
+ ]
605
+ },
606
+ {
607
+ "id": 1,
608
+ "type": "SamplerCustomAdvanced",
609
+ "pos": [
610
+ 1767.5123291015625,
611
+ 874.9805908203125
612
+ ],
613
+ "size": [
614
+ 355.20001220703125,
615
+ 106
616
+ ],
617
+ "flags": {},
618
+ "order": 26,
619
+ "mode": 0,
620
+ "inputs": [
621
+ {
622
+ "name": "noise",
623
+ "type": "NOISE",
624
+ "link": 68
625
+ },
626
+ {
627
+ "name": "guider",
628
+ "type": "GUIDER",
629
+ "link": 202
630
+ },
631
+ {
632
+ "name": "sampler",
633
+ "type": "SAMPLER",
634
+ "link": 70
635
+ },
636
+ {
637
+ "name": "sigmas",
638
+ "type": "SIGMAS",
639
+ "link": 214
640
+ },
641
+ {
642
+ "name": "latent_image",
643
+ "type": "LATENT",
644
+ "link": 72
645
+ }
646
+ ],
647
+ "outputs": [
648
+ {
649
+ "name": "output",
650
+ "type": "LATENT",
651
+ "slot_index": 0,
652
+ "links": [
653
+ 190
654
+ ]
655
+ },
656
+ {
657
+ "name": "denoised_output",
658
+ "type": "LATENT",
659
+ "links": null
660
+ }
661
+ ],
662
+ "properties": {
663
+ "cnr_id": "comfy-core",
664
+ "ver": "0.3.28",
665
+ "Node name for S&R": "SamplerCustomAdvanced"
666
+ },
667
+ "widgets_values": []
668
+ },
669
+ {
670
+ "id": 114,
671
+ "type": "VAEDecode",
672
+ "pos": [
673
+ 1771.2335205078125,
674
+ 1040.572021484375
675
+ ],
676
+ "size": [
677
+ 210,
678
+ 46
679
+ ],
680
+ "flags": {},
681
+ "order": 27,
682
+ "mode": 0,
683
+ "inputs": [
684
+ {
685
+ "name": "samples",
686
+ "type": "LATENT",
687
+ "link": 190
688
+ },
689
+ {
690
+ "name": "vae",
691
+ "type": "VAE",
692
+ "link": 191
693
+ }
694
+ ],
695
+ "outputs": [
696
+ {
697
+ "name": "IMAGE",
698
+ "type": "IMAGE",
699
+ "slot_index": 0,
700
+ "links": [
701
+ 207
702
+ ]
703
+ }
704
+ ],
705
+ "properties": {
706
+ "cnr_id": "comfy-core",
707
+ "ver": "0.3.28",
708
+ "Node name for S&R": "VAEDecode"
709
+ },
710
+ "widgets_values": []
711
+ },
712
+ {
713
+ "id": 50,
714
+ "type": "KSamplerSelect",
715
+ "pos": [
716
+ 1312.514404296875,
717
+ 1212.9171142578125
718
+ ],
719
+ "size": [
720
+ 315,
721
+ 58
722
+ ],
723
+ "flags": {},
724
+ "order": 4,
725
+ "mode": 0,
726
+ "inputs": [],
727
+ "outputs": [
728
+ {
729
+ "name": "SAMPLER",
730
+ "type": "SAMPLER",
731
+ "links": [
732
+ 70
733
+ ]
734
+ }
735
+ ],
736
+ "properties": {
737
+ "cnr_id": "comfy-core",
738
+ "ver": "0.3.28",
739
+ "Node name for S&R": "KSamplerSelect"
740
+ },
741
+ "widgets_values": [
742
+ "euler"
743
+ ]
744
+ },
745
+ {
746
+ "id": 131,
747
+ "type": "BasicScheduler",
748
+ "pos": [
749
+ 1313.8270263671875,
750
+ 1318.2603759765625
751
+ ],
752
+ "size": [
753
+ 315,
754
+ 106
755
+ ],
756
+ "flags": {},
757
+ "order": 24,
758
+ "mode": 0,
759
+ "inputs": [
760
+ {
761
+ "name": "model",
762
+ "type": "MODEL",
763
+ "link": 216
764
+ }
765
+ ],
766
+ "outputs": [
767
+ {
768
+ "name": "SIGMAS",
769
+ "type": "SIGMAS",
770
+ "slot_index": 0,
771
+ "links": [
772
+ 214
773
+ ]
774
+ }
775
+ ],
776
+ "properties": {
777
+ "cnr_id": "comfy-core",
778
+ "ver": "0.3.28",
779
+ "Node name for S&R": "BasicScheduler"
780
+ },
781
+ "widgets_values": [
782
+ "beta",
783
+ 28,
784
+ 0.75
785
+ ]
786
+ },
787
+ {
788
+ "id": 39,
789
+ "type": "RandomNoise",
790
+ "pos": [
791
+ 1311.832763671875,
792
+ 1088.896728515625
793
+ ],
794
+ "size": [
795
+ 315,
796
+ 82
797
+ ],
798
+ "flags": {},
799
+ "order": 5,
800
+ "mode": 0,
801
+ "inputs": [],
802
+ "outputs": [
803
+ {
804
+ "name": "NOISE",
805
+ "type": "NOISE",
806
+ "links": [
807
+ 68
808
+ ]
809
+ }
810
+ ],
811
+ "properties": {
812
+ "cnr_id": "comfy-core",
813
+ "ver": "0.3.28",
814
+ "Node name for S&R": "RandomNoise"
815
+ },
816
+ "widgets_values": [
817
+ 1,
818
+ "fixed"
819
+ ]
820
+ },
821
+ {
822
+ "id": 24,
823
+ "type": "LoadImage",
824
+ "pos": [
825
+ -352.1936340332031,
826
+ 770.800537109375
827
+ ],
828
+ "size": [
829
+ 404.0055236816406,
830
+ 404.2244567871094
831
+ ],
832
+ "flags": {},
833
+ "order": 6,
834
+ "mode": 0,
835
+ "inputs": [],
836
+ "outputs": [
837
+ {
838
+ "name": "IMAGE",
839
+ "type": "IMAGE",
840
+ "slot_index": 0,
841
+ "links": [
842
+ 176
843
+ ]
844
+ },
845
+ {
846
+ "name": "MASK",
847
+ "type": "MASK",
848
+ "links": null
849
+ }
850
+ ],
851
+ "properties": {
852
+ "cnr_id": "comfy-core",
853
+ "ver": "0.3.28",
854
+ "Node name for S&R": "LoadImage"
855
+ },
856
+ "widgets_values": [
857
+ "woman_face.jpg",
858
+ "image",
859
+ ""
860
+ ]
861
+ },
862
+ {
863
+ "id": 40,
864
+ "type": "LoadImage",
865
+ "pos": [
866
+ -351.87322998046875,
867
+ 188.0283966064453
868
+ ],
869
+ "size": [
870
+ 433.580322265625,
871
+ 523.640869140625
872
+ ],
873
+ "flags": {},
874
+ "order": 7,
875
+ "mode": 0,
876
+ "inputs": [],
877
+ "outputs": [
878
+ {
879
+ "name": "IMAGE",
880
+ "type": "IMAGE",
881
+ "slot_index": 0,
882
+ "links": [
883
+ 163
884
+ ]
885
+ },
886
+ {
887
+ "name": "MASK",
888
+ "type": "MASK",
889
+ "links": null
890
+ }
891
+ ],
892
+ "properties": {
893
+ "cnr_id": "comfy-core",
894
+ "ver": "0.3.28",
895
+ "Node name for S&R": "LoadImage"
896
+ },
897
+ "widgets_values": [
898
+ "woman1_gpt_2.png",
899
+ "image",
900
+ ""
901
+ ]
902
+ },
903
+ {
904
+ "id": 95,
905
+ "type": "VAELoader",
906
+ "pos": [
907
+ -265.02642822265625,
908
+ 1410.9061279296875
909
+ ],
910
+ "size": [
911
+ 315,
912
+ 58
913
+ ],
914
+ "flags": {},
915
+ "order": 8,
916
+ "mode": 0,
917
+ "inputs": [],
918
+ "outputs": [
919
+ {
920
+ "name": "VAE",
921
+ "type": "VAE",
922
+ "slot_index": 0,
923
+ "links": [
924
+ 160
925
+ ]
926
+ }
927
+ ],
928
+ "properties": {
929
+ "cnr_id": "comfy-core",
930
+ "ver": "0.3.28",
931
+ "Node name for S&R": "VAELoader"
932
+ },
933
+ "widgets_values": [
934
+ "ae.safetensors"
935
+ ]
936
+ },
937
+ {
938
+ "id": 94,
939
+ "type": "DualCLIPLoader",
940
+ "pos": [
941
+ -274.0904235839844,
942
+ 1235.6214599609375
943
+ ],
944
+ "size": [
945
+ 315,
946
+ 130
947
+ ],
948
+ "flags": {},
949
+ "order": 9,
950
+ "mode": 0,
951
+ "inputs": [],
952
+ "outputs": [
953
+ {
954
+ "name": "CLIP",
955
+ "type": "CLIP",
956
+ "slot_index": 0,
957
+ "links": [
958
+ 172,
959
+ 173
960
+ ]
961
+ }
962
+ ],
963
+ "properties": {
964
+ "cnr_id": "comfy-core",
965
+ "ver": "0.3.28",
966
+ "Node name for S&R": "DualCLIPLoader"
967
+ },
968
+ "widgets_values": [
969
+ "t5xxl_fp16.safetensors",
970
+ "clip_l.safetensors",
971
+ "flux",
972
+ "default"
973
+ ]
974
+ },
975
+ {
976
+ "id": 46,
977
+ "type": "PulidFluxInsightFaceLoader",
978
+ "pos": [
979
+ -300.94317626953125,
980
+ 1863.1434326171875
981
+ ],
982
+ "size": [
983
+ 365.4000244140625,
984
+ 58
985
+ ],
986
+ "flags": {},
987
+ "order": 10,
988
+ "mode": 0,
989
+ "inputs": [],
990
+ "outputs": [
991
+ {
992
+ "name": "FACEANALYSIS",
993
+ "type": "FACEANALYSIS",
994
+ "links": [
995
+ 218
996
+ ]
997
+ }
998
+ ],
999
+ "properties": {
1000
+ "aux_id": "balazik/ComfyUI-PuLID-Flux",
1001
+ "ver": "a80912fc3435c358607bf4b43a58dbcbebdb09ff",
1002
+ "Node name for S&R": "PulidFluxInsightFaceLoader"
1003
+ },
1004
+ "widgets_values": [
1005
+ "CUDA"
1006
+ ]
1007
+ },
1008
+ {
1009
+ "id": 45,
1010
+ "type": "PulidFluxEvaClipLoader",
1011
+ "pos": [
1012
+ -294.8002624511719,
1013
+ 1774.585693359375
1014
+ ],
1015
+ "size": [
1016
+ 362.79498291015625,
1017
+ 38.76161575317383
1018
+ ],
1019
+ "flags": {},
1020
+ "order": 11,
1021
+ "mode": 0,
1022
+ "inputs": [],
1023
+ "outputs": [
1024
+ {
1025
+ "name": "EVA_CLIP",
1026
+ "type": "EVA_CLIP",
1027
+ "links": [
1028
+ 219
1029
+ ]
1030
+ }
1031
+ ],
1032
+ "properties": {
1033
+ "aux_id": "balazik/ComfyUI-PuLID-Flux",
1034
+ "ver": "a80912fc3435c358607bf4b43a58dbcbebdb09ff",
1035
+ "Node name for S&R": "PulidFluxEvaClipLoader"
1036
+ },
1037
+ "widgets_values": []
1038
+ },
1039
+ {
1040
+ "id": 44,
1041
+ "type": "PulidFluxModelLoader",
1042
+ "pos": [
1043
+ -262.90264892578125,
1044
+ 1662.658447265625
1045
+ ],
1046
+ "size": [
1047
+ 315,
1048
+ 58
1049
+ ],
1050
+ "flags": {},
1051
+ "order": 12,
1052
+ "mode": 0,
1053
+ "inputs": [],
1054
+ "outputs": [
1055
+ {
1056
+ "name": "PULIDFLUX",
1057
+ "type": "PULIDFLUX",
1058
+ "links": [
1059
+ 220
1060
+ ]
1061
+ }
1062
+ ],
1063
+ "properties": {
1064
+ "aux_id": "balazik/ComfyUI-PuLID-Flux",
1065
+ "ver": "a80912fc3435c358607bf4b43a58dbcbebdb09ff",
1066
+ "Node name for S&R": "PulidFluxModelLoader"
1067
+ },
1068
+ "widgets_values": [
1069
+ "pulid_flux_v0.9.1.safetensors"
1070
+ ]
1071
+ },
1072
+ {
1073
+ "id": 93,
1074
+ "type": "UNETLoader",
1075
+ "pos": [
1076
+ -265.5894775390625,
1077
+ 1531.7340087890625
1078
+ ],
1079
+ "size": [
1080
+ 315,
1081
+ 82
1082
+ ],
1083
+ "flags": {},
1084
+ "order": 13,
1085
+ "mode": 0,
1086
+ "inputs": [],
1087
+ "outputs": [
1088
+ {
1089
+ "name": "MODEL",
1090
+ "type": "MODEL",
1091
+ "slot_index": 0,
1092
+ "links": [
1093
+ 221
1094
+ ]
1095
+ }
1096
+ ],
1097
+ "properties": {
1098
+ "cnr_id": "comfy-core",
1099
+ "ver": "0.3.28",
1100
+ "Node name for S&R": "UNETLoader"
1101
+ },
1102
+ "widgets_values": [
1103
+ "flux1-dev.safetensors",
1104
+ "default"
1105
+ ]
1106
+ },
1107
+ {
1108
+ "id": 105,
1109
+ "type": "Reroute",
1110
+ "pos": [
1111
+ 81.75617980957031,
1112
+ 771.7276611328125
1113
+ ],
1114
+ "size": [
1115
+ 75,
1116
+ 26
1117
+ ],
1118
+ "flags": {},
1119
+ "order": 15,
1120
+ "mode": 0,
1121
+ "inputs": [
1122
+ {
1123
+ "name": "",
1124
+ "type": "*",
1125
+ "link": 176
1126
+ }
1127
+ ],
1128
+ "outputs": [
1129
+ {
1130
+ "name": "",
1131
+ "type": "IMAGE",
1132
+ "slot_index": 0,
1133
+ "links": [
1134
+ 199,
1135
+ 222
1136
+ ]
1137
+ }
1138
+ ],
1139
+ "properties": {
1140
+ "showOutputText": false,
1141
+ "horizontal": false
1142
+ }
1143
+ },
1144
+ {
1145
+ "id": 41,
1146
+ "type": "SetUnionControlNetType",
1147
+ "pos": [
1148
+ 200.7367706298828,
1149
+ 1973.8323974609375
1150
+ ],
1151
+ "size": [
1152
+ 315,
1153
+ 58
1154
+ ],
1155
+ "flags": {},
1156
+ "order": 20,
1157
+ "mode": 0,
1158
+ "inputs": [
1159
+ {
1160
+ "name": "control_net",
1161
+ "type": "CONTROL_NET",
1162
+ "link": 94
1163
+ }
1164
+ ],
1165
+ "outputs": [
1166
+ {
1167
+ "name": "CONTROL_NET",
1168
+ "type": "CONTROL_NET",
1169
+ "links": [
1170
+ 89
1171
+ ]
1172
+ }
1173
+ ],
1174
+ "properties": {
1175
+ "cnr_id": "comfy-core",
1176
+ "ver": "0.3.28",
1177
+ "Node name for S&R": "SetUnionControlNetType"
1178
+ },
1179
+ "widgets_values": [
1180
+ "tile"
1181
+ ]
1182
+ },
1183
+ {
1184
+ "id": 49,
1185
+ "type": "ControlNetLoader",
1186
+ "pos": [
1187
+ -299.92938232421875,
1188
+ 1973.3970947265625
1189
+ ],
1190
+ "size": [
1191
+ 370.503173828125,
1192
+ 62.10068130493164
1193
+ ],
1194
+ "flags": {},
1195
+ "order": 14,
1196
+ "mode": 0,
1197
+ "inputs": [],
1198
+ "outputs": [
1199
+ {
1200
+ "name": "CONTROL_NET",
1201
+ "type": "CONTROL_NET",
1202
+ "links": [
1203
+ 94
1204
+ ]
1205
+ }
1206
+ ],
1207
+ "properties": {
1208
+ "cnr_id": "comfy-core",
1209
+ "ver": "0.3.28",
1210
+ "Node name for S&R": "ControlNetLoader"
1211
+ },
1212
+ "widgets_values": [
1213
+ "Flux_Dev_ControlNet_Union_Pro_ShakkerLabs.safetensors"
1214
+ ]
1215
+ },
1216
+ {
1217
+ "id": 133,
1218
+ "type": "ApplyPulidFlux",
1219
+ "pos": [
1220
+ 205.47418212890625,
1221
+ 1556.73681640625
1222
+ ],
1223
+ "size": [
1224
+ 315,
1225
+ 346
1226
+ ],
1227
+ "flags": {},
1228
+ "order": 21,
1229
+ "mode": 0,
1230
+ "inputs": [
1231
+ {
1232
+ "name": "model",
1233
+ "type": "MODEL",
1234
+ "link": 221
1235
+ },
1236
+ {
1237
+ "name": "pulid_flux",
1238
+ "type": "PULIDFLUX",
1239
+ "link": 220
1240
+ },
1241
+ {
1242
+ "name": "eva_clip",
1243
+ "type": "EVA_CLIP",
1244
+ "link": 219
1245
+ },
1246
+ {
1247
+ "name": "face_analysis",
1248
+ "type": "FACEANALYSIS",
1249
+ "link": 218
1250
+ },
1251
+ {
1252
+ "name": "image",
1253
+ "type": "IMAGE",
1254
+ "link": 222
1255
+ },
1256
+ {
1257
+ "name": "attn_mask",
1258
+ "shape": 7,
1259
+ "type": "MASK",
1260
+ "link": null
1261
+ },
1262
+ {
1263
+ "name": "prior_image",
1264
+ "shape": 7,
1265
+ "type": "IMAGE",
1266
+ "link": null
1267
+ }
1268
+ ],
1269
+ "outputs": [
1270
+ {
1271
+ "name": "MODEL",
1272
+ "type": "MODEL",
1273
+ "links": [
1274
+ 216,
1275
+ 217
1276
+ ]
1277
+ }
1278
+ ],
1279
+ "properties": {
1280
+ "aux_id": "balazik/ComfyUI-PuLID-Flux",
1281
+ "ver": "a80912fc3435c358607bf4b43a58dbcbebdb09ff",
1282
+ "Node name for S&R": "ApplyPulidFlux"
1283
+ },
1284
+ "widgets_values": [
1285
+ 0.7500000000000001,
1286
+ 0.10000000000000002,
1287
+ 1,
1288
+ "mean",
1289
+ 1,
1290
+ 0,
1291
+ 1000,
1292
+ true
1293
+ ]
1294
+ },
1295
+ {
1296
+ "id": 117,
1297
+ "type": "FaceEmbedDistance",
1298
+ "pos": [
1299
+ 1792.0877685546875,
1300
+ 2008.6629638671875
1301
+ ],
1302
+ "size": [
1303
+ 315,
1304
+ 170
1305
+ ],
1306
+ "flags": {},
1307
+ "order": 30,
1308
+ "mode": 0,
1309
+ "inputs": [
1310
+ {
1311
+ "name": "analysis_models",
1312
+ "type": "ANALYSIS_MODELS",
1313
+ "link": 196
1314
+ },
1315
+ {
1316
+ "name": "reference",
1317
+ "type": "IMAGE",
1318
+ "link": 199
1319
+ },
1320
+ {
1321
+ "name": "image",
1322
+ "type": "IMAGE",
1323
+ "link": 210
1324
+ }
1325
+ ],
1326
+ "outputs": [
1327
+ {
1328
+ "name": "IMAGE",
1329
+ "type": "IMAGE",
1330
+ "slot_index": 0,
1331
+ "links": [
1332
+ 212
1333
+ ]
1334
+ },
1335
+ {
1336
+ "name": "distance",
1337
+ "type": "FLOAT",
1338
+ "slot_index": 1,
1339
+ "links": [
1340
+ 201
1341
+ ]
1342
+ }
1343
+ ],
1344
+ "properties": {
1345
+ "cnr_id": "comfyui_faceanalysis",
1346
+ "ver": "8251fab13bf339eb389b1691153755118fd7a026",
1347
+ "Node name for S&R": "FaceEmbedDistance",
1348
+ "aux_id": "cubiq/ComfyUI_FaceAnalysis"
1349
+ },
1350
+ "widgets_values": [
1351
+ "cosine",
1352
+ 100,
1353
+ 0,
1354
+ true
1355
+ ]
1356
+ }
1357
+ ],
1358
+ "links": [
1359
+ [
1360
+ 68,
1361
+ 39,
1362
+ 0,
1363
+ 1,
1364
+ 0,
1365
+ "NOISE"
1366
+ ],
1367
+ [
1368
+ 70,
1369
+ 50,
1370
+ 0,
1371
+ 1,
1372
+ 2,
1373
+ "SAMPLER"
1374
+ ],
1375
+ [
1376
+ 72,
1377
+ 35,
1378
+ 0,
1379
+ 1,
1380
+ 4,
1381
+ "LATENT"
1382
+ ],
1383
+ [
1384
+ 87,
1385
+ 42,
1386
+ 0,
1387
+ 37,
1388
+ 0,
1389
+ "CONDITIONING"
1390
+ ],
1391
+ [
1392
+ 88,
1393
+ 23,
1394
+ 0,
1395
+ 37,
1396
+ 1,
1397
+ "CONDITIONING"
1398
+ ],
1399
+ [
1400
+ 89,
1401
+ 41,
1402
+ 0,
1403
+ 37,
1404
+ 2,
1405
+ "CONTROL_NET"
1406
+ ],
1407
+ [
1408
+ 94,
1409
+ 49,
1410
+ 0,
1411
+ 41,
1412
+ 0,
1413
+ "CONTROL_NET"
1414
+ ],
1415
+ [
1416
+ 157,
1417
+ 97,
1418
+ 0,
1419
+ 37,
1420
+ 4,
1421
+ "VAE"
1422
+ ],
1423
+ [
1424
+ 158,
1425
+ 97,
1426
+ 0,
1427
+ 35,
1428
+ 1,
1429
+ "VAE"
1430
+ ],
1431
+ [
1432
+ 160,
1433
+ 95,
1434
+ 0,
1435
+ 97,
1436
+ 0,
1437
+ "*"
1438
+ ],
1439
+ [
1440
+ 161,
1441
+ 98,
1442
+ 0,
1443
+ 35,
1444
+ 0,
1445
+ "IMAGE"
1446
+ ],
1447
+ [
1448
+ 162,
1449
+ 98,
1450
+ 0,
1451
+ 37,
1452
+ 3,
1453
+ "IMAGE"
1454
+ ],
1455
+ [
1456
+ 163,
1457
+ 40,
1458
+ 0,
1459
+ 98,
1460
+ 0,
1461
+ "*"
1462
+ ],
1463
+ [
1464
+ 172,
1465
+ 94,
1466
+ 0,
1467
+ 42,
1468
+ 0,
1469
+ "CLIP"
1470
+ ],
1471
+ [
1472
+ 173,
1473
+ 94,
1474
+ 0,
1475
+ 23,
1476
+ 0,
1477
+ "CLIP"
1478
+ ],
1479
+ [
1480
+ 176,
1481
+ 24,
1482
+ 0,
1483
+ 105,
1484
+ 0,
1485
+ "*"
1486
+ ],
1487
+ [
1488
+ 190,
1489
+ 1,
1490
+ 0,
1491
+ 114,
1492
+ 0,
1493
+ "LATENT"
1494
+ ],
1495
+ [
1496
+ 191,
1497
+ 97,
1498
+ 0,
1499
+ 114,
1500
+ 1,
1501
+ "VAE"
1502
+ ],
1503
+ [
1504
+ 196,
1505
+ 118,
1506
+ 0,
1507
+ 117,
1508
+ 0,
1509
+ "ANALYSIS_MODELS"
1510
+ ],
1511
+ [
1512
+ 199,
1513
+ 105,
1514
+ 0,
1515
+ 117,
1516
+ 1,
1517
+ "IMAGE"
1518
+ ],
1519
+ [
1520
+ 201,
1521
+ 117,
1522
+ 1,
1523
+ 121,
1524
+ 0,
1525
+ "*"
1526
+ ],
1527
+ [
1528
+ 202,
1529
+ 122,
1530
+ 0,
1531
+ 1,
1532
+ 1,
1533
+ "GUIDER"
1534
+ ],
1535
+ [
1536
+ 203,
1537
+ 37,
1538
+ 0,
1539
+ 122,
1540
+ 1,
1541
+ "CONDITIONING"
1542
+ ],
1543
+ [
1544
+ 206,
1545
+ 98,
1546
+ 0,
1547
+ 123,
1548
+ 0,
1549
+ "IMAGE"
1550
+ ],
1551
+ [
1552
+ 207,
1553
+ 114,
1554
+ 0,
1555
+ 124,
1556
+ 0,
1557
+ "*"
1558
+ ],
1559
+ [
1560
+ 208,
1561
+ 124,
1562
+ 0,
1563
+ 123,
1564
+ 1,
1565
+ "IMAGE"
1566
+ ],
1567
+ [
1568
+ 210,
1569
+ 124,
1570
+ 0,
1571
+ 117,
1572
+ 2,
1573
+ "IMAGE"
1574
+ ],
1575
+ [
1576
+ 211,
1577
+ 124,
1578
+ 0,
1579
+ 128,
1580
+ 0,
1581
+ "IMAGE"
1582
+ ],
1583
+ [
1584
+ 212,
1585
+ 117,
1586
+ 0,
1587
+ 129,
1588
+ 0,
1589
+ "IMAGE"
1590
+ ],
1591
+ [
1592
+ 214,
1593
+ 131,
1594
+ 0,
1595
+ 1,
1596
+ 3,
1597
+ "SIGMAS"
1598
+ ],
1599
+ [
1600
+ 216,
1601
+ 133,
1602
+ 0,
1603
+ 131,
1604
+ 0,
1605
+ "MODEL"
1606
+ ],
1607
+ [
1608
+ 217,
1609
+ 133,
1610
+ 0,
1611
+ 122,
1612
+ 0,
1613
+ "MODEL"
1614
+ ],
1615
+ [
1616
+ 218,
1617
+ 46,
1618
+ 0,
1619
+ 133,
1620
+ 3,
1621
+ "FACEANALYSIS"
1622
+ ],
1623
+ [
1624
+ 219,
1625
+ 45,
1626
+ 0,
1627
+ 133,
1628
+ 2,
1629
+ "EVA_CLIP"
1630
+ ],
1631
+ [
1632
+ 220,
1633
+ 44,
1634
+ 0,
1635
+ 133,
1636
+ 1,
1637
+ "PULIDFLUX"
1638
+ ],
1639
+ [
1640
+ 221,
1641
+ 93,
1642
+ 0,
1643
+ 133,
1644
+ 0,
1645
+ "MODEL"
1646
+ ],
1647
+ [
1648
+ 222,
1649
+ 105,
1650
+ 0,
1651
+ 133,
1652
+ 4,
1653
+ "IMAGE"
1654
+ ]
1655
+ ],
1656
+ "groups": [],
1657
+ "config": {},
1658
+ "extra": {
1659
+ "ds": {
1660
+ "scale": 0.7400249944258407,
1661
+ "offset": [
1662
+ 722.4404733590745,
1663
+ -636.2035262737298
1664
+ ]
1665
+ },
1666
+ "node_versions": {
1667
+ "comfy-core": "0.3.26",
1668
+ "ComfyUI-PuLID-Flux-Enhanced": "04e1b52320f1f14383afe18959349703623c5b88",
1669
+ "rgthree-comfy": "1.0.0",
1670
+ "comfyui_faceanalysis": "4919e4e931db0edb219ba5086b3c10b8af750631"
1671
+ },
1672
+ "ue_links": []
1673
+ },
1674
+ "version": 0.4
1675
+ }
FaceEnhancementProd.py CHANGED
@@ -4,6 +4,8 @@ import sys
4
  from typing import Sequence, Mapping, Any, Union
5
  import torch
6
 
 
 
7
 
8
  def get_value_at_index(obj: Union[Sequence, Mapping], index: int) -> Any:
9
  """Returns the value at the given index of a sequence or mapping.
@@ -59,10 +61,7 @@ def add_comfyui_directory_to_sys_path() -> None:
59
  """
60
  Add 'ComfyUI' to the sys.path
61
  """
62
- comfyui_path = find_path("ComfyUI")
63
- if comfyui_path is not None and os.path.isdir(comfyui_path):
64
- sys.path.append(comfyui_path)
65
- print(f"'{comfyui_path}' added to sys.path")
66
 
67
 
68
  def add_extra_model_paths() -> None:
@@ -207,92 +206,86 @@ def main():
207
  image_comparer_rgthree = NODE_CLASS_MAPPINGS["Image Comparer (rgthree)"]()
208
  saveimage = SaveImage()
209
 
210
- for q in range(10):
211
- applypulidflux_133 = applypulidflux.apply_pulid_flux(
212
- weight=0.7500000000000001,
213
- start_at=0.10000000000000002,
214
- end_at=1,
215
- fusion="mean",
216
- fusion_weight_max=1,
217
- fusion_weight_min=0,
218
- train_step=1000,
219
- use_gray=True,
220
- model=get_value_at_index(unetloader_93, 0),
221
- pulid_flux=get_value_at_index(pulidfluxmodelloader_44, 0),
222
- eva_clip=get_value_at_index(pulidfluxevacliploader_45, 0),
223
- face_analysis=get_value_at_index(pulidfluxinsightfaceloader_46, 0),
224
- image=get_value_at_index(loadimage_24, 0),
225
- unique_id=1674270197144619516,
226
- )
227
-
228
- setunioncontrolnettype_41 = setunioncontrolnettype.set_controlnet_type(
229
- type="tile", control_net=get_value_at_index(controlnetloader_49, 0)
230
- )
231
-
232
- controlnetapplyadvanced_37 = controlnetapplyadvanced.apply_controlnet(
233
- strength=1,
234
- start_percent=0.1,
235
- end_percent=0.8,
236
- positive=get_value_at_index(cliptextencode_42, 0),
237
- negative=get_value_at_index(cliptextencode_23, 0),
238
- control_net=get_value_at_index(setunioncontrolnettype_41, 0),
239
- image=get_value_at_index(loadimage_40, 0),
240
- vae=get_value_at_index(vaeloader_95, 0),
241
- )
242
-
243
- basicguider_122 = basicguider.get_guider(
244
- model=get_value_at_index(applypulidflux_133, 0),
245
- conditioning=get_value_at_index(controlnetapplyadvanced_37, 0),
246
- )
247
-
248
- basicscheduler_131 = basicscheduler.get_sigmas(
249
- scheduler="beta",
250
- steps=28,
251
- denoise=0.75,
252
- model=get_value_at_index(applypulidflux_133, 0),
253
- )
254
-
255
- samplercustomadvanced_1 = samplercustomadvanced.sample(
256
- noise=get_value_at_index(randomnoise_39, 0),
257
- guider=get_value_at_index(basicguider_122, 0),
258
- sampler=get_value_at_index(ksamplerselect_50, 0),
259
- sigmas=get_value_at_index(basicscheduler_131, 0),
260
- latent_image=get_value_at_index(vaeencode_35, 0),
261
- )
262
-
263
- vaedecode_114 = vaedecode.decode(
264
- samples=get_value_at_index(samplercustomadvanced_1, 0),
265
- vae=get_value_at_index(vaeloader_95, 0),
266
- )
267
-
268
- faceembeddistance_117 = faceembeddistance.analize(
269
- similarity_metric="cosine",
270
- filter_thresh=100,
271
- filter_best=0,
272
- generate_image_overlay=True,
273
- analysis_models=get_value_at_index(faceanalysismodels_118, 0),
274
- reference=get_value_at_index(loadimage_24, 0),
275
- image=get_value_at_index(vaedecode_114, 0),
276
- )
277
-
278
- display_any_rgthree_121 = display_any_rgthree.main(
279
- source=get_value_at_index(faceembeddistance_117, 1)
280
- )
281
-
282
- image_comparer_rgthree_123 = image_comparer_rgthree.compare_images(
283
- image_a=get_value_at_index(loadimage_40, 0),
284
- image_b=get_value_at_index(vaedecode_114, 0),
285
- )
286
-
287
- saveimage_128 = saveimage.save_images(
288
- filename_prefix="FaceEnhanced",
289
- images=get_value_at_index(vaedecode_114, 0),
290
- )
291
-
292
- saveimage_129 = saveimage.save_images(
293
- filename_prefix="FaceEmbedDist",
294
- images=get_value_at_index(faceembeddistance_117, 0),
295
- )
296
 
297
 
298
  if __name__ == "__main__":
 
4
  from typing import Sequence, Mapping, Any, Union
5
  import torch
6
 
7
+ BASE_PATH = "./"
8
+ COMFYUI_PATH = os.path.join(BASE_PATH, "ComfyUI")
9
 
10
  def get_value_at_index(obj: Union[Sequence, Mapping], index: int) -> Any:
11
  """Returns the value at the given index of a sequence or mapping.
 
61
  """
62
  Add 'ComfyUI' to the sys.path
63
  """
64
+ return COMFYUI_PATH
 
 
 
65
 
66
 
67
  def add_extra_model_paths() -> None:
 
206
  image_comparer_rgthree = NODE_CLASS_MAPPINGS["Image Comparer (rgthree)"]()
207
  saveimage = SaveImage()
208
 
209
+ applypulidflux_133 = applypulidflux.apply_pulid_flux(
210
+ weight=0.7500000000000001,
211
+ start_at=0.10000000000000002,
212
+ end_at=1,
213
+ fusion="mean",
214
+ fusion_weight_max=1,
215
+ fusion_weight_min=0,
216
+ train_step=1000,
217
+ use_gray=True,
218
+ model=get_value_at_index(unetloader_93, 0),
219
+ pulid_flux=get_value_at_index(pulidfluxmodelloader_44, 0),
220
+ eva_clip=get_value_at_index(pulidfluxevacliploader_45, 0),
221
+ face_analysis=get_value_at_index(pulidfluxinsightfaceloader_46, 0),
222
+ image=get_value_at_index(loadimage_24, 0),
223
+ unique_id=1674270197144619516,
224
+ )
225
+
226
+ setunioncontrolnettype_41 = setunioncontrolnettype.set_controlnet_type(
227
+ type="tile", control_net=get_value_at_index(controlnetloader_49, 0)
228
+ )
229
+
230
+ controlnetapplyadvanced_37 = controlnetapplyadvanced.apply_controlnet(
231
+ strength=1,
232
+ start_percent=0.1,
233
+ end_percent=0.8,
234
+ positive=get_value_at_index(cliptextencode_42, 0),
235
+ negative=get_value_at_index(cliptextencode_23, 0),
236
+ control_net=get_value_at_index(setunioncontrolnettype_41, 0),
237
+ image=get_value_at_index(loadimage_40, 0),
238
+ vae=get_value_at_index(vaeloader_95, 0),
239
+ )
240
+
241
+ basicguider_122 = basicguider.get_guider(
242
+ model=get_value_at_index(applypulidflux_133, 0),
243
+ conditioning=get_value_at_index(controlnetapplyadvanced_37, 0),
244
+ )
245
+
246
+ basicscheduler_131 = basicscheduler.get_sigmas(
247
+ scheduler="beta",
248
+ steps=28,
249
+ denoise=0.75,
250
+ model=get_value_at_index(applypulidflux_133, 0),
251
+ )
252
+
253
+ samplercustomadvanced_1 = samplercustomadvanced.sample(
254
+ noise=get_value_at_index(randomnoise_39, 0),
255
+ guider=get_value_at_index(basicguider_122, 0),
256
+ sampler=get_value_at_index(ksamplerselect_50, 0),
257
+ sigmas=get_value_at_index(basicscheduler_131, 0),
258
+ latent_image=get_value_at_index(vaeencode_35, 0),
259
+ )
260
+
261
+ vaedecode_114 = vaedecode.decode(
262
+ samples=get_value_at_index(samplercustomadvanced_1, 0),
263
+ vae=get_value_at_index(vaeloader_95, 0),
264
+ )
265
+
266
+ faceembeddistance_117 = faceembeddistance.analize(
267
+ similarity_metric="cosine",
268
+ filter_thresh=100,
269
+ filter_best=0,
270
+ generate_image_overlay=True,
271
+ analysis_models=get_value_at_index(faceanalysismodels_118, 0),
272
+ reference=get_value_at_index(loadimage_24, 0),
273
+ image=get_value_at_index(vaedecode_114, 0),
274
+ )
275
+
276
+ display_any_rgthree_121 = display_any_rgthree.main(
277
+ source=get_value_at_index(faceembeddistance_117, 1)
278
+ )
279
+
280
+ saveimage_128 = saveimage.save_images(
281
+ filename_prefix="FaceEnhanced",
282
+ images=get_value_at_index(vaedecode_114, 0),
283
+ )
284
+
285
+ saveimage_129 = saveimage.save_images(
286
+ filename_prefix="FaceEmbedDist",
287
+ images=get_value_at_index(faceembeddistance_117, 0),
288
+ )
 
 
 
 
 
 
289
 
290
 
291
  if __name__ == "__main__":
utils.py → helpers.py RENAMED
File without changes