Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ninjaneural
GitHub Repository: ninjaneural/webui
Path: blob/master/memo/comfyui_removechar/workflow2.json
3275 views
1
{
2
"last_node_id": 87,
3
"last_link_id": 152,
4
"nodes": [
5
{
6
"id": 31,
7
"type": "ToBinaryMask",
8
"pos": [
9
1070,
10
730
11
],
12
"size": {
13
"0": 315,
14
"1": 58
15
},
16
"flags": {},
17
"order": 19,
18
"mode": 0,
19
"inputs": [
20
{
21
"name": "mask",
22
"type": "MASK",
23
"link": 41
24
}
25
],
26
"outputs": [
27
{
28
"name": "MASK",
29
"type": "MASK",
30
"links": [],
31
"shape": 3,
32
"slot_index": 0
33
}
34
],
35
"properties": {
36
"Node name for S&R": "ToBinaryMask"
37
},
38
"widgets_values": [
39
50
40
]
41
},
42
{
43
"id": 6,
44
"type": "Anything Everywhere",
45
"pos": [
46
159,
47
1481
48
],
49
"size": {
50
"0": 210,
51
"1": 26
52
},
53
"flags": {},
54
"order": 5,
55
"mode": 0,
56
"inputs": [
57
{
58
"name": "VAE",
59
"type": "*",
60
"link": 112,
61
"color_on": "#FF6E6E"
62
}
63
],
64
"properties": {
65
"Node name for S&R": "Anything Everywhere",
66
"group_restricted": false,
67
"color_restricted": false
68
},
69
"widgets_values": []
70
},
71
{
72
"id": 44,
73
"type": "MaskPreview+",
74
"pos": [
75
1061,
76
891
77
],
78
"size": {
79
"0": 210,
80
"1": 246
81
},
82
"flags": {},
83
"order": 20,
84
"mode": 0,
85
"inputs": [
86
{
87
"name": "mask",
88
"type": "MASK",
89
"link": 58
90
}
91
],
92
"properties": {
93
"Node name for S&R": "MaskPreview+"
94
}
95
},
96
{
97
"id": 42,
98
"type": "PreviewImage",
99
"pos": [
100
1038,
101
144
102
],
103
"size": {
104
"0": 359.7876892089844,
105
"1": 337.4075012207031
106
},
107
"flags": {},
108
"order": 24,
109
"mode": 0,
110
"inputs": [
111
{
112
"name": "images",
113
"type": "IMAGE",
114
"link": 143
115
}
116
],
117
"properties": {
118
"Node name for S&R": "PreviewImage"
119
}
120
},
121
{
122
"id": 43,
123
"type": "MaskComposite",
124
"pos": [
125
465,
126
759
127
],
128
"size": {
129
"0": 315,
130
"1": 126
131
},
132
"flags": {},
133
"order": 17,
134
"mode": 0,
135
"inputs": [
136
{
137
"name": "destination",
138
"type": "MASK",
139
"link": 56
140
},
141
{
142
"name": "source",
143
"type": "MASK",
144
"link": 135
145
}
146
],
147
"outputs": [
148
{
149
"name": "MASK",
150
"type": "MASK",
151
"links": [
152
42
153
],
154
"shape": 3,
155
"slot_index": 0
156
}
157
],
158
"properties": {
159
"Node name for S&R": "MaskComposite"
160
},
161
"widgets_values": [
162
0,
163
0,
164
"or"
165
]
166
},
167
{
168
"id": 54,
169
"type": "ShowText|pysssss",
170
"pos": [
171
1148,
172
1672
173
],
174
"size": {
175
"0": 317.45257568359375,
176
"1": 156.1575927734375
177
},
178
"flags": {},
179
"order": 29,
180
"mode": 0,
181
"inputs": [
182
{
183
"name": "text",
184
"type": "STRING",
185
"link": 72,
186
"widget": {
187
"name": "text"
188
}
189
}
190
],
191
"outputs": [
192
{
193
"name": "STRING",
194
"type": "STRING",
195
"links": null,
196
"shape": 6
197
}
198
],
199
"properties": {
200
"Node name for S&R": "ShowText|pysssss"
201
},
202
"widgets_values": [
203
"",
204
" A busy street in the city with cars going in both directions. There are tall buildings on both sides of the street and the lights from the buildings and the cars are reflecting off the wet pavement."
205
]
206
},
207
{
208
"id": 56,
209
"type": "PreviewImage",
210
"pos": [
211
800,
212
977
213
],
214
"size": {
215
"0": 210,
216
"1": 246
217
},
218
"flags": {},
219
"order": 13,
220
"mode": 0,
221
"inputs": [
222
{
223
"name": "images",
224
"type": "IMAGE",
225
"link": 78
226
}
227
],
228
"properties": {
229
"Node name for S&R": "PreviewImage"
230
}
231
},
232
{
233
"id": 5,
234
"type": "GrowMask",
235
"pos": [
236
454,
237
1188
238
],
239
"size": {
240
"0": 315,
241
"1": 82
242
},
243
"flags": {},
244
"order": 14,
245
"mode": 0,
246
"inputs": [
247
{
248
"name": "mask",
249
"type": "MASK",
250
"link": 3
251
}
252
],
253
"outputs": [
254
{
255
"name": "MASK",
256
"type": "MASK",
257
"links": [
258
56
259
],
260
"shape": 3,
261
"slot_index": 0
262
}
263
],
264
"properties": {
265
"Node name for S&R": "GrowMask"
266
},
267
"widgets_values": [
268
20,
269
true
270
]
271
},
272
{
273
"id": 45,
274
"type": "MaskPreview+",
275
"pos": [
276
-140,
277
730
278
],
279
"size": {
280
"0": 210,
281
"1": 246
282
},
283
"flags": {},
284
"order": 8,
285
"mode": 0,
286
"inputs": [
287
{
288
"name": "mask",
289
"type": "MASK",
290
"link": 59
291
}
292
],
293
"properties": {
294
"Node name for S&R": "MaskPreview+"
295
}
296
},
297
{
298
"id": 3,
299
"type": "Image Remove Background Rembg (mtb)",
300
"pos": [
301
465,
302
924
303
],
304
"size": {
305
"0": 294,
306
"1": 230
307
},
308
"flags": {},
309
"order": 11,
310
"mode": 0,
311
"inputs": [
312
{
313
"name": "image",
314
"type": "IMAGE",
315
"link": 76
316
}
317
],
318
"outputs": [
319
{
320
"name": "Image (rgba)",
321
"type": "IMAGE",
322
"links": [
323
78
324
],
325
"shape": 3,
326
"slot_index": 0
327
},
328
{
329
"name": "Mask",
330
"type": "MASK",
331
"links": [
332
3
333
],
334
"shape": 3,
335
"slot_index": 1
336
},
337
{
338
"name": "Image",
339
"type": "IMAGE",
340
"links": null,
341
"shape": 3
342
}
343
],
344
"properties": {
345
"Node name for S&R": "Image Remove Background Rembg (mtb)"
346
},
347
"widgets_values": [
348
false,
349
240,
350
10,
351
10,
352
false,
353
"#000000"
354
]
355
},
356
{
357
"id": 64,
358
"type": "KSampler",
359
"pos": [
360
2570,
361
1080
362
],
363
"size": {
364
"0": 315,
365
"1": 262
366
},
367
"flags": {},
368
"order": 38,
369
"mode": 0,
370
"inputs": [
371
{
372
"name": "model",
373
"type": "MODEL",
374
"link": 113
375
},
376
{
377
"name": "positive",
378
"type": "CONDITIONING",
379
"link": 126
380
},
381
{
382
"name": "negative",
383
"type": "CONDITIONING",
384
"link": 125
385
},
386
{
387
"name": "latent_image",
388
"type": "LATENT",
389
"link": 109
390
}
391
],
392
"outputs": [
393
{
394
"name": "LATENT",
395
"type": "LATENT",
396
"links": [
397
92
398
],
399
"shape": 3,
400
"slot_index": 0
401
}
402
],
403
"properties": {
404
"Node name for S&R": "KSampler"
405
},
406
"widgets_values": [
407
555591574803789,
408
"randomize",
409
15,
410
7,
411
"dpmpp_2m",
412
"karras",
413
0.4
414
]
415
},
416
{
417
"id": 65,
418
"type": "ImageUpscaleWithModel",
419
"pos": [
420
2590,
421
730
422
],
423
"size": {
424
"0": 241.79998779296875,
425
"1": 46
426
},
427
"flags": {},
428
"order": 34,
429
"mode": 0,
430
"inputs": [
431
{
432
"name": "upscale_model",
433
"type": "UPSCALE_MODEL",
434
"link": 88,
435
"slot_index": 0
436
},
437
{
438
"name": "image",
439
"type": "IMAGE",
440
"link": 89
441
}
442
],
443
"outputs": [
444
{
445
"name": "IMAGE",
446
"type": "IMAGE",
447
"links": [
448
90
449
],
450
"shape": 3,
451
"slot_index": 0
452
}
453
],
454
"properties": {
455
"Node name for S&R": "ImageUpscaleWithModel"
456
}
457
},
458
{
459
"id": 67,
460
"type": "ImageScaleBy",
461
"pos": [
462
2560,
463
810
464
],
465
"size": {
466
"0": 315,
467
"1": 82
468
},
469
"flags": {},
470
"order": 35,
471
"mode": 0,
472
"inputs": [
473
{
474
"name": "image",
475
"type": "IMAGE",
476
"link": 90
477
}
478
],
479
"outputs": [
480
{
481
"name": "IMAGE",
482
"type": "IMAGE",
483
"links": [
484
91
485
],
486
"shape": 3,
487
"slot_index": 0
488
}
489
],
490
"properties": {
491
"Node name for S&R": "ImageScaleBy"
492
},
493
"widgets_values": [
494
"bilinear",
495
0.5
496
]
497
},
498
{
499
"id": 66,
500
"type": "UpscaleModelLoader",
501
"pos": [
502
2560,
503
630
504
],
505
"size": {
506
"0": 315,
507
"1": 58
508
},
509
"flags": {},
510
"order": 0,
511
"mode": 0,
512
"outputs": [
513
{
514
"name": "UPSCALE_MODEL",
515
"type": "UPSCALE_MODEL",
516
"links": [
517
88
518
],
519
"shape": 3
520
}
521
],
522
"properties": {
523
"Node name for S&R": "UpscaleModelLoader"
524
},
525
"widgets_values": [
526
"4x-UltraSharp.pth"
527
]
528
},
529
{
530
"id": 70,
531
"type": "PreviewImage",
532
"pos": [
533
3020,
534
590
535
],
536
"size": {
537
"0": 372.0247802734375,
538
"1": 434.8623352050781
539
},
540
"flags": {},
541
"order": 40,
542
"mode": 0,
543
"inputs": [
544
{
545
"name": "images",
546
"type": "IMAGE",
547
"link": 93
548
}
549
],
550
"properties": {
551
"Node name for S&R": "PreviewImage"
552
}
553
},
554
{
555
"id": 69,
556
"type": "VAEDecode",
557
"pos": [
558
2620,
559
1370
560
],
561
"size": {
562
"0": 210,
563
"1": 46
564
},
565
"flags": {},
566
"order": 39,
567
"mode": 0,
568
"inputs": [
569
{
570
"name": "samples",
571
"type": "LATENT",
572
"link": 92
573
},
574
{
575
"name": "vae",
576
"type": "VAE",
577
"link": null
578
}
579
],
580
"outputs": [
581
{
582
"name": "IMAGE",
583
"type": "IMAGE",
584
"links": [
585
93,
586
94
587
],
588
"shape": 3,
589
"slot_index": 0
590
}
591
],
592
"properties": {
593
"Node name for S&R": "VAEDecode"
594
}
595
},
596
{
597
"id": 72,
598
"type": "PreviewImage",
599
"pos": [
600
3380,
601
1100
602
],
603
"size": {
604
"0": 361.3581237792969,
605
"1": 361.19549560546875
606
},
607
"flags": {},
608
"order": 42,
609
"mode": 0,
610
"inputs": [
611
{
612
"name": "images",
613
"type": "IMAGE",
614
"link": 97
615
}
616
],
617
"properties": {
618
"Node name for S&R": "PreviewImage"
619
}
620
},
621
{
622
"id": 78,
623
"type": "SetLatentNoiseMask",
624
"pos": [
625
2607,
626
996
627
],
628
"size": {
629
"0": 210,
630
"1": 46
631
},
632
"flags": {},
633
"order": 37,
634
"mode": 0,
635
"inputs": [
636
{
637
"name": "samples",
638
"type": "LATENT",
639
"link": 108
640
},
641
{
642
"name": "mask",
643
"type": "MASK",
644
"link": 110
645
}
646
],
647
"outputs": [
648
{
649
"name": "LATENT",
650
"type": "LATENT",
651
"links": [
652
109
653
],
654
"shape": 3,
655
"slot_index": 0
656
}
657
],
658
"properties": {
659
"Node name for S&R": "SetLatentNoiseMask"
660
}
661
},
662
{
663
"id": 1,
664
"type": "CheckpointLoaderSimple",
665
"pos": [
666
93,
667
1338
668
],
669
"size": {
670
"0": 315,
671
"1": 98
672
},
673
"flags": {},
674
"order": 1,
675
"mode": 0,
676
"outputs": [
677
{
678
"name": "MODEL",
679
"type": "MODEL",
680
"links": [
681
111,
682
113
683
],
684
"shape": 3,
685
"slot_index": 0
686
},
687
{
688
"name": "CLIP",
689
"type": "CLIP",
690
"links": [
691
11,
692
13
693
],
694
"shape": 3,
695
"slot_index": 1
696
},
697
{
698
"name": "VAE",
699
"type": "VAE",
700
"links": [
701
112
702
],
703
"shape": 3,
704
"slot_index": 2
705
}
706
],
707
"properties": {
708
"Node name for S&R": "CheckpointLoaderSimple"
709
},
710
"widgets_values": [
711
"sdxl\\juggernautXL_v8Rundiffusion.safetensors"
712
]
713
},
714
{
715
"id": 68,
716
"type": "VAEEncode",
717
"pos": [
718
2611,
719
920
720
],
721
"size": {
722
"0": 210,
723
"1": 46
724
},
725
"flags": {},
726
"order": 36,
727
"mode": 0,
728
"inputs": [
729
{
730
"name": "pixels",
731
"type": "IMAGE",
732
"link": 91
733
},
734
{
735
"name": "vae",
736
"type": "VAE",
737
"link": null
738
}
739
],
740
"outputs": [
741
{
742
"name": "LATENT",
743
"type": "LATENT",
744
"links": [
745
108
746
],
747
"shape": 3,
748
"slot_index": 0
749
}
750
],
751
"properties": {
752
"Node name for S&R": "VAEEncode"
753
}
754
},
755
{
756
"id": 60,
757
"type": "VAEDecode",
758
"pos": [
759
2171,
760
927
761
],
762
"size": {
763
"0": 210,
764
"1": 46
765
},
766
"flags": {},
767
"order": 32,
768
"mode": 0,
769
"inputs": [
770
{
771
"name": "samples",
772
"type": "LATENT",
773
"link": 83
774
},
775
{
776
"name": "vae",
777
"type": "VAE",
778
"link": null
779
}
780
],
781
"outputs": [
782
{
783
"name": "IMAGE",
784
"type": "IMAGE",
785
"links": [
786
84,
787
89
788
],
789
"shape": 3,
790
"slot_index": 0
791
}
792
],
793
"properties": {
794
"Node name for S&R": "VAEDecode"
795
}
796
},
797
{
798
"id": 74,
799
"type": "ImageCompositeMasked",
800
"pos": [
801
2975,
802
1458
803
],
804
"size": {
805
"0": 315,
806
"1": 146
807
},
808
"flags": {},
809
"order": 43,
810
"mode": 0,
811
"inputs": [
812
{
813
"name": "destination",
814
"type": "IMAGE",
815
"link": 127
816
},
817
{
818
"name": "source",
819
"type": "IMAGE",
820
"link": 100
821
},
822
{
823
"name": "mask",
824
"type": "MASK",
825
"link": 128
826
}
827
],
828
"outputs": [
829
{
830
"name": "IMAGE",
831
"type": "IMAGE",
832
"links": [
833
103
834
],
835
"shape": 3,
836
"slot_index": 0
837
}
838
],
839
"properties": {
840
"Node name for S&R": "ImageCompositeMasked"
841
},
842
"widgets_values": [
843
0,
844
0,
845
false
846
]
847
},
848
{
849
"id": 75,
850
"type": "GrowMaskWithBlur",
851
"pos": [
852
2586,
853
1472
854
],
855
"size": {
856
"0": 315,
857
"1": 246
858
},
859
"flags": {},
860
"order": 21,
861
"mode": 0,
862
"inputs": [
863
{
864
"name": "mask",
865
"type": "MASK",
866
"link": 119
867
}
868
],
869
"outputs": [
870
{
871
"name": "mask",
872
"type": "MASK",
873
"links": [
874
128
875
],
876
"shape": 3,
877
"slot_index": 0
878
},
879
{
880
"name": "mask_inverted",
881
"type": "MASK",
882
"links": [],
883
"shape": 3,
884
"slot_index": 1
885
}
886
],
887
"properties": {
888
"Node name for S&R": "GrowMaskWithBlur"
889
},
890
"widgets_values": [
891
50,
892
0,
893
true,
894
false,
895
25,
896
1,
897
1,
898
false
899
]
900
},
901
{
902
"id": 71,
903
"type": "ImageScale",
904
"pos": [
905
2969,
906
1275
907
],
908
"size": {
909
"0": 315,
910
"1": 130
911
},
912
"flags": {},
913
"order": 41,
914
"mode": 0,
915
"inputs": [
916
{
917
"name": "image",
918
"type": "IMAGE",
919
"link": 94
920
},
921
{
922
"name": "width",
923
"type": "INT",
924
"link": 145,
925
"widget": {
926
"name": "width"
927
}
928
},
929
{
930
"name": "height",
931
"type": "INT",
932
"link": 146,
933
"widget": {
934
"name": "height"
935
}
936
}
937
],
938
"outputs": [
939
{
940
"name": "IMAGE",
941
"type": "IMAGE",
942
"links": [
943
97,
944
100
945
],
946
"shape": 3,
947
"slot_index": 0
948
}
949
],
950
"properties": {
951
"Node name for S&R": "ImageScale"
952
},
953
"widgets_values": [
954
"bilinear",
955
512,
956
512,
957
"disabled"
958
]
959
},
960
{
961
"id": 77,
962
"type": "SaveImage",
963
"pos": [
964
3387,
965
1501
966
],
967
"size": {
968
"0": 376.525634765625,
969
"1": 405.55474853515625
970
},
971
"flags": {},
972
"order": 44,
973
"mode": 0,
974
"inputs": [
975
{
976
"name": "images",
977
"type": "IMAGE",
978
"link": 103
979
}
980
],
981
"properties": {
982
"Node name for S&R": "SaveImage"
983
},
984
"widgets_values": [
985
"ComfyUI"
986
]
987
},
988
{
989
"id": 26,
990
"type": "WD14Tagger|pysssss",
991
"pos": [
992
730,
993
1430
994
],
995
"size": {
996
"0": 320,
997
"1": 178
998
},
999
"flags": {},
1000
"order": 25,
1001
"mode": 2,
1002
"inputs": [
1003
{
1004
"name": "image",
1005
"type": "IMAGE",
1006
"link": 35
1007
}
1008
],
1009
"outputs": [
1010
{
1011
"name": "STRING",
1012
"type": "STRING",
1013
"links": [],
1014
"shape": 6,
1015
"slot_index": 0
1016
}
1017
],
1018
"properties": {
1019
"Node name for S&R": "WD14Tagger|pysssss"
1020
},
1021
"widgets_values": [
1022
"wd-v1-4-convnextv2-tagger-v2",
1023
0.75,
1024
1,
1025
"",
1026
false,
1027
""
1028
]
1029
},
1030
{
1031
"id": 80,
1032
"type": "MaskToImage",
1033
"pos": [
1034
130,
1035
640
1036
],
1037
"size": {
1038
"0": 210,
1039
"1": 26
1040
},
1041
"flags": {},
1042
"order": 9,
1043
"mode": 0,
1044
"inputs": [
1045
{
1046
"name": "mask",
1047
"type": "MASK",
1048
"link": 134
1049
}
1050
],
1051
"outputs": [
1052
{
1053
"name": "IMAGE",
1054
"type": "IMAGE",
1055
"links": [
1056
129
1057
],
1058
"shape": 3,
1059
"slot_index": 0
1060
}
1061
],
1062
"properties": {
1063
"Node name for S&R": "MaskToImage"
1064
}
1065
},
1066
{
1067
"id": 82,
1068
"type": "ImageScale",
1069
"pos": [
1070
70,
1071
470
1072
],
1073
"size": {
1074
"0": 315,
1075
"1": 130
1076
},
1077
"flags": {},
1078
"order": 15,
1079
"mode": 0,
1080
"inputs": [
1081
{
1082
"name": "image",
1083
"type": "IMAGE",
1084
"link": 129
1085
},
1086
{
1087
"name": "width",
1088
"type": "INT",
1089
"link": 138,
1090
"widget": {
1091
"name": "width"
1092
}
1093
},
1094
{
1095
"name": "height",
1096
"type": "INT",
1097
"link": 139,
1098
"widget": {
1099
"name": "height"
1100
}
1101
}
1102
],
1103
"outputs": [
1104
{
1105
"name": "IMAGE",
1106
"type": "IMAGE",
1107
"links": [
1108
132
1109
],
1110
"shape": 3,
1111
"slot_index": 0
1112
}
1113
],
1114
"properties": {
1115
"Node name for S&R": "ImageScale"
1116
},
1117
"widgets_values": [
1118
"bilinear",
1119
512,
1120
512,
1121
"disabled"
1122
]
1123
},
1124
{
1125
"id": 83,
1126
"type": "ImageToMask",
1127
"pos": [
1128
70,
1129
360
1130
],
1131
"size": {
1132
"0": 315,
1133
"1": 58
1134
},
1135
"flags": {},
1136
"order": 16,
1137
"mode": 0,
1138
"inputs": [
1139
{
1140
"name": "image",
1141
"type": "IMAGE",
1142
"link": 132
1143
}
1144
],
1145
"outputs": [
1146
{
1147
"name": "MASK",
1148
"type": "MASK",
1149
"links": [
1150
135
1151
],
1152
"shape": 3,
1153
"slot_index": 0
1154
}
1155
],
1156
"properties": {
1157
"Node name for S&R": "ImageToMask"
1158
},
1159
"widgets_values": [
1160
"red"
1161
]
1162
},
1163
{
1164
"id": 18,
1165
"type": "ConstrainImage|pysssss",
1166
"pos": [
1167
440,
1168
480
1169
],
1170
"size": {
1171
"0": 315,
1172
"1": 154
1173
},
1174
"flags": {},
1175
"order": 6,
1176
"mode": 0,
1177
"inputs": [
1178
{
1179
"name": "images",
1180
"type": "IMAGE",
1181
"link": 22
1182
}
1183
],
1184
"outputs": [
1185
{
1186
"name": "IMAGE",
1187
"type": "IMAGE",
1188
"links": [
1189
43,
1190
76,
1191
137
1192
],
1193
"shape": 6,
1194
"slot_index": 0
1195
}
1196
],
1197
"properties": {
1198
"Node name for S&R": "ConstrainImage|pysssss"
1199
},
1200
"widgets_values": [
1201
1024,
1202
1024,
1203
0,
1204
0,
1205
"no"
1206
]
1207
},
1208
{
1209
"id": 84,
1210
"type": "GetImageSize+",
1211
"pos": [
1212
484,
1213
364
1214
],
1215
"size": {
1216
"0": 210,
1217
"1": 46
1218
},
1219
"flags": {},
1220
"order": 12,
1221
"mode": 0,
1222
"inputs": [
1223
{
1224
"name": "image",
1225
"type": "IMAGE",
1226
"link": 137
1227
}
1228
],
1229
"outputs": [
1230
{
1231
"name": "width",
1232
"type": "INT",
1233
"links": [
1234
138
1235
],
1236
"shape": 3,
1237
"slot_index": 0
1238
},
1239
{
1240
"name": "height",
1241
"type": "INT",
1242
"links": [
1243
139
1244
],
1245
"shape": 3,
1246
"slot_index": 1
1247
}
1248
],
1249
"properties": {
1250
"Node name for S&R": "GetImageSize+"
1251
}
1252
},
1253
{
1254
"id": 32,
1255
"type": "Reroute",
1256
"pos": [
1257
915,
1258
860
1259
],
1260
"size": [
1261
75,
1262
26
1263
],
1264
"flags": {},
1265
"order": 18,
1266
"mode": 0,
1267
"inputs": [
1268
{
1269
"name": "",
1270
"type": "*",
1271
"link": 42
1272
}
1273
],
1274
"outputs": [
1275
{
1276
"name": "",
1277
"type": "MASK",
1278
"links": [
1279
41,
1280
58,
1281
107,
1282
110,
1283
119,
1284
141
1285
],
1286
"slot_index": 0
1287
}
1288
],
1289
"properties": {
1290
"showOutputText": false,
1291
"horizontal": false
1292
}
1293
},
1294
{
1295
"id": 86,
1296
"type": "GetImageSize+",
1297
"pos": [
1298
2642,
1299
1746
1300
],
1301
"size": {
1302
"0": 210,
1303
"1": 46
1304
},
1305
"flags": {},
1306
"order": 7,
1307
"mode": 0,
1308
"inputs": [
1309
{
1310
"name": "image",
1311
"type": "IMAGE",
1312
"link": 144
1313
}
1314
],
1315
"outputs": [
1316
{
1317
"name": "width",
1318
"type": "INT",
1319
"links": [
1320
145
1321
],
1322
"shape": 3,
1323
"slot_index": 0
1324
},
1325
{
1326
"name": "height",
1327
"type": "INT",
1328
"links": [
1329
146
1330
],
1331
"shape": 3,
1332
"slot_index": 1
1333
}
1334
],
1335
"properties": {
1336
"Node name for S&R": "GetImageSize+"
1337
}
1338
},
1339
{
1340
"id": 53,
1341
"type": "Gemini_API_S_Zho",
1342
"pos": [
1343
680,
1344
1640
1345
],
1346
"size": {
1347
"0": 430,
1348
"1": 180
1349
},
1350
"flags": {},
1351
"order": 26,
1352
"mode": 0,
1353
"inputs": [
1354
{
1355
"name": "image",
1356
"type": "IMAGE",
1357
"link": 69,
1358
"slot_index": 0,
1359
"label": "image"
1360
}
1361
],
1362
"outputs": [
1363
{
1364
"name": "text",
1365
"type": "STRING",
1366
"links": [
1367
71,
1368
72
1369
],
1370
"shape": 3,
1371
"slot_index": 0,
1372
"label": "text"
1373
}
1374
],
1375
"properties": {
1376
"Node name for S&R": "Gemini_API_S_Zho"
1377
},
1378
"widgets_values": [
1379
"text = ' ' # @param {type:\"string\"}\n\nprompt = \"You are creating a prompt for Stable Diffusion to generate an image. First step: describe the scene except human, then put description into text. Second step: generate a text prompt for %s based on first step. Only respond with the prompt itself, but embellish it as needed but keep it under 50 tokens. \" % text",
1380
"gemini-pro-vision",
1381
false
1382
],
1383
"color": "#323",
1384
"bgcolor": "#535"
1385
},
1386
{
1387
"id": 2,
1388
"type": "LoadImage",
1389
"pos": [
1390
90,
1391
720
1392
],
1393
"size": {
1394
"0": 334.4668884277344,
1395
"1": 497.806396484375
1396
},
1397
"flags": {},
1398
"order": 2,
1399
"mode": 0,
1400
"outputs": [
1401
{
1402
"name": "IMAGE",
1403
"type": "IMAGE",
1404
"links": [
1405
22,
1406
127,
1407
144
1408
],
1409
"shape": 3,
1410
"slot_index": 0
1411
},
1412
{
1413
"name": "MASK",
1414
"type": "MASK",
1415
"links": [
1416
59,
1417
134
1418
],
1419
"shape": 3,
1420
"slot_index": 1
1421
}
1422
],
1423
"properties": {
1424
"Node name for S&R": "LoadImage"
1425
},
1426
"widgets_values": [
1427
"ComfyUI_07458_ (2).png",
1428
"image"
1429
]
1430
},
1431
{
1432
"id": 61,
1433
"type": "PreviewImage",
1434
"pos": [
1435
2146,
1436
1038
1437
],
1438
"size": {
1439
"0": 290.6172790527344,
1440
"1": 367.0473327636719
1441
},
1442
"flags": {},
1443
"order": 33,
1444
"mode": 0,
1445
"inputs": [
1446
{
1447
"name": "images",
1448
"type": "IMAGE",
1449
"link": 84
1450
}
1451
],
1452
"properties": {
1453
"Node name for S&R": "PreviewImage"
1454
}
1455
},
1456
{
1457
"id": 12,
1458
"type": "CLIPTextEncode",
1459
"pos": [
1460
1246,
1461
1491
1462
],
1463
"size": {
1464
"0": 341.1274108886719,
1465
"1": 134.3723907470703
1466
},
1467
"flags": {},
1468
"order": 4,
1469
"mode": 0,
1470
"inputs": [
1471
{
1472
"name": "clip",
1473
"type": "CLIP",
1474
"link": 13
1475
}
1476
],
1477
"outputs": [
1478
{
1479
"name": "CONDITIONING",
1480
"type": "CONDITIONING",
1481
"links": [
1482
115,
1483
125
1484
],
1485
"shape": 3,
1486
"slot_index": 0
1487
}
1488
],
1489
"properties": {
1490
"Node name for S&R": "CLIPTextEncode"
1491
},
1492
"widgets_values": [
1493
""
1494
]
1495
},
1496
{
1497
"id": 33,
1498
"type": "Reroute",
1499
"pos": [
1500
918,
1501
772
1502
],
1503
"size": [
1504
75,
1505
26
1506
],
1507
"flags": {},
1508
"order": 10,
1509
"mode": 0,
1510
"inputs": [
1511
{
1512
"name": "",
1513
"type": "*",
1514
"link": 43
1515
}
1516
],
1517
"outputs": [
1518
{
1519
"name": "",
1520
"type": "IMAGE",
1521
"links": [
1522
140
1523
],
1524
"slot_index": 0
1525
}
1526
],
1527
"properties": {
1528
"showOutputText": false,
1529
"horizontal": false
1530
}
1531
},
1532
{
1533
"id": 59,
1534
"type": "KSampler",
1535
"pos": [
1536
2130,
1537
610
1538
],
1539
"size": {
1540
"0": 315,
1541
"1": 262
1542
},
1543
"flags": {},
1544
"order": 31,
1545
"mode": 0,
1546
"inputs": [
1547
{
1548
"name": "model",
1549
"type": "MODEL",
1550
"link": 81
1551
},
1552
{
1553
"name": "positive",
1554
"type": "CONDITIONING",
1555
"link": 151
1556
},
1557
{
1558
"name": "negative",
1559
"type": "CONDITIONING",
1560
"link": 115
1561
},
1562
{
1563
"name": "latent_image",
1564
"type": "LATENT",
1565
"link": 152
1566
}
1567
],
1568
"outputs": [
1569
{
1570
"name": "LATENT",
1571
"type": "LATENT",
1572
"links": [
1573
83
1574
],
1575
"shape": 3,
1576
"slot_index": 0
1577
}
1578
],
1579
"properties": {
1580
"Node name for S&R": "KSampler"
1581
},
1582
"widgets_values": [
1583
232324117906354,
1584
"randomize",
1585
30,
1586
7,
1587
"dpmpp_2m",
1588
"karras",
1589
1
1590
]
1591
},
1592
{
1593
"id": 30,
1594
"type": "Reroute",
1595
"pos": [
1596
1490,
1597
550
1598
],
1599
"size": [
1600
75,
1601
26
1602
],
1603
"flags": {},
1604
"order": 23,
1605
"mode": 0,
1606
"inputs": [
1607
{
1608
"name": "",
1609
"type": "*",
1610
"link": 142
1611
}
1612
],
1613
"outputs": [
1614
{
1615
"name": "",
1616
"type": "IMAGE",
1617
"links": [
1618
35,
1619
69,
1620
149
1621
],
1622
"slot_index": 0
1623
}
1624
],
1625
"properties": {
1626
"showOutputText": false,
1627
"horizontal": false
1628
}
1629
},
1630
{
1631
"id": 11,
1632
"type": "CLIPTextEncode",
1633
"pos": [
1634
1260,
1635
1390
1636
],
1637
"size": {
1638
"0": 327.1646728515625,
1639
"1": 54
1640
},
1641
"flags": {},
1642
"order": 28,
1643
"mode": 0,
1644
"inputs": [
1645
{
1646
"name": "clip",
1647
"type": "CLIP",
1648
"link": 11
1649
},
1650
{
1651
"name": "text",
1652
"type": "STRING",
1653
"link": 71,
1654
"widget": {
1655
"name": "text"
1656
}
1657
}
1658
],
1659
"outputs": [
1660
{
1661
"name": "CONDITIONING",
1662
"type": "CONDITIONING",
1663
"links": [
1664
126,
1665
151
1666
],
1667
"shape": 3,
1668
"slot_index": 0
1669
}
1670
],
1671
"properties": {
1672
"Node name for S&R": "CLIPTextEncode"
1673
},
1674
"widgets_values": [
1675
"masterpiece, best quality,8k uhd, ultra realistic,realistic, photorealistic, RAW,"
1676
]
1677
},
1678
{
1679
"id": 85,
1680
"type": "LamaRemover",
1681
"pos": [
1682
1048,
1683
546
1684
],
1685
"size": {
1686
"0": 315,
1687
"1": 126
1688
},
1689
"flags": {},
1690
"order": 22,
1691
"mode": 0,
1692
"inputs": [
1693
{
1694
"name": "images",
1695
"type": "IMAGE",
1696
"link": 140
1697
},
1698
{
1699
"name": "masks",
1700
"type": "MASK",
1701
"link": 141
1702
}
1703
],
1704
"outputs": [
1705
{
1706
"name": "images",
1707
"type": "IMAGE",
1708
"links": [
1709
142,
1710
143
1711
],
1712
"shape": 3,
1713
"slot_index": 0
1714
}
1715
],
1716
"properties": {
1717
"Node name for S&R": "LamaRemover"
1718
},
1719
"widgets_values": [
1720
250,
1721
8,
1722
false
1723
]
1724
},
1725
{
1726
"id": 57,
1727
"type": "INPAINT_LoadFooocusInpaint",
1728
"pos": [
1729
1737,
1730
981
1731
],
1732
"size": {
1733
"0": 315,
1734
"1": 82
1735
},
1736
"flags": {},
1737
"order": 3,
1738
"mode": 0,
1739
"outputs": [
1740
{
1741
"name": "INPAINT_PATCH",
1742
"type": "INPAINT_PATCH",
1743
"links": [
1744
79
1745
],
1746
"shape": 3,
1747
"slot_index": 0
1748
}
1749
],
1750
"properties": {
1751
"Node name for S&R": "INPAINT_LoadFooocusInpaint"
1752
},
1753
"widgets_values": [
1754
"fooocus_inpaint_head.pth",
1755
"inpaint_v26.fooocus.patch"
1756
]
1757
},
1758
{
1759
"id": 58,
1760
"type": "INPAINT_ApplyFooocusInpaint",
1761
"pos": [
1762
1768,
1763
841
1764
],
1765
"size": {
1766
"0": 210,
1767
"1": 66
1768
},
1769
"flags": {},
1770
"order": 30,
1771
"mode": 0,
1772
"inputs": [
1773
{
1774
"name": "model",
1775
"type": "MODEL",
1776
"link": 111
1777
},
1778
{
1779
"name": "patch",
1780
"type": "INPAINT_PATCH",
1781
"link": 79
1782
},
1783
{
1784
"name": "latent",
1785
"type": "LATENT",
1786
"link": 80
1787
}
1788
],
1789
"outputs": [
1790
{
1791
"name": "MODEL",
1792
"type": "MODEL",
1793
"links": [
1794
81
1795
],
1796
"shape": 3,
1797
"slot_index": 0
1798
}
1799
],
1800
"properties": {
1801
"Node name for S&R": "INPAINT_ApplyFooocusInpaint"
1802
}
1803
},
1804
{
1805
"id": 63,
1806
"type": "VAEEncodeForInpaint",
1807
"pos": [
1808
1698,
1809
672
1810
],
1811
"size": {
1812
"0": 315,
1813
"1": 98
1814
},
1815
"flags": {},
1816
"order": 27,
1817
"mode": 0,
1818
"inputs": [
1819
{
1820
"name": "pixels",
1821
"type": "IMAGE",
1822
"link": 149
1823
},
1824
{
1825
"name": "vae",
1826
"type": "VAE",
1827
"link": null
1828
},
1829
{
1830
"name": "mask",
1831
"type": "MASK",
1832
"link": 107
1833
}
1834
],
1835
"outputs": [
1836
{
1837
"name": "LATENT",
1838
"type": "LATENT",
1839
"links": [
1840
80,
1841
152
1842
],
1843
"shape": 3,
1844
"slot_index": 0
1845
}
1846
],
1847
"properties": {
1848
"Node name for S&R": "VAEEncodeForInpaint"
1849
},
1850
"widgets_values": [
1851
6
1852
]
1853
}
1854
],
1855
"links": [
1856
[
1857
3,
1858
3,
1859
1,
1860
5,
1861
0,
1862
"MASK"
1863
],
1864
[
1865
11,
1866
1,
1867
1,
1868
11,
1869
0,
1870
"CLIP"
1871
],
1872
[
1873
13,
1874
1,
1875
1,
1876
12,
1877
0,
1878
"CLIP"
1879
],
1880
[
1881
22,
1882
2,
1883
0,
1884
18,
1885
0,
1886
"IMAGE"
1887
],
1888
[
1889
35,
1890
30,
1891
0,
1892
26,
1893
0,
1894
"IMAGE"
1895
],
1896
[
1897
41,
1898
32,
1899
0,
1900
31,
1901
0,
1902
"MASK"
1903
],
1904
[
1905
42,
1906
43,
1907
0,
1908
32,
1909
0,
1910
"*"
1911
],
1912
[
1913
43,
1914
18,
1915
0,
1916
33,
1917
0,
1918
"*"
1919
],
1920
[
1921
56,
1922
5,
1923
0,
1924
43,
1925
0,
1926
"MASK"
1927
],
1928
[
1929
58,
1930
32,
1931
0,
1932
44,
1933
0,
1934
"MASK"
1935
],
1936
[
1937
59,
1938
2,
1939
1,
1940
45,
1941
0,
1942
"MASK"
1943
],
1944
[
1945
69,
1946
30,
1947
0,
1948
53,
1949
0,
1950
"IMAGE"
1951
],
1952
[
1953
71,
1954
53,
1955
0,
1956
11,
1957
1,
1958
"STRING"
1959
],
1960
[
1961
72,
1962
53,
1963
0,
1964
54,
1965
0,
1966
"STRING"
1967
],
1968
[
1969
76,
1970
18,
1971
0,
1972
3,
1973
0,
1974
"IMAGE"
1975
],
1976
[
1977
78,
1978
3,
1979
0,
1980
56,
1981
0,
1982
"IMAGE"
1983
],
1984
[
1985
79,
1986
57,
1987
0,
1988
58,
1989
1,
1990
"INPAINT_PATCH"
1991
],
1992
[
1993
80,
1994
63,
1995
0,
1996
58,
1997
2,
1998
"LATENT"
1999
],
2000
[
2001
81,
2002
58,
2003
0,
2004
59,
2005
0,
2006
"MODEL"
2007
],
2008
[
2009
83,
2010
59,
2011
0,
2012
60,
2013
0,
2014
"LATENT"
2015
],
2016
[
2017
84,
2018
60,
2019
0,
2020
61,
2021
0,
2022
"IMAGE"
2023
],
2024
[
2025
88,
2026
66,
2027
0,
2028
65,
2029
0,
2030
"UPSCALE_MODEL"
2031
],
2032
[
2033
89,
2034
60,
2035
0,
2036
65,
2037
1,
2038
"IMAGE"
2039
],
2040
[
2041
90,
2042
65,
2043
0,
2044
67,
2045
0,
2046
"IMAGE"
2047
],
2048
[
2049
91,
2050
67,
2051
0,
2052
68,
2053
0,
2054
"IMAGE"
2055
],
2056
[
2057
92,
2058
64,
2059
0,
2060
69,
2061
0,
2062
"LATENT"
2063
],
2064
[
2065
93,
2066
69,
2067
0,
2068
70,
2069
0,
2070
"IMAGE"
2071
],
2072
[
2073
94,
2074
69,
2075
0,
2076
71,
2077
0,
2078
"IMAGE"
2079
],
2080
[
2081
97,
2082
71,
2083
0,
2084
72,
2085
0,
2086
"IMAGE"
2087
],
2088
[
2089
100,
2090
71,
2091
0,
2092
74,
2093
1,
2094
"IMAGE"
2095
],
2096
[
2097
103,
2098
74,
2099
0,
2100
77,
2101
0,
2102
"IMAGE"
2103
],
2104
[
2105
107,
2106
32,
2107
0,
2108
63,
2109
2,
2110
"MASK"
2111
],
2112
[
2113
108,
2114
68,
2115
0,
2116
78,
2117
0,
2118
"LATENT"
2119
],
2120
[
2121
109,
2122
78,
2123
0,
2124
64,
2125
3,
2126
"LATENT"
2127
],
2128
[
2129
110,
2130
32,
2131
0,
2132
78,
2133
1,
2134
"MASK"
2135
],
2136
[
2137
111,
2138
1,
2139
0,
2140
58,
2141
0,
2142
"MODEL"
2143
],
2144
[
2145
112,
2146
1,
2147
2,
2148
6,
2149
0,
2150
"VAE"
2151
],
2152
[
2153
113,
2154
1,
2155
0,
2156
64,
2157
0,
2158
"MODEL"
2159
],
2160
[
2161
115,
2162
12,
2163
0,
2164
59,
2165
2,
2166
"CONDITIONING"
2167
],
2168
[
2169
119,
2170
32,
2171
0,
2172
75,
2173
0,
2174
"MASK"
2175
],
2176
[
2177
125,
2178
12,
2179
0,
2180
64,
2181
2,
2182
"CONDITIONING"
2183
],
2184
[
2185
126,
2186
11,
2187
0,
2188
64,
2189
1,
2190
"CONDITIONING"
2191
],
2192
[
2193
127,
2194
2,
2195
0,
2196
74,
2197
0,
2198
"IMAGE"
2199
],
2200
[
2201
128,
2202
75,
2203
0,
2204
74,
2205
2,
2206
"MASK"
2207
],
2208
[
2209
129,
2210
80,
2211
0,
2212
82,
2213
0,
2214
"IMAGE"
2215
],
2216
[
2217
132,
2218
82,
2219
0,
2220
83,
2221
0,
2222
"IMAGE"
2223
],
2224
[
2225
134,
2226
2,
2227
1,
2228
80,
2229
0,
2230
"MASK"
2231
],
2232
[
2233
135,
2234
83,
2235
0,
2236
43,
2237
1,
2238
"MASK"
2239
],
2240
[
2241
137,
2242
18,
2243
0,
2244
84,
2245
0,
2246
"IMAGE"
2247
],
2248
[
2249
138,
2250
84,
2251
0,
2252
82,
2253
1,
2254
"INT"
2255
],
2256
[
2257
139,
2258
84,
2259
1,
2260
82,
2261
2,
2262
"INT"
2263
],
2264
[
2265
140,
2266
33,
2267
0,
2268
85,
2269
0,
2270
"IMAGE"
2271
],
2272
[
2273
141,
2274
32,
2275
0,
2276
85,
2277
1,
2278
"MASK"
2279
],
2280
[
2281
142,
2282
85,
2283
0,
2284
30,
2285
0,
2286
"*"
2287
],
2288
[
2289
143,
2290
85,
2291
0,
2292
42,
2293
0,
2294
"IMAGE"
2295
],
2296
[
2297
144,
2298
2,
2299
0,
2300
86,
2301
0,
2302
"IMAGE"
2303
],
2304
[
2305
145,
2306
86,
2307
0,
2308
71,
2309
1,
2310
"INT"
2311
],
2312
[
2313
146,
2314
86,
2315
1,
2316
71,
2317
2,
2318
"INT"
2319
],
2320
[
2321
149,
2322
30,
2323
0,
2324
63,
2325
0,
2326
"IMAGE"
2327
],
2328
[
2329
151,
2330
11,
2331
0,
2332
59,
2333
1,
2334
"CONDITIONING"
2335
],
2336
[
2337
152,
2338
63,
2339
0,
2340
59,
2341
3,
2342
"LATENT"
2343
]
2344
],
2345
"groups": [],
2346
"config": {},
2347
"extra": {
2348
"ds": {
2349
"scale": 0.6830134553650705,
2350
"offset": [
2351
70.53057917518692,
2352
60.65612303476704
2353
]
2354
}
2355
},
2356
"version": 0.4
2357
}
2358