neuralvfx commited on
Commit
64e36d9
·
verified ·
1 Parent(s): 06fa3a8

Upload z-image-control.json

Browse files
Files changed (1) hide show
  1. comfy-ui-patch/z-image-control.json +1246 -0
comfy-ui-patch/z-image-control.json ADDED
@@ -0,0 +1,1246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "dc824ad9-4bce-4551-a997-e6a87f72ec9a",
3
+ "revision": 0,
4
+ "last_node_id": 45,
5
+ "last_link_id": 77,
6
+ "nodes": [
7
+ {
8
+ "id": 11,
9
+ "type": "ZImageFunControlnet",
10
+ "pos": [
11
+ 415.9837148867862,
12
+ 1217.8433748087343
13
+ ],
14
+ "size": [
15
+ 270,
16
+ 158
17
+ ],
18
+ "flags": {},
19
+ "order": 17,
20
+ "mode": 0,
21
+ "inputs": [
22
+ {
23
+ "name": "model",
24
+ "type": "MODEL",
25
+ "link": 8
26
+ },
27
+ {
28
+ "name": "model_patch",
29
+ "type": "MODEL_PATCH",
30
+ "link": 7
31
+ },
32
+ {
33
+ "name": "vae",
34
+ "type": "VAE",
35
+ "link": 24
36
+ },
37
+ {
38
+ "name": "image",
39
+ "shape": 7,
40
+ "type": "IMAGE",
41
+ "link": 66
42
+ },
43
+ {
44
+ "name": "inpaint_image",
45
+ "shape": 7,
46
+ "type": "IMAGE",
47
+ "link": null
48
+ },
49
+ {
50
+ "name": "mask",
51
+ "shape": 7,
52
+ "type": "MASK",
53
+ "link": null
54
+ }
55
+ ],
56
+ "outputs": [
57
+ {
58
+ "name": "MODEL",
59
+ "type": "MODEL",
60
+ "links": [
61
+ 9
62
+ ]
63
+ }
64
+ ],
65
+ "properties": {
66
+ "cnr_id": "comfy-core",
67
+ "ver": "0.11.0",
68
+ "Node name for S&R": "ZImageFunControlnet"
69
+ },
70
+ "widgets_values": [
71
+ 1
72
+ ]
73
+ },
74
+ {
75
+ "id": 19,
76
+ "type": "CLIPTextEncode",
77
+ "pos": [
78
+ 565.6117354916819,
79
+ 747.6673540762121
80
+ ],
81
+ "size": [
82
+ 384.6283512791799,
83
+ 88
84
+ ],
85
+ "flags": {},
86
+ "order": 7,
87
+ "mode": 0,
88
+ "inputs": [
89
+ {
90
+ "name": "clip",
91
+ "type": "CLIP",
92
+ "link": 25
93
+ }
94
+ ],
95
+ "outputs": [
96
+ {
97
+ "name": "CONDITIONING",
98
+ "type": "CONDITIONING",
99
+ "links": [
100
+ 18
101
+ ]
102
+ }
103
+ ],
104
+ "properties": {
105
+ "cnr_id": "comfy-core",
106
+ "ver": "0.11.0",
107
+ "Node name for S&R": "CLIPTextEncode"
108
+ },
109
+ "widgets_values": [
110
+ "低分辨率,低画质,肢体畸形,手指畸形,画面过饱和,蜡像感,人脸无细节,过度光滑,画面具有AI感。构图混乱。文字模糊,扭曲。"
111
+ ]
112
+ },
113
+ {
114
+ "id": 30,
115
+ "type": "SaveImage",
116
+ "pos": [
117
+ 1792.9983147271168,
118
+ 1031.4138758775948
119
+ ],
120
+ "size": [
121
+ 963.738329965309,
122
+ 1146.7897439905723
123
+ ],
124
+ "flags": {},
125
+ "order": 20,
126
+ "mode": 0,
127
+ "inputs": [
128
+ {
129
+ "name": "images",
130
+ "type": "IMAGE",
131
+ "link": 43
132
+ }
133
+ ],
134
+ "outputs": [],
135
+ "properties": {
136
+ "cnr_id": "comfy-core",
137
+ "ver": "0.11.0",
138
+ "Node name for S&R": "SaveImage"
139
+ },
140
+ "widgets_values": [
141
+ "beach_sgmm_uniform"
142
+ ]
143
+ },
144
+ {
145
+ "id": 20,
146
+ "type": "VAEDecode",
147
+ "pos": [
148
+ 1543.1171210511807,
149
+ 1245.8377316181443
150
+ ],
151
+ "size": [
152
+ 140,
153
+ 46
154
+ ],
155
+ "flags": {},
156
+ "order": 19,
157
+ "mode": 0,
158
+ "inputs": [
159
+ {
160
+ "name": "samples",
161
+ "type": "LATENT",
162
+ "link": 19
163
+ },
164
+ {
165
+ "name": "vae",
166
+ "type": "VAE",
167
+ "link": 23
168
+ }
169
+ ],
170
+ "outputs": [
171
+ {
172
+ "name": "IMAGE",
173
+ "type": "IMAGE",
174
+ "links": [
175
+ 43
176
+ ]
177
+ }
178
+ ],
179
+ "properties": {
180
+ "cnr_id": "comfy-core",
181
+ "ver": "0.11.0",
182
+ "Node name for S&R": "VAEDecode"
183
+ },
184
+ "widgets_values": []
185
+ },
186
+ {
187
+ "id": 15,
188
+ "type": "LoadImage",
189
+ "pos": [
190
+ -821.0957409457342,
191
+ 2280.5309684912636
192
+ ],
193
+ "size": [
194
+ 282.798828125,
195
+ 314
196
+ ],
197
+ "flags": {},
198
+ "order": 0,
199
+ "mode": 0,
200
+ "inputs": [],
201
+ "outputs": [
202
+ {
203
+ "name": "IMAGE",
204
+ "type": "IMAGE",
205
+ "links": []
206
+ },
207
+ {
208
+ "name": "MASK",
209
+ "type": "MASK",
210
+ "links": null
211
+ }
212
+ ],
213
+ "properties": {
214
+ "cnr_id": "comfy-core",
215
+ "ver": "0.11.0",
216
+ "Node name for S&R": "LoadImage"
217
+ },
218
+ "widgets_values": [
219
+ "z-image.png",
220
+ "image"
221
+ ]
222
+ },
223
+ {
224
+ "id": 23,
225
+ "type": "CLIPLoader",
226
+ "pos": [
227
+ 239.1186565991756,
228
+ 657.1514402079171
229
+ ],
230
+ "size": [
231
+ 270,
232
+ 106
233
+ ],
234
+ "flags": {},
235
+ "order": 1,
236
+ "mode": 0,
237
+ "inputs": [],
238
+ "outputs": [
239
+ {
240
+ "name": "CLIP",
241
+ "type": "CLIP",
242
+ "links": [
243
+ 25,
244
+ 26
245
+ ]
246
+ }
247
+ ],
248
+ "properties": {
249
+ "cnr_id": "comfy-core",
250
+ "ver": "0.11.0",
251
+ "Node name for S&R": "CLIPLoader"
252
+ },
253
+ "widgets_values": [
254
+ "qwen_3_4b.safetensors",
255
+ "stable_diffusion",
256
+ "default"
257
+ ]
258
+ },
259
+ {
260
+ "id": 13,
261
+ "type": "ModelPatchLoader",
262
+ "pos": [
263
+ 65.16434800585203,
264
+ 1282.1995134775584
265
+ ],
266
+ "size": [
267
+ 270,
268
+ 58
269
+ ],
270
+ "flags": {},
271
+ "order": 2,
272
+ "mode": 0,
273
+ "inputs": [],
274
+ "outputs": [
275
+ {
276
+ "name": "MODEL_PATCH",
277
+ "type": "MODEL_PATCH",
278
+ "links": [
279
+ 7
280
+ ]
281
+ }
282
+ ],
283
+ "properties": {
284
+ "cnr_id": "comfy-core",
285
+ "ver": "0.11.0",
286
+ "Node name for S&R": "ModelPatchLoader"
287
+ },
288
+ "widgets_values": [
289
+ "z-image-sam-controlnet.safetensors"
290
+ ]
291
+ },
292
+ {
293
+ "id": 22,
294
+ "type": "VAELoader",
295
+ "pos": [
296
+ 64.33552623336276,
297
+ 1397.8641386088798
298
+ ],
299
+ "size": [
300
+ 270,
301
+ 58
302
+ ],
303
+ "flags": {},
304
+ "order": 3,
305
+ "mode": 0,
306
+ "inputs": [],
307
+ "outputs": [
308
+ {
309
+ "name": "VAE",
310
+ "type": "VAE",
311
+ "links": [
312
+ 23,
313
+ 24
314
+ ]
315
+ }
316
+ ],
317
+ "properties": {
318
+ "cnr_id": "comfy-core",
319
+ "ver": "0.11.0",
320
+ "Node name for S&R": "VAELoader"
321
+ },
322
+ "widgets_values": [
323
+ "ae.safetensors"
324
+ ]
325
+ },
326
+ {
327
+ "id": 14,
328
+ "type": "CheckpointLoaderSimple",
329
+ "pos": [
330
+ 62.28036667683965,
331
+ 1120.527418531949
332
+ ],
333
+ "size": [
334
+ 270,
335
+ 98
336
+ ],
337
+ "flags": {},
338
+ "order": 4,
339
+ "mode": 0,
340
+ "inputs": [],
341
+ "outputs": [
342
+ {
343
+ "name": "MODEL",
344
+ "type": "MODEL",
345
+ "links": [
346
+ 8
347
+ ]
348
+ },
349
+ {
350
+ "name": "CLIP",
351
+ "type": "CLIP",
352
+ "links": []
353
+ },
354
+ {
355
+ "name": "VAE",
356
+ "type": "VAE",
357
+ "links": []
358
+ }
359
+ ],
360
+ "properties": {
361
+ "cnr_id": "comfy-core",
362
+ "ver": "0.11.0",
363
+ "Node name for S&R": "CheckpointLoaderSimple"
364
+ },
365
+ "widgets_values": [
366
+ "z_image_bf16.safetensors"
367
+ ]
368
+ },
369
+ {
370
+ "id": 24,
371
+ "type": "EmptySD3LatentImage",
372
+ "pos": [
373
+ 853.1171210511798,
374
+ 1475.8377316181443
375
+ ],
376
+ "size": [
377
+ 270,
378
+ 106
379
+ ],
380
+ "flags": {},
381
+ "order": 13,
382
+ "mode": 0,
383
+ "inputs": [
384
+ {
385
+ "name": "width",
386
+ "type": "INT",
387
+ "widget": {
388
+ "name": "width"
389
+ },
390
+ "link": 73
391
+ },
392
+ {
393
+ "name": "height",
394
+ "type": "INT",
395
+ "widget": {
396
+ "name": "height"
397
+ },
398
+ "link": 72
399
+ }
400
+ ],
401
+ "outputs": [
402
+ {
403
+ "name": "LATENT",
404
+ "type": "LATENT",
405
+ "links": [
406
+ 40
407
+ ]
408
+ }
409
+ ],
410
+ "properties": {
411
+ "cnr_id": "comfy-core",
412
+ "ver": "0.11.0",
413
+ "Node name for S&R": "EmptySD3LatentImage"
414
+ },
415
+ "widgets_values": [
416
+ 1024,
417
+ 1024,
418
+ 1
419
+ ]
420
+ },
421
+ {
422
+ "id": 35,
423
+ "type": "ResizeAndPadImage",
424
+ "pos": [
425
+ -1238.1721546517392,
426
+ 1946.865888773204
427
+ ],
428
+ "size": [
429
+ 270,
430
+ 130
431
+ ],
432
+ "flags": {},
433
+ "order": 14,
434
+ "mode": 0,
435
+ "inputs": [
436
+ {
437
+ "name": "image",
438
+ "type": "IMAGE",
439
+ "link": 77
440
+ },
441
+ {
442
+ "name": "target_width",
443
+ "type": "INT",
444
+ "widget": {
445
+ "name": "target_width"
446
+ },
447
+ "link": 69
448
+ },
449
+ {
450
+ "name": "target_height",
451
+ "type": "INT",
452
+ "widget": {
453
+ "name": "target_height"
454
+ },
455
+ "link": 71
456
+ }
457
+ ],
458
+ "outputs": [
459
+ {
460
+ "name": "IMAGE",
461
+ "type": "IMAGE",
462
+ "links": [
463
+ 65
464
+ ]
465
+ }
466
+ ],
467
+ "properties": {
468
+ "cnr_id": "comfy-core",
469
+ "ver": "0.18.2",
470
+ "Node name for S&R": "ResizeAndPadImage"
471
+ },
472
+ "widgets_values": [
473
+ 512,
474
+ 512,
475
+ "white",
476
+ "area"
477
+ ]
478
+ },
479
+ {
480
+ "id": 34,
481
+ "type": "DownloadAndLoadSAM2Model",
482
+ "pos": [
483
+ -1121.7861397212728,
484
+ 1149.4637473707248
485
+ ],
486
+ "size": [
487
+ 270,
488
+ 130
489
+ ],
490
+ "flags": {},
491
+ "order": 5,
492
+ "mode": 0,
493
+ "inputs": [],
494
+ "outputs": [
495
+ {
496
+ "name": "sam2_model",
497
+ "type": "SAM2MODEL",
498
+ "links": [
499
+ 46
500
+ ]
501
+ }
502
+ ],
503
+ "properties": {
504
+ "cnr_id": "comfyui-segment-anything-2",
505
+ "ver": "1.0.2",
506
+ "Node name for S&R": "DownloadAndLoadSAM2Model"
507
+ },
508
+ "widgets_values": [
509
+ "sam2_hiera_base_plus.safetensors",
510
+ "automaskgenerator",
511
+ "cuda",
512
+ "fp16"
513
+ ]
514
+ },
515
+ {
516
+ "id": 36,
517
+ "type": "GetImageSize",
518
+ "pos": [
519
+ -1746.017145146,
520
+ 1967.0669951317168
521
+ ],
522
+ "size": [
523
+ 140,
524
+ 124.00000000000023
525
+ ],
526
+ "flags": {},
527
+ "order": 10,
528
+ "mode": 0,
529
+ "inputs": [
530
+ {
531
+ "name": "image",
532
+ "type": "IMAGE",
533
+ "link": 76
534
+ }
535
+ ],
536
+ "outputs": [
537
+ {
538
+ "name": "width",
539
+ "type": "INT",
540
+ "links": [
541
+ 68,
542
+ 73
543
+ ]
544
+ },
545
+ {
546
+ "name": "height",
547
+ "type": "INT",
548
+ "links": [
549
+ 70,
550
+ 72
551
+ ]
552
+ },
553
+ {
554
+ "name": "batch_size",
555
+ "type": "INT",
556
+ "links": null
557
+ }
558
+ ],
559
+ "properties": {
560
+ "cnr_id": "comfy-core",
561
+ "ver": "0.18.2",
562
+ "Node name for S&R": "GetImageSize"
563
+ },
564
+ "widgets_values": []
565
+ },
566
+ {
567
+ "id": 42,
568
+ "type": "ComfyMathExpression",
569
+ "pos": [
570
+ -1531.0935930361586,
571
+ 1898.417099480822
572
+ ],
573
+ "size": [
574
+ 213.8494156578413,
575
+ 128
576
+ ],
577
+ "flags": {},
578
+ "order": 11,
579
+ "mode": 0,
580
+ "inputs": [
581
+ {
582
+ "label": "a",
583
+ "name": "values.a",
584
+ "type": "FLOAT,INT",
585
+ "link": 68
586
+ },
587
+ {
588
+ "label": "b",
589
+ "name": "values.b",
590
+ "shape": 7,
591
+ "type": "FLOAT,INT",
592
+ "link": null
593
+ }
594
+ ],
595
+ "outputs": [
596
+ {
597
+ "name": "FLOAT",
598
+ "type": "FLOAT",
599
+ "links": null
600
+ },
601
+ {
602
+ "name": "INT",
603
+ "type": "INT",
604
+ "links": [
605
+ 69
606
+ ]
607
+ }
608
+ ],
609
+ "properties": {
610
+ "cnr_id": "comfy-core",
611
+ "ver": "0.18.1",
612
+ "Node name for S&R": "ComfyMathExpression"
613
+ },
614
+ "widgets_values": [
615
+ "a/16*16"
616
+ ]
617
+ },
618
+ {
619
+ "id": 43,
620
+ "type": "ComfyMathExpression",
621
+ "pos": [
622
+ -1532.8751424757495,
623
+ 2042.2495505586323
624
+ ],
625
+ "size": [
626
+ 213.8494156578413,
627
+ 128
628
+ ],
629
+ "flags": {},
630
+ "order": 12,
631
+ "mode": 0,
632
+ "inputs": [
633
+ {
634
+ "label": "a",
635
+ "name": "values.a",
636
+ "type": "FLOAT,INT",
637
+ "link": 70
638
+ },
639
+ {
640
+ "label": "b",
641
+ "name": "values.b",
642
+ "shape": 7,
643
+ "type": "FLOAT,INT",
644
+ "link": null
645
+ }
646
+ ],
647
+ "outputs": [
648
+ {
649
+ "name": "FLOAT",
650
+ "type": "FLOAT",
651
+ "links": null
652
+ },
653
+ {
654
+ "name": "INT",
655
+ "type": "INT",
656
+ "links": [
657
+ 71
658
+ ]
659
+ }
660
+ ],
661
+ "properties": {
662
+ "cnr_id": "comfy-core",
663
+ "ver": "0.18.1",
664
+ "Node name for S&R": "ComfyMathExpression"
665
+ },
666
+ "widgets_values": [
667
+ "a/16*16"
668
+ ]
669
+ },
670
+ {
671
+ "id": 31,
672
+ "type": "PreviewImage",
673
+ "pos": [
674
+ -99.58155915825408,
675
+ 1765.1282497806278
676
+ ],
677
+ "size": [
678
+ 324.69567229615086,
679
+ 300.83144858776404
680
+ ],
681
+ "flags": {},
682
+ "order": 16,
683
+ "mode": 0,
684
+ "inputs": [
685
+ {
686
+ "name": "images",
687
+ "type": "IMAGE",
688
+ "link": 45
689
+ }
690
+ ],
691
+ "outputs": [],
692
+ "properties": {
693
+ "cnr_id": "comfy-core",
694
+ "ver": "0.18.2",
695
+ "Node name for S&R": "PreviewImage"
696
+ },
697
+ "widgets_values": []
698
+ },
699
+ {
700
+ "id": 16,
701
+ "type": "KSampler",
702
+ "pos": [
703
+ 1193.1171210511807,
704
+ 1275.8377316181443
705
+ ],
706
+ "size": [
707
+ 270,
708
+ 474
709
+ ],
710
+ "flags": {},
711
+ "order": 18,
712
+ "mode": 0,
713
+ "inputs": [
714
+ {
715
+ "name": "model",
716
+ "type": "MODEL",
717
+ "link": 9
718
+ },
719
+ {
720
+ "name": "positive",
721
+ "type": "CONDITIONING",
722
+ "link": 13
723
+ },
724
+ {
725
+ "name": "negative",
726
+ "type": "CONDITIONING",
727
+ "link": 18
728
+ },
729
+ {
730
+ "name": "latent_image",
731
+ "type": "LATENT",
732
+ "link": 40
733
+ }
734
+ ],
735
+ "outputs": [
736
+ {
737
+ "name": "LATENT",
738
+ "type": "LATENT",
739
+ "links": [
740
+ 19
741
+ ]
742
+ }
743
+ ],
744
+ "properties": {
745
+ "cnr_id": "comfy-core",
746
+ "ver": "0.11.0",
747
+ "Node name for S&R": "KSampler"
748
+ },
749
+ "widgets_values": [
750
+ 43,
751
+ "fixed",
752
+ 50,
753
+ 4,
754
+ "euler",
755
+ "normal",
756
+ 1
757
+ ]
758
+ },
759
+ {
760
+ "id": 32,
761
+ "type": "Sam2AutoSegmentation",
762
+ "pos": [
763
+ -730.1928828173537,
764
+ 1316.2557006991372
765
+ ],
766
+ "size": [
767
+ 348.740234375,
768
+ 410
769
+ ],
770
+ "flags": {},
771
+ "order": 15,
772
+ "mode": 0,
773
+ "inputs": [
774
+ {
775
+ "name": "sam2_model",
776
+ "type": "SAM2MODEL",
777
+ "link": 46
778
+ },
779
+ {
780
+ "name": "image",
781
+ "type": "IMAGE",
782
+ "link": 65
783
+ }
784
+ ],
785
+ "outputs": [
786
+ {
787
+ "name": "mask",
788
+ "type": "MASK",
789
+ "links": null
790
+ },
791
+ {
792
+ "name": "segmented_image",
793
+ "type": "IMAGE",
794
+ "links": [
795
+ 45,
796
+ 66
797
+ ]
798
+ },
799
+ {
800
+ "name": "bbox",
801
+ "type": "BBOX",
802
+ "links": null
803
+ }
804
+ ],
805
+ "properties": {
806
+ "cnr_id": "comfyui-segment-anything-2",
807
+ "ver": "1.0.2",
808
+ "Node name for S&R": "Sam2AutoSegmentation"
809
+ },
810
+ "widgets_values": [
811
+ 32,
812
+ 64,
813
+ 0.8,
814
+ 0.95,
815
+ 0.3,
816
+ 0,
817
+ 0,
818
+ 0.7,
819
+ 0.7,
820
+ 0.34,
821
+ 1,
822
+ 0,
823
+ true,
824
+ true
825
+ ]
826
+ },
827
+ {
828
+ "id": 45,
829
+ "type": "ImageScaleBy",
830
+ "pos": [
831
+ -1937.047795795927,
832
+ 1574.8162839893137
833
+ ],
834
+ "size": [
835
+ 270,
836
+ 82
837
+ ],
838
+ "flags": {},
839
+ "order": 9,
840
+ "mode": 0,
841
+ "inputs": [
842
+ {
843
+ "name": "image",
844
+ "type": "IMAGE",
845
+ "link": 75
846
+ }
847
+ ],
848
+ "outputs": [
849
+ {
850
+ "name": "IMAGE",
851
+ "type": "IMAGE",
852
+ "links": [
853
+ 76,
854
+ 77
855
+ ]
856
+ }
857
+ ],
858
+ "properties": {
859
+ "cnr_id": "comfy-core",
860
+ "ver": "0.18.2",
861
+ "Node name for S&R": "ImageScaleBy"
862
+ },
863
+ "widgets_values": [
864
+ "nearest-exact",
865
+ 2
866
+ ]
867
+ },
868
+ {
869
+ "id": 18,
870
+ "type": "CLIPTextEncode",
871
+ "pos": [
872
+ 569.9770363494711,
873
+ 583.803168311876
874
+ ],
875
+ "size": [
876
+ 384.6283512791799,
877
+ 88
878
+ ],
879
+ "flags": {},
880
+ "order": 8,
881
+ "mode": 0,
882
+ "inputs": [
883
+ {
884
+ "name": "clip",
885
+ "type": "CLIP",
886
+ "link": 26
887
+ }
888
+ ],
889
+ "outputs": [
890
+ {
891
+ "name": "CONDITIONING",
892
+ "type": "CONDITIONING",
893
+ "links": [
894
+ 13
895
+ ]
896
+ }
897
+ ],
898
+ "properties": {
899
+ "cnr_id": "comfy-core",
900
+ "ver": "0.11.0",
901
+ "Node name for S&R": "CLIPTextEncode"
902
+ },
903
+ "widgets_values": [
904
+ "a bust of a woman sitting for a portrait with black long hair, hills in the backgrounf"
905
+ ]
906
+ },
907
+ {
908
+ "id": 33,
909
+ "type": "LoadImage",
910
+ "pos": [
911
+ -2693.3186628192066,
912
+ 1685.4009289132941
913
+ ],
914
+ "size": [
915
+ 745.7598726474785,
916
+ 966.0233137345678
917
+ ],
918
+ "flags": {},
919
+ "order": 6,
920
+ "mode": 0,
921
+ "inputs": [],
922
+ "outputs": [
923
+ {
924
+ "name": "IMAGE",
925
+ "type": "IMAGE",
926
+ "links": [
927
+ 75
928
+ ]
929
+ },
930
+ {
931
+ "name": "MASK",
932
+ "type": "MASK",
933
+ "links": null
934
+ }
935
+ ],
936
+ "properties": {
937
+ "cnr_id": "comfy-core",
938
+ "ver": "0.18.2",
939
+ "Node name for S&R": "LoadImage"
940
+ },
941
+ "widgets_values": [
942
+ "mona-lisa-the-joconde-leonardo-de-vinci-emotions-de0fed-640.webp",
943
+ "image"
944
+ ]
945
+ }
946
+ ],
947
+ "links": [
948
+ [
949
+ 7,
950
+ 13,
951
+ 0,
952
+ 11,
953
+ 1,
954
+ "MODEL_PATCH"
955
+ ],
956
+ [
957
+ 8,
958
+ 14,
959
+ 0,
960
+ 11,
961
+ 0,
962
+ "MODEL"
963
+ ],
964
+ [
965
+ 9,
966
+ 11,
967
+ 0,
968
+ 16,
969
+ 0,
970
+ "MODEL"
971
+ ],
972
+ [
973
+ 13,
974
+ 18,
975
+ 0,
976
+ 16,
977
+ 1,
978
+ "CONDITIONING"
979
+ ],
980
+ [
981
+ 18,
982
+ 19,
983
+ 0,
984
+ 16,
985
+ 2,
986
+ "CONDITIONING"
987
+ ],
988
+ [
989
+ 19,
990
+ 16,
991
+ 0,
992
+ 20,
993
+ 0,
994
+ "LATENT"
995
+ ],
996
+ [
997
+ 23,
998
+ 22,
999
+ 0,
1000
+ 20,
1001
+ 1,
1002
+ "VAE"
1003
+ ],
1004
+ [
1005
+ 24,
1006
+ 22,
1007
+ 0,
1008
+ 11,
1009
+ 2,
1010
+ "VAE"
1011
+ ],
1012
+ [
1013
+ 25,
1014
+ 23,
1015
+ 0,
1016
+ 19,
1017
+ 0,
1018
+ "CLIP"
1019
+ ],
1020
+ [
1021
+ 26,
1022
+ 23,
1023
+ 0,
1024
+ 18,
1025
+ 0,
1026
+ "CLIP"
1027
+ ],
1028
+ [
1029
+ 40,
1030
+ 24,
1031
+ 0,
1032
+ 16,
1033
+ 3,
1034
+ "LATENT"
1035
+ ],
1036
+ [
1037
+ 43,
1038
+ 20,
1039
+ 0,
1040
+ 30,
1041
+ 0,
1042
+ "IMAGE"
1043
+ ],
1044
+ [
1045
+ 45,
1046
+ 32,
1047
+ 1,
1048
+ 31,
1049
+ 0,
1050
+ "IMAGE"
1051
+ ],
1052
+ [
1053
+ 46,
1054
+ 34,
1055
+ 0,
1056
+ 32,
1057
+ 0,
1058
+ "SAM2MODEL"
1059
+ ],
1060
+ [
1061
+ 65,
1062
+ 35,
1063
+ 0,
1064
+ 32,
1065
+ 1,
1066
+ "IMAGE"
1067
+ ],
1068
+ [
1069
+ 66,
1070
+ 32,
1071
+ 1,
1072
+ 11,
1073
+ 3,
1074
+ "IMAGE"
1075
+ ],
1076
+ [
1077
+ 68,
1078
+ 36,
1079
+ 0,
1080
+ 42,
1081
+ 0,
1082
+ "INT"
1083
+ ],
1084
+ [
1085
+ 69,
1086
+ 42,
1087
+ 1,
1088
+ 35,
1089
+ 1,
1090
+ "INT"
1091
+ ],
1092
+ [
1093
+ 70,
1094
+ 36,
1095
+ 1,
1096
+ 43,
1097
+ 0,
1098
+ "INT"
1099
+ ],
1100
+ [
1101
+ 71,
1102
+ 43,
1103
+ 1,
1104
+ 35,
1105
+ 2,
1106
+ "INT"
1107
+ ],
1108
+ [
1109
+ 72,
1110
+ 36,
1111
+ 1,
1112
+ 24,
1113
+ 1,
1114
+ "INT"
1115
+ ],
1116
+ [
1117
+ 73,
1118
+ 36,
1119
+ 0,
1120
+ 24,
1121
+ 0,
1122
+ "INT"
1123
+ ],
1124
+ [
1125
+ 75,
1126
+ 33,
1127
+ 0,
1128
+ 45,
1129
+ 0,
1130
+ "IMAGE"
1131
+ ],
1132
+ [
1133
+ 76,
1134
+ 45,
1135
+ 0,
1136
+ 36,
1137
+ 0,
1138
+ "IMAGE"
1139
+ ],
1140
+ [
1141
+ 77,
1142
+ 45,
1143
+ 0,
1144
+ 35,
1145
+ 0,
1146
+ "IMAGE"
1147
+ ]
1148
+ ],
1149
+ "groups": [
1150
+ {
1151
+ "id": 1,
1152
+ "title": "Or just load a pre-segmented image ( option B )",
1153
+ "bounding": [
1154
+ -858.0058984152329,
1155
+ 2192.6872006181025,
1156
+ 643.4710093716204,
1157
+ 417.4186510216455
1158
+ ],
1159
+ "color": "#3f789e",
1160
+ "font_size": 24,
1161
+ "flags": {}
1162
+ },
1163
+ {
1164
+ "id": 2,
1165
+ "title": "Generate SAM Input From Photo ( option A )",
1166
+ "bounding": [
1167
+ -1233.4855158200974,
1168
+ 1007.0349578825226,
1169
+ 978.4169452831359,
1170
+ 741.5984721278527
1171
+ ],
1172
+ "color": "#3f789e",
1173
+ "font_size": 24,
1174
+ "flags": {}
1175
+ },
1176
+ {
1177
+ "id": 3,
1178
+ "title": "Convert To Width/Height Divisible by 16",
1179
+ "bounding": [
1180
+ -1756.0171451459996,
1181
+ 1802.5621816491716,
1182
+ 797.844990494262,
1183
+ 341.765718115396
1184
+ ],
1185
+ "color": "#3f789e",
1186
+ "font_size": 24,
1187
+ "flags": {}
1188
+ },
1189
+ {
1190
+ "id": 4,
1191
+ "title": "Load Models + ControlNet",
1192
+ "bounding": [
1193
+ 52.28036667683968,
1194
+ 1046.9274185319491,
1195
+ 643.7033482099464,
1196
+ 418.9367200769311
1197
+ ],
1198
+ "color": "#3f789e",
1199
+ "font_size": 24,
1200
+ "flags": {}
1201
+ },
1202
+ {
1203
+ "id": 5,
1204
+ "title": "Prompt",
1205
+ "bounding": [
1206
+ 224.8466693385037,
1207
+ 510.203168311877,
1208
+ 739.7587182901469,
1209
+ 335.464185764336
1210
+ ],
1211
+ "color": "#3f789e",
1212
+ "font_size": 24,
1213
+ "flags": {}
1214
+ },
1215
+ {
1216
+ "id": 6,
1217
+ "title": "Run ControlNet",
1218
+ "bounding": [
1219
+ 843.1171210511798,
1220
+ 1172.2377316181446,
1221
+ 850,
1222
+ 587.6
1223
+ ],
1224
+ "color": "#3f789e",
1225
+ "font_size": 24,
1226
+ "flags": {}
1227
+ }
1228
+ ],
1229
+ "config": {},
1230
+ "extra": {
1231
+ "workflowRendererVersion": "LG",
1232
+ "ds": {
1233
+ "scale": 0.33951172853750633,
1234
+ "offset": [
1235
+ 2956.626911466514,
1236
+ 32.694051470157774
1237
+ ]
1238
+ },
1239
+ "frontendVersion": "1.41.21",
1240
+ "VHS_latentpreview": false,
1241
+ "VHS_latentpreviewrate": 0,
1242
+ "VHS_MetadataImage": true,
1243
+ "VHS_KeepIntermediate": true
1244
+ },
1245
+ "version": 0.4
1246
+ }