comfyui-workflow-templates 0.1.36__py3-none-any.whl → 0.1.37__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,67 +1,83 @@
1
1
  {
2
- "last_node_id": 31,
3
- "last_link_id": 84,
2
+ "id": "d1248744-d69b-49f7-bc58-1db999731801",
3
+ "revision": 0,
4
+ "last_node_id": 34,
5
+ "last_link_id": 86,
4
6
  "nodes": [
5
7
  {
6
- "id": 3,
7
- "type": "KSampler",
8
- "pos": [940, 180],
9
- "size": [315, 262],
8
+ "id": 29,
9
+ "type": "CheckpointLoaderSimple",
10
+ "pos": [
11
+ 80,
12
+ 150
13
+ ],
14
+ "size": [
15
+ 315,
16
+ 98
17
+ ],
10
18
  "flags": {},
11
- "order": 6,
19
+ "order": 0,
12
20
  "mode": 0,
13
- "inputs": [
21
+ "inputs": [],
22
+ "outputs": [
14
23
  {
15
- "name": "model",
24
+ "name": "MODEL",
16
25
  "type": "MODEL",
17
- "link": 80
18
- },
19
- {
20
- "name": "positive",
21
- "type": "CONDITIONING",
22
- "link": 4
26
+ "slot_index": 0,
27
+ "links": [
28
+ 80
29
+ ]
23
30
  },
24
31
  {
25
- "name": "negative",
26
- "type": "CONDITIONING",
27
- "link": 6
32
+ "name": "CLIP",
33
+ "type": "CLIP",
34
+ "slot_index": 1,
35
+ "links": [
36
+ 81,
37
+ 82
38
+ ]
28
39
  },
29
40
  {
30
- "name": "latent_image",
31
- "type": "LATENT",
32
- "link": 72
33
- }
34
- ],
35
- "outputs": [
36
- {
37
- "name": "LATENT",
38
- "type": "LATENT",
39
- "slot_index": 0,
40
- "links": [42]
41
+ "name": "VAE",
42
+ "type": "VAE",
43
+ "slot_index": 2,
44
+ "links": [
45
+ 83,
46
+ 84
47
+ ]
41
48
  }
42
49
  ],
43
50
  "properties": {
44
- "Node name for S&R": "KSampler",
51
+ "Node name for S&R": "CheckpointLoaderSimple",
45
52
  "cnr_id": "comfy-core",
46
- "ver": "0.3.18"
53
+ "ver": "0.3.18",
54
+ "models": [
55
+ {
56
+ "name": "512-inpainting-ema.safetensors",
57
+ "url": "https://huggingface.co/stabilityai/stable-diffusion-2-inpainting/resolve/main/512-inpainting-ema.safetensors",
58
+ "directory": "checkpoints"
59
+ }
60
+ ]
47
61
  },
48
62
  "widgets_values": [
49
- 808369199502636,
50
- "randomize",
51
- 20,
52
- 8,
53
- "uni_pc_bh2",
54
- "normal",
55
- 1
56
- ]
63
+ "512-inpainting-ema.safetensors"
64
+ ],
65
+ "color": "#322",
66
+ "bgcolor": "#533"
57
67
  },
58
68
  {
59
69
  "id": 6,
60
70
  "type": "CLIPTextEncode",
61
- "pos": [432, 158],
62
- "size": [422.8500061035156, 164.30999755859375],
71
+ "pos": [
72
+ 432,
73
+ 158
74
+ ],
75
+ "size": [
76
+ 422.8500061035156,
77
+ 164.30999755859375
78
+ ],
63
79
  "flags": {},
64
- "order": 3,
80
+ "order": 5,
65
81
  "mode": 0,
66
82
  "inputs": [
67
83
  {
@@ -75,7 +91,9 @@
75
91
  "name": "CONDITIONING",
76
92
  "type": "CONDITIONING",
77
93
  "slot_index": 0,
78
- "links": [4]
94
+ "links": [
95
+ 4
96
+ ]
79
97
  }
80
98
  ],
81
99
  "properties": {
@@ -83,15 +101,25 @@
83
101
  "cnr_id": "comfy-core",
84
102
  "ver": "0.3.18"
85
103
  },
86
- "widgets_values": ["teacup on pink tablecloth, Anime style"]
104
+ "widgets_values": [
105
+ "teacup on pink tablecloth, Anime style"
106
+ ],
107
+ "color": "#232",
108
+ "bgcolor": "#353"
87
109
  },
88
110
  {
89
111
  "id": 7,
90
112
  "type": "CLIPTextEncode",
91
- "pos": [434, 371],
92
- "size": [425.2799987792969, 180.61000061035156],
113
+ "pos": [
114
+ 434,
115
+ 371
116
+ ],
117
+ "size": [
118
+ 425.2799987792969,
119
+ 180.61000061035156
120
+ ],
93
121
  "flags": {},
94
- "order": 4,
122
+ "order": 6,
95
123
  "mode": 0,
96
124
  "inputs": [
97
125
  {
@@ -105,7 +133,9 @@
105
133
  "name": "CONDITIONING",
106
134
  "type": "CONDITIONING",
107
135
  "slot_index": 0,
108
- "links": [6]
136
+ "links": [
137
+ 6
138
+ ]
109
139
  }
110
140
  ],
111
141
  "properties": {
@@ -113,108 +143,160 @@
113
143
  "cnr_id": "comfy-core",
114
144
  "ver": "0.3.18"
115
145
  },
116
- "widgets_values": ["watermark, text\n"]
146
+ "widgets_values": [
147
+ "watermark, text\n"
148
+ ],
149
+ "color": "#223",
150
+ "bgcolor": "#335"
117
151
  },
118
152
  {
119
- "id": 8,
120
- "type": "VAEDecode",
121
- "pos": [1422, 387],
122
- "size": [210, 46],
153
+ "id": 20,
154
+ "type": "LoadImage",
155
+ "pos": [
156
+ 80,
157
+ 660
158
+ ],
159
+ "size": [
160
+ 385,
161
+ 365
162
+ ],
123
163
  "flags": {},
124
- "order": 7,
164
+ "order": 1,
125
165
  "mode": 0,
126
- "inputs": [
127
- {
128
- "name": "samples",
129
- "type": "LATENT",
130
- "link": 42
131
- },
132
- {
133
- "name": "vae",
134
- "type": "VAE",
135
- "link": 84
136
- }
137
- ],
166
+ "inputs": [],
138
167
  "outputs": [
139
168
  {
140
169
  "name": "IMAGE",
141
170
  "type": "IMAGE",
142
171
  "slot_index": 0,
143
- "links": [22]
172
+ "links": [
173
+ 85
174
+ ]
175
+ },
176
+ {
177
+ "name": "MASK",
178
+ "type": "MASK",
179
+ "slot_index": 1,
180
+ "links": [
181
+ 79
182
+ ]
144
183
  }
145
184
  ],
146
185
  "properties": {
147
- "Node name for S&R": "VAEDecode",
186
+ "Node name for S&R": "LoadImage",
148
187
  "cnr_id": "comfy-core",
149
188
  "ver": "0.3.18"
150
189
  },
151
- "widgets_values": []
190
+ "widgets_values": [
191
+ "input.png",
192
+ "image"
193
+ ]
152
194
  },
153
195
  {
154
- "id": 9,
155
- "type": "SaveImage",
156
- "pos": [1709, 356],
157
- "size": [210, 270],
196
+ "id": 33,
197
+ "type": "ImageScaleToTotalPixels",
198
+ "pos": [
199
+ 490,
200
+ 660
201
+ ],
202
+ "size": [
203
+ 260,
204
+ 82
205
+ ],
158
206
  "flags": {},
159
- "order": 8,
207
+ "order": 7,
160
208
  "mode": 0,
161
209
  "inputs": [
162
210
  {
163
- "name": "images",
211
+ "name": "image",
164
212
  "type": "IMAGE",
165
- "link": 22
213
+ "link": 85
166
214
  }
167
215
  ],
168
- "outputs": [],
169
- "properties": {
170
- "cnr_id": "comfy-core",
171
- "ver": "0.3.18"
172
- },
173
- "widgets_values": ["ComfyUI"]
174
- },
175
- {
176
- "id": 20,
177
- "type": "LoadImage",
178
- "pos": [40, 728],
179
- "size": [385, 365],
180
- "flags": {},
181
- "order": 1,
182
- "mode": 0,
183
- "inputs": [],
184
216
  "outputs": [
185
217
  {
186
218
  "name": "IMAGE",
187
219
  "type": "IMAGE",
188
- "slot_index": 0,
189
- "links": [73]
190
- },
191
- {
192
- "name": "MASK",
193
- "type": "MASK",
194
- "slot_index": 1,
195
- "links": [79]
220
+ "links": [
221
+ 86
222
+ ]
196
223
  }
197
224
  ],
198
225
  "properties": {
199
- "Node name for S&R": "LoadImage",
200
- "cnr_id": "comfy-core",
201
- "ver": "0.3.18"
226
+ "Node name for S&R": "ImageScaleToTotalPixels"
202
227
  },
203
- "widgets_values": ["input.png", "image", ""]
228
+ "widgets_values": [
229
+ "nearest-exact",
230
+ 0.25
231
+ ]
232
+ },
233
+ {
234
+ "id": 32,
235
+ "type": "MarkdownNote",
236
+ "pos": [
237
+ 490,
238
+ 790
239
+ ],
240
+ "size": [
241
+ 260,
242
+ 100
243
+ ],
244
+ "flags": {},
245
+ "order": 2,
246
+ "mode": 0,
247
+ "inputs": [],
248
+ "outputs": [],
249
+ "title": "About Scale Image to Total Pixels",
250
+ "properties": {},
251
+ "widgets_values": [
252
+ "The model this template uses is trained based on a 512*512 image dataset. So if you use an input image that's too large, it might cause some issues. We've added the Scale image to total pixels node to scale images. If you're quite familiar with this model, you can remove it."
253
+ ],
254
+ "color": "#432",
255
+ "bgcolor": "#653"
256
+ },
257
+ {
258
+ "id": 34,
259
+ "type": "MarkdownNote",
260
+ "pos": [
261
+ 490,
262
+ 930
263
+ ],
264
+ "size": [
265
+ 260,
266
+ 90
267
+ ],
268
+ "flags": {},
269
+ "order": 3,
270
+ "mode": 0,
271
+ "inputs": [],
272
+ "outputs": [],
273
+ "title": "About how to draw mask",
274
+ "properties": {},
275
+ "widgets_values": [
276
+ "Click on the **Load Image** node, then use the right-click menu to open the mask editor to draw a mask."
277
+ ],
278
+ "color": "#432",
279
+ "bgcolor": "#653"
204
280
  },
205
281
  {
206
282
  "id": 26,
207
283
  "type": "VAEEncodeForInpaint",
208
- "pos": [496, 720],
209
- "size": [226.8000030517578, 98],
284
+ "pos": [
285
+ 890,
286
+ 650
287
+ ],
288
+ "size": [
289
+ 226.8000030517578,
290
+ 98
291
+ ],
210
292
  "flags": {},
211
- "order": 5,
293
+ "order": 8,
212
294
  "mode": 0,
213
295
  "inputs": [
214
296
  {
215
297
  "name": "pixels",
216
298
  "type": "IMAGE",
217
- "link": 73
299
+ "link": 86
218
300
  },
219
301
  {
220
302
  "name": "vae",
@@ -232,7 +314,9 @@
232
314
  "name": "LATENT",
233
315
  "type": "LATENT",
234
316
  "slot_index": 0,
235
- "links": [72]
317
+ "links": [
318
+ 72
319
+ ]
236
320
  }
237
321
  ],
238
322
  "properties": {
@@ -240,94 +324,326 @@
240
324
  "cnr_id": "comfy-core",
241
325
  "ver": "0.3.18"
242
326
  },
243
- "widgets_values": [6]
327
+ "widgets_values": [
328
+ 6
329
+ ]
244
330
  },
245
331
  {
246
- "id": 29,
247
- "type": "CheckpointLoaderSimple",
248
- "pos": [30, 314],
249
- "size": [315, 98],
332
+ "id": 8,
333
+ "type": "VAEDecode",
334
+ "pos": [
335
+ 1240,
336
+ 120
337
+ ],
338
+ "size": [
339
+ 210,
340
+ 46
341
+ ],
250
342
  "flags": {},
251
- "order": 0,
343
+ "order": 10,
252
344
  "mode": 0,
253
- "inputs": [],
345
+ "inputs": [
346
+ {
347
+ "name": "samples",
348
+ "type": "LATENT",
349
+ "link": 42
350
+ },
351
+ {
352
+ "name": "vae",
353
+ "type": "VAE",
354
+ "link": 84
355
+ }
356
+ ],
254
357
  "outputs": [
255
358
  {
256
- "name": "MODEL",
257
- "type": "MODEL",
359
+ "name": "IMAGE",
360
+ "type": "IMAGE",
258
361
  "slot_index": 0,
259
- "links": [80]
362
+ "links": [
363
+ 22
364
+ ]
365
+ }
366
+ ],
367
+ "properties": {
368
+ "Node name for S&R": "VAEDecode",
369
+ "cnr_id": "comfy-core",
370
+ "ver": "0.3.18"
371
+ },
372
+ "widgets_values": []
373
+ },
374
+ {
375
+ "id": 3,
376
+ "type": "KSampler",
377
+ "pos": [
378
+ 900,
379
+ 120
380
+ ],
381
+ "size": [
382
+ 315,
383
+ 262
384
+ ],
385
+ "flags": {},
386
+ "order": 9,
387
+ "mode": 0,
388
+ "inputs": [
389
+ {
390
+ "name": "model",
391
+ "type": "MODEL",
392
+ "link": 80
260
393
  },
261
394
  {
262
- "name": "CLIP",
263
- "type": "CLIP",
264
- "slot_index": 1,
265
- "links": [81, 82]
395
+ "name": "positive",
396
+ "type": "CONDITIONING",
397
+ "link": 4
266
398
  },
267
399
  {
268
- "name": "VAE",
269
- "type": "VAE",
270
- "slot_index": 2,
271
- "links": [83, 84]
400
+ "name": "negative",
401
+ "type": "CONDITIONING",
402
+ "link": 6
403
+ },
404
+ {
405
+ "name": "latent_image",
406
+ "type": "LATENT",
407
+ "link": 72
408
+ }
409
+ ],
410
+ "outputs": [
411
+ {
412
+ "name": "LATENT",
413
+ "type": "LATENT",
414
+ "slot_index": 0,
415
+ "links": [
416
+ 42
417
+ ]
272
418
  }
273
419
  ],
274
420
  "properties": {
275
- "Node name for S&R": "CheckpointLoaderSimple",
421
+ "Node name for S&R": "KSampler",
276
422
  "cnr_id": "comfy-core",
277
- "ver": "0.3.18",
278
- "models": [
279
- {
280
- "name": "512-inpainting-ema.safetensors",
281
- "url": "https://huggingface.co/stabilityai/stable-diffusion-2-inpainting/resolve/main/512-inpainting-ema.safetensors?download=true",
282
- "directory": "checkpoints"
283
- }
284
- ]
423
+ "ver": "0.3.18"
424
+ },
425
+ "widgets_values": [
426
+ 808369199502636,
427
+ "randomize",
428
+ 20,
429
+ 8,
430
+ "uni_pc_bh2",
431
+ "normal",
432
+ 1
433
+ ]
434
+ },
435
+ {
436
+ "id": 9,
437
+ "type": "SaveImage",
438
+ "pos": [
439
+ 1240,
440
+ 220
441
+ ],
442
+ "size": [
443
+ 410,
444
+ 430
445
+ ],
446
+ "flags": {},
447
+ "order": 11,
448
+ "mode": 0,
449
+ "inputs": [
450
+ {
451
+ "name": "images",
452
+ "type": "IMAGE",
453
+ "link": 22
454
+ }
455
+ ],
456
+ "outputs": [],
457
+ "properties": {
458
+ "cnr_id": "comfy-core",
459
+ "ver": "0.3.18"
285
460
  },
286
- "widgets_values": ["512-inpainting-ema.safetensors"]
461
+ "widgets_values": [
462
+ "ComfyUI"
463
+ ]
287
464
  },
288
465
  {
289
466
  "id": 31,
290
467
  "type": "MarkdownNote",
291
- "pos": [32, 456],
292
- "size": [336, 128],
468
+ "pos": [
469
+ -320,
470
+ 110
471
+ ],
472
+ "size": [
473
+ 380,
474
+ 250
475
+ ],
293
476
  "flags": {},
294
- "order": 2,
477
+ "order": 4,
295
478
  "mode": 0,
296
479
  "inputs": [],
297
480
  "outputs": [],
481
+ "title": "Tutorial links",
298
482
  "properties": {},
299
483
  "widgets_values": [
300
- "### Learn more about this workflow\n\n> [Inpainting - ComfyUI_examples](https://comfyanonymous.github.io/ComfyUI_examples/inpaint/) Overview\n> \n> [Inpainting - docs.comfy.org](https://docs.comfy.org/tutorials/basic/inpaint) Explanation of concepts and step-by-step tutorial"
484
+ "[Tutorial](https://docs.comfy.org/tutorials/basic/inpaint) | [教程](https://docs.comfy.org/zh-CN/tutorials/basic/inpaint)\n\n## Model link\n**checkpoint**\n\n[512-inpainting-ema.safetensors](https://huggingface.co/stabilityai/stable-diffusion-2-inpainting/resolve/main/512-inpainting-ema.safetensors)\n\n\nModel Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ ├── 📂 checkpoints/\n│ │ └── 512-inpainting-ema.safetensors\n\n```\n\n\n"
301
485
  ],
302
486
  "color": "#432",
303
487
  "bgcolor": "#653"
304
488
  }
305
489
  ],
306
490
  "links": [
307
- [4, 6, 0, 3, 1, "CONDITIONING"],
308
- [6, 7, 0, 3, 2, "CONDITIONING"],
309
- [22, 8, 0, 9, 0, "IMAGE"],
310
- [42, 3, 0, 8, 0, "LATENT"],
311
- [72, 26, 0, 3, 3, "LATENT"],
312
- [73, 20, 0, 26, 0, "IMAGE"],
313
- [79, 20, 1, 26, 2, "MASK"],
314
- [80, 29, 0, 3, 0, "MODEL"],
315
- [81, 29, 1, 6, 0, "CLIP"],
316
- [82, 29, 1, 7, 0, "CLIP"],
317
- [83, 29, 2, 26, 1, "VAE"],
318
- [84, 29, 2, 8, 1, "VAE"]
491
+ [
492
+ 4,
493
+ 6,
494
+ 0,
495
+ 3,
496
+ 1,
497
+ "CONDITIONING"
498
+ ],
499
+ [
500
+ 6,
501
+ 7,
502
+ 0,
503
+ 3,
504
+ 2,
505
+ "CONDITIONING"
506
+ ],
507
+ [
508
+ 22,
509
+ 8,
510
+ 0,
511
+ 9,
512
+ 0,
513
+ "IMAGE"
514
+ ],
515
+ [
516
+ 42,
517
+ 3,
518
+ 0,
519
+ 8,
520
+ 0,
521
+ "LATENT"
522
+ ],
523
+ [
524
+ 72,
525
+ 26,
526
+ 0,
527
+ 3,
528
+ 3,
529
+ "LATENT"
530
+ ],
531
+ [
532
+ 79,
533
+ 20,
534
+ 1,
535
+ 26,
536
+ 2,
537
+ "MASK"
538
+ ],
539
+ [
540
+ 80,
541
+ 29,
542
+ 0,
543
+ 3,
544
+ 0,
545
+ "MODEL"
546
+ ],
547
+ [
548
+ 81,
549
+ 29,
550
+ 1,
551
+ 6,
552
+ 0,
553
+ "CLIP"
554
+ ],
555
+ [
556
+ 82,
557
+ 29,
558
+ 1,
559
+ 7,
560
+ 0,
561
+ "CLIP"
562
+ ],
563
+ [
564
+ 83,
565
+ 29,
566
+ 2,
567
+ 26,
568
+ 1,
569
+ "VAE"
570
+ ],
571
+ [
572
+ 84,
573
+ 29,
574
+ 2,
575
+ 8,
576
+ 1,
577
+ "VAE"
578
+ ],
579
+ [
580
+ 85,
581
+ 20,
582
+ 0,
583
+ 33,
584
+ 0,
585
+ "IMAGE"
586
+ ],
587
+ [
588
+ 86,
589
+ 33,
590
+ 0,
591
+ 26,
592
+ 0,
593
+ "IMAGE"
594
+ ]
319
595
  ],
320
596
  "groups": [
321
597
  {
322
598
  "id": 1,
323
- "title": "Load image and alpha mask for inpainting",
324
- "bounding": [-24, 648, 792, 464],
599
+ "title": "Step2 - Load image and draw mask",
600
+ "bounding": [
601
+ 60,
602
+ 580,
603
+ 810,
604
+ 480
605
+ ],
606
+ "color": "#3f789e",
607
+ "font_size": 24,
608
+ "flags": {}
609
+ },
610
+ {
611
+ "id": 2,
612
+ "title": "Step1 - Load model",
613
+ "bounding": [
614
+ 70,
615
+ 80,
616
+ 335,
617
+ 181.60000610351562
618
+ ],
619
+ "color": "#3f789e",
620
+ "font_size": 24,
621
+ "flags": {}
622
+ },
623
+ {
624
+ "id": 3,
625
+ "title": "Step3 - Prompt",
626
+ "bounding": [
627
+ 420,
628
+ 80,
629
+ 450,
630
+ 480
631
+ ],
325
632
  "color": "#3f789e",
326
633
  "font_size": 24,
327
634
  "flags": {}
328
635
  }
329
636
  ],
330
637
  "config": {},
331
- "extra": {},
638
+ "extra": {
639
+ "ds": {
640
+ "scale": 0.8264462809917354,
641
+ "offset": [
642
+ 702.1144075614629,
643
+ 151.80479576308267
644
+ ]
645
+ },
646
+ "frontendVersion": "1.24.1"
647
+ },
332
648
  "version": 0.4
333
- }
649
+ }