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