Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ninjaneural
GitHub Repository: ninjaneural/webui
Path: blob/master/memo/comfyui_faceswap/20240326/workflow3.json
3275 views
1
{
2
"last_node_id": 82,
3
"last_link_id": 169,
4
"nodes": [
5
{
6
"id": 70,
7
"type": "VAEDecode",
8
"pos": [
9
2170,
10
1660
11
],
12
"size": {
13
"0": 210,
14
"1": 46
15
},
16
"flags": {},
17
"order": 19,
18
"mode": 0,
19
"inputs": [
20
{
21
"name": "samples",
22
"type": "LATENT",
23
"link": 137
24
},
25
{
26
"name": "vae",
27
"type": "VAE",
28
"link": 138,
29
"slot_index": 1
30
}
31
],
32
"outputs": [
33
{
34
"name": "IMAGE",
35
"type": "IMAGE",
36
"links": [
37
139
38
],
39
"shape": 3,
40
"slot_index": 0
41
}
42
],
43
"properties": {
44
"Node name for S&R": "VAEDecode"
45
}
46
},
47
{
48
"id": 5,
49
"type": "CLIPTextEncode",
50
"pos": [
51
710,
52
777
53
],
54
"size": {
55
"0": 400,
56
"1": 160
57
},
58
"flags": {},
59
"order": 10,
60
"mode": 0,
61
"inputs": [
62
{
63
"name": "clip",
64
"type": "CLIP",
65
"link": 6
66
}
67
],
68
"outputs": [
69
{
70
"name": "CONDITIONING",
71
"type": "CONDITIONING",
72
"links": [
73
143
74
],
75
"slot_index": 0
76
}
77
],
78
"properties": {
79
"Node name for S&R": "CLIPTextEncode"
80
},
81
"widgets_values": [
82
"(worst quality,low quality,normal quality:1.2),nsfw, nude"
83
],
84
"color": "#322",
85
"bgcolor": "#533"
86
},
87
{
88
"id": 69,
89
"type": "KSampler",
90
"pos": [
91
2120,
92
1350
93
],
94
"size": {
95
"0": 315,
96
"1": 262
97
},
98
"flags": {},
99
"order": 18,
100
"mode": 0,
101
"inputs": [
102
{
103
"name": "model",
104
"type": "MODEL",
105
"link": 169,
106
"slot_index": 0
107
},
108
{
109
"name": "positive",
110
"type": "CONDITIONING",
111
"link": 142,
112
"slot_index": 1
113
},
114
{
115
"name": "negative",
116
"type": "CONDITIONING",
117
"link": 143,
118
"slot_index": 2
119
},
120
{
121
"name": "latent_image",
122
"type": "LATENT",
123
"link": 136
124
}
125
],
126
"outputs": [
127
{
128
"name": "LATENT",
129
"type": "LATENT",
130
"links": [
131
137
132
],
133
"shape": 3,
134
"slot_index": 0
135
}
136
],
137
"properties": {
138
"Node name for S&R": "KSampler"
139
},
140
"widgets_values": [
141
940182260549985,
142
"fixed",
143
10,
144
2,
145
"dpmpp_2m",
146
"karras",
147
0.4
148
]
149
},
150
{
151
"id": 44,
152
"type": "VAELoader",
153
"pos": [
154
42,
155
905
156
],
157
"size": {
158
"0": 315,
159
"1": 58
160
},
161
"flags": {},
162
"order": 0,
163
"mode": 0,
164
"outputs": [
165
{
166
"name": "VAE",
167
"type": "VAE",
168
"links": [
169
135,
170
138
171
],
172
"shape": 3,
173
"slot_index": 0
174
}
175
],
176
"properties": {
177
"Node name for S&R": "VAELoader"
178
},
179
"widgets_values": [
180
"vae-ft-mse-840000-ema-pruned.vae.pt"
181
]
182
},
183
{
184
"id": 2,
185
"type": "CheckpointLoaderSimple",
186
"pos": [
187
50,
188
700
189
],
190
"size": {
191
"0": 290,
192
"1": 100
193
},
194
"flags": {},
195
"order": 1,
196
"mode": 0,
197
"outputs": [
198
{
199
"name": "MODEL",
200
"type": "MODEL",
201
"links": [
202
15
203
],
204
"slot_index": 0
205
},
206
{
207
"name": "CLIP",
208
"type": "CLIP",
209
"links": [
210
5,
211
6
212
],
213
"slot_index": 1
214
},
215
{
216
"name": "VAE",
217
"type": "VAE",
218
"links": [],
219
"slot_index": 2
220
}
221
],
222
"properties": {
223
"Node name for S&R": "CheckpointLoaderSimple"
224
},
225
"widgets_values": [
226
"picx_real_v1.safetensors"
227
]
228
},
229
{
230
"id": 75,
231
"type": "UpscaleModelLoader",
232
"pos": [
233
1760,
234
1330
235
],
236
"size": {
237
"0": 315,
238
"1": 58
239
},
240
"flags": {},
241
"order": 2,
242
"mode": 0,
243
"outputs": [
244
{
245
"name": "UPSCALE_MODEL",
246
"type": "UPSCALE_MODEL",
247
"links": [
248
153
249
],
250
"shape": 3
251
}
252
],
253
"properties": {
254
"Node name for S&R": "UpscaleModelLoader"
255
},
256
"widgets_values": [
257
"4x-UltraSharp.pth"
258
]
259
},
260
{
261
"id": 65,
262
"type": "ImageUpscaleWithModel",
263
"pos": [
264
1790,
265
1460
266
],
267
"size": {
268
"0": 241.79998779296875,
269
"1": 46
270
},
271
"flags": {},
272
"order": 15,
273
"mode": 0,
274
"inputs": [
275
{
276
"name": "upscale_model",
277
"type": "UPSCALE_MODEL",
278
"link": 153,
279
"slot_index": 0
280
},
281
{
282
"name": "image",
283
"type": "IMAGE",
284
"link": 164,
285
"slot_index": 1
286
}
287
],
288
"outputs": [
289
{
290
"name": "IMAGE",
291
"type": "IMAGE",
292
"links": [
293
160
294
],
295
"shape": 3,
296
"slot_index": 0
297
}
298
],
299
"properties": {
300
"Node name for S&R": "ImageUpscaleWithModel"
301
}
302
},
303
{
304
"id": 80,
305
"type": "ImageScaleBy",
306
"pos": [
307
1751,
308
1591
309
],
310
"size": {
311
"0": 315,
312
"1": 82
313
},
314
"flags": {},
315
"order": 16,
316
"mode": 0,
317
"inputs": [
318
{
319
"name": "image",
320
"type": "IMAGE",
321
"link": 160
322
}
323
],
324
"outputs": [
325
{
326
"name": "IMAGE",
327
"type": "IMAGE",
328
"links": [
329
161
330
],
331
"shape": 3,
332
"slot_index": 0
333
}
334
],
335
"properties": {
336
"Node name for S&R": "ImageScaleBy"
337
},
338
"widgets_values": [
339
"bilinear",
340
0.5
341
]
342
},
343
{
344
"id": 68,
345
"type": "VAEEncode",
346
"pos": [
347
1800,
348
1752
349
],
350
"size": {
351
"0": 210,
352
"1": 46
353
},
354
"flags": {},
355
"order": 17,
356
"mode": 0,
357
"inputs": [
358
{
359
"name": "pixels",
360
"type": "IMAGE",
361
"link": 161
362
},
363
{
364
"name": "vae",
365
"type": "VAE",
366
"link": 135,
367
"slot_index": 1
368
}
369
],
370
"outputs": [
371
{
372
"name": "LATENT",
373
"type": "LATENT",
374
"links": [
375
136
376
],
377
"shape": 3,
378
"slot_index": 0
379
}
380
],
381
"properties": {
382
"Node name for S&R": "VAEEncode"
383
}
384
},
385
{
386
"id": 79,
387
"type": "ConstrainImage|pysssss",
388
"pos": [
389
1979,
390
1064
391
],
392
"size": {
393
"0": 315,
394
"1": 154
395
},
396
"flags": {},
397
"order": 14,
398
"mode": 0,
399
"inputs": [
400
{
401
"name": "images",
402
"type": "IMAGE",
403
"link": 163
404
}
405
],
406
"outputs": [
407
{
408
"name": "IMAGE",
409
"type": "IMAGE",
410
"links": [
411
164
412
],
413
"shape": 6,
414
"slot_index": 0
415
}
416
],
417
"properties": {
418
"Node name for S&R": "ConstrainImage|pysssss"
419
},
420
"widgets_values": [
421
768,
422
768,
423
0,
424
0,
425
"no"
426
]
427
},
428
{
429
"id": 71,
430
"type": "PreviewImage",
431
"pos": [
432
2593,
433
1158
434
],
435
"size": {
436
"0": 540.338623046875,
437
"1": 753.1709594726562
438
},
439
"flags": {},
440
"order": 20,
441
"mode": 0,
442
"inputs": [
443
{
444
"name": "images",
445
"type": "IMAGE",
446
"link": 139
447
}
448
],
449
"properties": {
450
"Node name for S&R": "PreviewImage"
451
}
452
},
453
{
454
"id": 52,
455
"type": "ReActorFaceSwap",
456
"pos": [
457
1977,
458
640
459
],
460
"size": {
461
"0": 315,
462
"1": 338
463
},
464
"flags": {},
465
"order": 11,
466
"mode": 0,
467
"inputs": [
468
{
469
"name": "input_image",
470
"type": "IMAGE",
471
"link": 162
472
},
473
{
474
"name": "source_image",
475
"type": "IMAGE",
476
"link": 155
477
},
478
{
479
"name": "face_model",
480
"type": "FACE_MODEL",
481
"link": null
482
}
483
],
484
"outputs": [
485
{
486
"name": "IMAGE",
487
"type": "IMAGE",
488
"links": [
489
125,
490
163
491
],
492
"shape": 3,
493
"slot_index": 0
494
},
495
{
496
"name": "FACE_MODEL",
497
"type": "FACE_MODEL",
498
"links": null,
499
"shape": 3,
500
"slot_index": 1
501
}
502
],
503
"properties": {
504
"Node name for S&R": "ReActorFaceSwap"
505
},
506
"widgets_values": [
507
true,
508
"inswapper_128.onnx",
509
"retinaface_resnet50",
510
"GFPGANv1.4.pth",
511
0.5,
512
0.7000000000000001,
513
"no",
514
"no",
515
"0",
516
"0",
517
1
518
]
519
},
520
{
521
"id": 57,
522
"type": "PreviewImage",
523
"pos": [
524
2589,
525
435
526
],
527
"size": {
528
"0": 470.4400634765625,
529
"1": 645.5353393554688
530
},
531
"flags": {},
532
"order": 13,
533
"mode": 0,
534
"inputs": [
535
{
536
"name": "images",
537
"type": "IMAGE",
538
"link": 125
539
}
540
],
541
"properties": {
542
"Node name for S&R": "PreviewImage"
543
}
544
},
545
{
546
"id": 78,
547
"type": "LoadImage",
548
"pos": [
549
1961,
550
-262
551
],
552
"size": {
553
"0": 478.2596740722656,
554
"1": 614.9320678710938
555
},
556
"flags": {},
557
"order": 3,
558
"mode": 0,
559
"outputs": [
560
{
561
"name": "IMAGE",
562
"type": "IMAGE",
563
"links": [
564
155
565
],
566
"shape": 3,
567
"slot_index": 0
568
},
569
{
570
"name": "MASK",
571
"type": "MASK",
572
"links": null,
573
"shape": 3
574
}
575
],
576
"title": "Load ImageĀ (Face)",
577
"properties": {
578
"Node name for S&R": "LoadImage"
579
},
580
"widgets_values": [
581
"ComfyUI_01002_.png",
582
"image"
583
]
584
},
585
{
586
"id": 77,
587
"type": "LoadImage",
588
"pos": [
589
2574,
590
-260
591
],
592
"size": {
593
"0": 478.2596740722656,
594
"1": 614.9320678710938
595
},
596
"flags": {},
597
"order": 4,
598
"mode": 0,
599
"outputs": [
600
{
601
"name": "IMAGE",
602
"type": "IMAGE",
603
"links": [
604
162
605
],
606
"shape": 3,
607
"slot_index": 0
608
},
609
{
610
"name": "MASK",
611
"type": "MASK",
612
"links": null,
613
"shape": 3
614
}
615
],
616
"title": "Load Image (Input Image)",
617
"properties": {
618
"Node name for S&R": "LoadImage"
619
},
620
"widgets_values": [
621
"ComfyUI_01282_.png",
622
"image"
623
]
624
},
625
{
626
"id": 9,
627
"type": "IPAdapterModelLoader",
628
"pos": [
629
700,
630
1300
631
],
632
"size": {
633
"0": 290,
634
"1": 60
635
},
636
"flags": {},
637
"order": 5,
638
"mode": 0,
639
"outputs": [
640
{
641
"name": "IPADAPTER",
642
"type": "IPADAPTER",
643
"links": [
644
166
645
],
646
"shape": 3,
647
"slot_index": 0
648
}
649
],
650
"properties": {
651
"Node name for S&R": "IPAdapterModelLoader"
652
},
653
"widgets_values": [
654
"ip-adapter-faceid-plusv2_sd15.bin"
655
],
656
"color": "#223",
657
"bgcolor": "#335"
658
},
659
{
660
"id": 31,
661
"type": "CLIPVisionLoader",
662
"pos": [
663
700,
664
1420
665
],
666
"size": {
667
"0": 290,
668
"1": 60
669
},
670
"flags": {},
671
"order": 6,
672
"mode": 0,
673
"outputs": [
674
{
675
"name": "CLIP_VISION",
676
"type": "CLIP_VISION",
677
"links": [
678
167
679
],
680
"shape": 3,
681
"slot_index": 0
682
}
683
],
684
"properties": {
685
"Node name for S&R": "CLIPVisionLoader"
686
},
687
"widgets_values": [
688
"model.safetensors"
689
],
690
"color": "#223",
691
"bgcolor": "#335"
692
},
693
{
694
"id": 14,
695
"type": "LoraLoaderModelOnly",
696
"pos": [
697
780,
698
1650
699
],
700
"size": {
701
"0": 210,
702
"1": 82
703
},
704
"flags": {},
705
"order": 8,
706
"mode": 0,
707
"inputs": [
708
{
709
"name": "model",
710
"type": "MODEL",
711
"link": 15
712
}
713
],
714
"outputs": [
715
{
716
"name": "MODEL",
717
"type": "MODEL",
718
"links": [
719
168
720
],
721
"shape": 3,
722
"slot_index": 0
723
}
724
],
725
"properties": {
726
"Node name for S&R": "LoraLoaderModelOnly"
727
},
728
"widgets_values": [
729
"ip-adapter-faceid-plusv2_sd15_lora.safetensors",
730
0.6
731
],
732
"color": "#223",
733
"bgcolor": "#335"
734
},
735
{
736
"id": 4,
737
"type": "CLIPTextEncode",
738
"pos": [
739
710,
740
570
741
],
742
"size": {
743
"0": 400,
744
"1": 160
745
},
746
"flags": {},
747
"order": 9,
748
"mode": 0,
749
"inputs": [
750
{
751
"name": "clip",
752
"type": "CLIP",
753
"link": 5
754
}
755
],
756
"outputs": [
757
{
758
"name": "CONDITIONING",
759
"type": "CONDITIONING",
760
"links": [
761
142
762
],
763
"slot_index": 0
764
}
765
],
766
"properties": {
767
"Node name for S&R": "CLIPTextEncode"
768
},
769
"widgets_values": [
770
"masterpiece, best quality,8k uhd, ultra realistic,realistic, photorealistic, RAW,"
771
],
772
"color": "#232",
773
"bgcolor": "#353"
774
},
775
{
776
"id": 81,
777
"type": "IPAdapterFaceID",
778
"pos": [
779
1101,
780
1411
781
],
782
"size": {
783
"0": 315,
784
"1": 322
785
},
786
"flags": {},
787
"order": 12,
788
"mode": 0,
789
"inputs": [
790
{
791
"name": "model",
792
"type": "MODEL",
793
"link": 168
794
},
795
{
796
"name": "ipadapter",
797
"type": "IPADAPTER",
798
"link": 166,
799
"slot_index": 1
800
},
801
{
802
"name": "image",
803
"type": "IMAGE",
804
"link": null
805
},
806
{
807
"name": "image_negative",
808
"type": "IMAGE",
809
"link": null
810
},
811
{
812
"name": "attn_mask",
813
"type": "MASK",
814
"link": null
815
},
816
{
817
"name": "clip_vision",
818
"type": "CLIP_VISION",
819
"link": 167
820
},
821
{
822
"name": "insightface",
823
"type": "INSIGHTFACE",
824
"link": 165,
825
"slot_index": 6
826
}
827
],
828
"outputs": [
829
{
830
"name": "MODEL",
831
"type": "MODEL",
832
"links": [
833
169
834
],
835
"shape": 3,
836
"slot_index": 0
837
}
838
],
839
"properties": {
840
"Node name for S&R": "IPAdapterFaceID"
841
},
842
"widgets_values": [
843
0.9,
844
1,
845
"linear",
846
"concat",
847
0,
848
1,
849
"V only"
850
]
851
},
852
{
853
"id": 82,
854
"type": "IPAdapterInsightFaceLoader",
855
"pos": [
856
672,
857
1539
858
],
859
"size": {
860
"0": 315,
861
"1": 58
862
},
863
"flags": {},
864
"order": 7,
865
"mode": 0,
866
"outputs": [
867
{
868
"name": "INSIGHTFACE",
869
"type": "INSIGHTFACE",
870
"links": [
871
165
872
],
873
"shape": 3
874
}
875
],
876
"properties": {
877
"Node name for S&R": "IPAdapterInsightFaceLoader"
878
},
879
"widgets_values": [
880
"CPU"
881
]
882
}
883
],
884
"links": [
885
[
886
5,
887
2,
888
1,
889
4,
890
0,
891
"CLIP"
892
],
893
[
894
6,
895
2,
896
1,
897
5,
898
0,
899
"CLIP"
900
],
901
[
902
15,
903
2,
904
0,
905
14,
906
0,
907
"MODEL"
908
],
909
[
910
125,
911
52,
912
0,
913
57,
914
0,
915
"IMAGE"
916
],
917
[
918
135,
919
44,
920
0,
921
68,
922
1,
923
"VAE"
924
],
925
[
926
136,
927
68,
928
0,
929
69,
930
3,
931
"LATENT"
932
],
933
[
934
137,
935
69,
936
0,
937
70,
938
0,
939
"LATENT"
940
],
941
[
942
138,
943
44,
944
0,
945
70,
946
1,
947
"VAE"
948
],
949
[
950
139,
951
70,
952
0,
953
71,
954
0,
955
"IMAGE"
956
],
957
[
958
142,
959
4,
960
0,
961
69,
962
1,
963
"CONDITIONING"
964
],
965
[
966
143,
967
5,
968
0,
969
69,
970
2,
971
"CONDITIONING"
972
],
973
[
974
153,
975
75,
976
0,
977
65,
978
0,
979
"UPSCALE_MODEL"
980
],
981
[
982
155,
983
78,
984
0,
985
52,
986
1,
987
"IMAGE"
988
],
989
[
990
160,
991
65,
992
0,
993
80,
994
0,
995
"IMAGE"
996
],
997
[
998
161,
999
80,
1000
0,
1001
68,
1002
0,
1003
"IMAGE"
1004
],
1005
[
1006
162,
1007
77,
1008
0,
1009
52,
1010
0,
1011
"IMAGE"
1012
],
1013
[
1014
163,
1015
52,
1016
0,
1017
79,
1018
0,
1019
"IMAGE"
1020
],
1021
[
1022
164,
1023
79,
1024
0,
1025
65,
1026
1,
1027
"IMAGE"
1028
],
1029
[
1030
165,
1031
82,
1032
0,
1033
81,
1034
6,
1035
"INSIGHTFACE"
1036
],
1037
[
1038
166,
1039
9,
1040
0,
1041
81,
1042
1,
1043
"IPADAPTER"
1044
],
1045
[
1046
167,
1047
31,
1048
0,
1049
81,
1050
5,
1051
"CLIP_VISION"
1052
],
1053
[
1054
168,
1055
14,
1056
0,
1057
81,
1058
0,
1059
"MODEL"
1060
],
1061
[
1062
169,
1063
81,
1064
0,
1065
69,
1066
0,
1067
"MODEL"
1068
]
1069
],
1070
"groups": [],
1071
"config": {},
1072
"extra": {},
1073
"version": 0.4
1074
}
1075