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,68 +1,83 @@
1
1
  {
2
- "last_node_id": 34,
3
- "last_link_id": 89,
2
+ "id": "7087dfe4-e1e5-4bca-92a2-1a41758c0dac",
3
+ "revision": 0,
4
+ "last_node_id": 39,
5
+ "last_link_id": 91,
4
6
  "nodes": [
5
7
  {
6
- "id": 3,
7
- "type": "KSampler",
8
- "pos": [940, 180],
9
- "size": [315, 474],
8
+ "id": 29,
9
+ "type": "CheckpointLoaderSimple",
10
+ "pos": [
11
+ 70,
12
+ 150
13
+ ],
14
+ "size": [
15
+ 315,
16
+ 98
17
+ ],
10
18
  "flags": {},
11
- "order": 7,
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?download=true",
58
+ "directory": "checkpoints"
59
+ }
60
+ ]
47
61
  },
48
62
  "widgets_values": [
49
- 476514576444494,
50
- "randomize",
51
- 20,
52
- 7,
53
- "dpmpp_2m",
54
- "karras",
55
- 1,
56
- ""
57
- ]
63
+ "512-inpainting-ema.safetensors"
64
+ ],
65
+ "color": "#322",
66
+ "bgcolor": "#533"
58
67
  },
59
68
  {
60
69
  "id": 6,
61
70
  "type": "CLIPTextEncode",
62
- "pos": [432, 158],
63
- "size": [422.81243896484375, 161.2169189453125],
71
+ "pos": [
72
+ 432,
73
+ 158
74
+ ],
75
+ "size": [
76
+ 422.81243896484375,
77
+ 161.2169189453125
78
+ ],
64
79
  "flags": {},
65
- "order": 4,
80
+ "order": 5,
66
81
  "mode": 0,
67
82
  "inputs": [
68
83
  {
@@ -76,7 +91,9 @@
76
91
  "name": "CONDITIONING",
77
92
  "type": "CONDITIONING",
78
93
  "slot_index": 0,
79
- "links": [4]
94
+ "links": [
95
+ 4
96
+ ]
80
97
  }
81
98
  ],
82
99
  "properties": {
@@ -86,15 +103,23 @@
86
103
  },
87
104
  "widgets_values": [
88
105
  "a close-up of a delicate pink rose with velvety petals,reflecting soft ambient light,Dark green-toned light\n\nThe background consists of blurred pink roses and green foliage, creating a dreamy and harmonious depth. \n\n(soft lighting, dim background, cinematic lighting, realistic shading, gentle contrast, warm tones), "
89
- ]
106
+ ],
107
+ "color": "#232",
108
+ "bgcolor": "#353"
90
109
  },
91
110
  {
92
111
  "id": 7,
93
112
  "type": "CLIPTextEncode",
94
- "pos": [434, 371],
95
- "size": [425.2799987792969, 180.61000061035156],
113
+ "pos": [
114
+ 430,
115
+ 370
116
+ ],
117
+ "size": [
118
+ 425.2799987792969,
119
+ 180.61000061035156
120
+ ],
96
121
  "flags": {},
97
- "order": 5,
122
+ "order": 6,
98
123
  "mode": 0,
99
124
  "inputs": [
100
125
  {
@@ -108,7 +133,9 @@
108
133
  "name": "CONDITIONING",
109
134
  "type": "CONDITIONING",
110
135
  "slot_index": 0,
111
- "links": [6]
136
+ "links": [
137
+ 6
138
+ ]
112
139
  }
113
140
  ],
114
141
  "properties": {
@@ -116,15 +143,165 @@
116
143
  "cnr_id": "comfy-core",
117
144
  "ver": "0.3.18"
118
145
  },
119
- "widgets_values": ["watermark, text"]
146
+ "widgets_values": [
147
+ "watermark, text"
148
+ ],
149
+ "color": "#223",
150
+ "bgcolor": "#335"
151
+ },
152
+ {
153
+ "id": 20,
154
+ "type": "LoadImage",
155
+ "pos": [
156
+ -40,
157
+ 670
158
+ ],
159
+ "size": [
160
+ 344,
161
+ 346
162
+ ],
163
+ "flags": {},
164
+ "order": 1,
165
+ "mode": 0,
166
+ "inputs": [],
167
+ "outputs": [
168
+ {
169
+ "name": "IMAGE",
170
+ "type": "IMAGE",
171
+ "slot_index": 0,
172
+ "links": [
173
+ 90
174
+ ]
175
+ },
176
+ {
177
+ "name": "MASK",
178
+ "type": "MASK",
179
+ "slot_index": 1,
180
+ "links": []
181
+ }
182
+ ],
183
+ "properties": {
184
+ "Node name for S&R": "LoadImage",
185
+ "cnr_id": "comfy-core",
186
+ "ver": "0.3.18"
187
+ },
188
+ "widgets_values": [
189
+ "example.png",
190
+ "image"
191
+ ]
192
+ },
193
+ {
194
+ "id": 38,
195
+ "type": "ImageScaleToTotalPixels",
196
+ "pos": [
197
+ 320,
198
+ 670
199
+ ],
200
+ "size": [
201
+ 250,
202
+ 82
203
+ ],
204
+ "flags": {},
205
+ "order": 7,
206
+ "mode": 0,
207
+ "inputs": [
208
+ {
209
+ "name": "image",
210
+ "type": "IMAGE",
211
+ "link": 90
212
+ }
213
+ ],
214
+ "outputs": [
215
+ {
216
+ "name": "IMAGE",
217
+ "type": "IMAGE",
218
+ "links": [
219
+ 91
220
+ ]
221
+ }
222
+ ],
223
+ "properties": {
224
+ "Node name for S&R": "ImageScaleToTotalPixels"
225
+ },
226
+ "widgets_values": [
227
+ "nearest-exact",
228
+ 0.25
229
+ ]
230
+ },
231
+ {
232
+ "id": 3,
233
+ "type": "KSampler",
234
+ "pos": [
235
+ 900,
236
+ 120
237
+ ],
238
+ "size": [
239
+ 315,
240
+ 474
241
+ ],
242
+ "flags": {},
243
+ "order": 10,
244
+ "mode": 0,
245
+ "inputs": [
246
+ {
247
+ "name": "model",
248
+ "type": "MODEL",
249
+ "link": 80
250
+ },
251
+ {
252
+ "name": "positive",
253
+ "type": "CONDITIONING",
254
+ "link": 4
255
+ },
256
+ {
257
+ "name": "negative",
258
+ "type": "CONDITIONING",
259
+ "link": 6
260
+ },
261
+ {
262
+ "name": "latent_image",
263
+ "type": "LATENT",
264
+ "link": 72
265
+ }
266
+ ],
267
+ "outputs": [
268
+ {
269
+ "name": "LATENT",
270
+ "type": "LATENT",
271
+ "slot_index": 0,
272
+ "links": [
273
+ 42
274
+ ]
275
+ }
276
+ ],
277
+ "properties": {
278
+ "Node name for S&R": "KSampler",
279
+ "cnr_id": "comfy-core",
280
+ "ver": "0.3.18"
281
+ },
282
+ "widgets_values": [
283
+ 476514576444494,
284
+ "randomize",
285
+ 20,
286
+ 7,
287
+ "dpmpp_2m",
288
+ "karras",
289
+ 1
290
+ ]
120
291
  },
121
292
  {
122
293
  "id": 8,
123
294
  "type": "VAEDecode",
124
- "pos": [1422, 387],
125
- "size": [210, 46],
295
+ "pos": [
296
+ 1240,
297
+ 120
298
+ ],
299
+ "size": [
300
+ 210,
301
+ 46
302
+ ],
126
303
  "flags": {},
127
- "order": 8,
304
+ "order": 11,
128
305
  "mode": 0,
129
306
  "inputs": [
130
307
  {
@@ -143,7 +320,9 @@
143
320
  "name": "IMAGE",
144
321
  "type": "IMAGE",
145
322
  "slot_index": 0,
146
- "links": [22]
323
+ "links": [
324
+ 22
325
+ ]
147
326
  }
148
327
  ],
149
328
  "properties": {
@@ -156,10 +335,16 @@
156
335
  {
157
336
  "id": 9,
158
337
  "type": "SaveImage",
159
- "pos": [1671, 384],
160
- "size": [360.54998779296875, 441.5299987792969],
338
+ "pos": [
339
+ 1240,
340
+ 210
341
+ ],
342
+ "size": [
343
+ 420,
344
+ 380
345
+ ],
161
346
  "flags": {},
162
- "order": 9,
347
+ "order": 12,
163
348
  "mode": 0,
164
349
  "inputs": [
165
350
  {
@@ -173,45 +358,123 @@
173
358
  "cnr_id": "comfy-core",
174
359
  "ver": "0.3.18"
175
360
  },
176
- "widgets_values": ["ComfyUI", ""]
361
+ "widgets_values": [
362
+ "ComfyUI"
363
+ ]
177
364
  },
178
365
  {
179
- "id": 20,
180
- "type": "LoadImage",
181
- "pos": [-115.77914428710938, 726.8905029296875],
182
- "size": [344, 346],
366
+ "id": 30,
367
+ "type": "ImagePadForOutpaint",
368
+ "pos": [
369
+ 320,
370
+ 790
371
+ ],
372
+ "size": [
373
+ 250,
374
+ 174
375
+ ],
183
376
  "flags": {},
184
- "order": 0,
377
+ "order": 8,
185
378
  "mode": 0,
186
- "inputs": [],
379
+ "inputs": [
380
+ {
381
+ "name": "image",
382
+ "type": "IMAGE",
383
+ "link": 91
384
+ }
385
+ ],
187
386
  "outputs": [
188
387
  {
189
388
  "name": "IMAGE",
190
389
  "type": "IMAGE",
191
390
  "slot_index": 0,
192
- "links": [85]
391
+ "links": [
392
+ 87
393
+ ]
193
394
  },
194
395
  {
195
396
  "name": "MASK",
196
397
  "type": "MASK",
197
398
  "slot_index": 1,
198
- "links": []
399
+ "links": [
400
+ 86
401
+ ]
199
402
  }
200
403
  ],
201
404
  "properties": {
202
- "Node name for S&R": "LoadImage",
405
+ "Node name for S&R": "ImagePadForOutpaint",
203
406
  "cnr_id": "comfy-core",
204
407
  "ver": "0.3.18"
205
408
  },
206
- "widgets_values": ["input (1).png", "image", ""]
409
+ "widgets_values": [
410
+ 40,
411
+ 40,
412
+ 40,
413
+ 128,
414
+ 10
415
+ ]
416
+ },
417
+ {
418
+ "id": 39,
419
+ "type": "MarkdownNote",
420
+ "pos": [
421
+ 320,
422
+ 1010
423
+ ],
424
+ "size": [
425
+ 250,
426
+ 88
427
+ ],
428
+ "flags": {},
429
+ "order": 2,
430
+ "mode": 0,
431
+ "inputs": [],
432
+ "outputs": [],
433
+ "title": "Learn about this node",
434
+ "properties": {},
435
+ "widgets_values": [
436
+ "Select the node then click the \"?\" icon on the selection toolbox"
437
+ ],
438
+ "color": "#432",
439
+ "bgcolor": "#653"
440
+ },
441
+ {
442
+ "id": 36,
443
+ "type": "MarkdownNote",
444
+ "pos": [
445
+ 600,
446
+ 670
447
+ ],
448
+ "size": [
449
+ 260,
450
+ 100
451
+ ],
452
+ "flags": {},
453
+ "order": 3,
454
+ "mode": 0,
455
+ "inputs": [],
456
+ "outputs": [],
457
+ "title": "About Scale Image to Total Pixels",
458
+ "properties": {},
459
+ "widgets_values": [
460
+ "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."
461
+ ],
462
+ "color": "#432",
463
+ "bgcolor": "#653"
207
464
  },
208
465
  {
209
466
  "id": 26,
210
467
  "type": "VAEEncodeForInpaint",
211
- "pos": [617, 720],
212
- "size": [226.8000030517578, 98],
468
+ "pos": [
469
+ 600,
470
+ 860
471
+ ],
472
+ "size": [
473
+ 226.8000030517578,
474
+ 98
475
+ ],
213
476
  "flags": {},
214
- "order": 6,
477
+ "order": 9,
215
478
  "mode": 0,
216
479
  "inputs": [
217
480
  {
@@ -235,7 +498,9 @@
235
498
  "name": "LATENT",
236
499
  "type": "LATENT",
237
500
  "slot_index": 0,
238
- "links": [72]
501
+ "links": [
502
+ 72
503
+ ]
239
504
  }
240
505
  ],
241
506
  "properties": {
@@ -243,133 +508,200 @@
243
508
  "cnr_id": "comfy-core",
244
509
  "ver": "0.3.18"
245
510
  },
246
- "widgets_values": [10]
247
- },
248
- {
249
- "id": 29,
250
- "type": "CheckpointLoaderSimple",
251
- "pos": [17, 303],
252
- "size": [315, 98],
253
- "flags": {},
254
- "order": 1,
255
- "mode": 0,
256
- "inputs": [],
257
- "outputs": [
258
- {
259
- "name": "MODEL",
260
- "type": "MODEL",
261
- "slot_index": 0,
262
- "links": [80]
263
- },
264
- {
265
- "name": "CLIP",
266
- "type": "CLIP",
267
- "slot_index": 1,
268
- "links": [81, 82]
269
- },
270
- {
271
- "name": "VAE",
272
- "type": "VAE",
273
- "slot_index": 2,
274
- "links": [83, 84]
275
- }
276
- ],
277
- "properties": {
278
- "Node name for S&R": "CheckpointLoaderSimple",
279
- "cnr_id": "comfy-core",
280
- "ver": "0.3.18",
281
- "models": [
282
- {
283
- "name": "512-inpainting-ema.safetensors",
284
- "url": "https://huggingface.co/stabilityai/stable-diffusion-2-inpainting/resolve/main/512-inpainting-ema.safetensors?download=true",
285
- "directory": "checkpoints"
286
- }
287
- ]
288
- },
289
- "widgets_values": ["512-inpainting-ema.safetensors"]
511
+ "widgets_values": [
512
+ 10
513
+ ]
290
514
  },
291
515
  {
292
- "id": 30,
293
- "type": "ImagePadForOutpaint",
294
- "pos": [252.03269958496094, 726.62841796875],
295
- "size": [315, 174],
296
- "flags": {},
297
- "order": 3,
298
- "mode": 0,
299
- "inputs": [
300
- {
301
- "name": "image",
302
- "type": "IMAGE",
303
- "link": 85
304
- }
516
+ "id": 35,
517
+ "type": "MarkdownNote",
518
+ "pos": [
519
+ -340,
520
+ 110
305
521
  ],
306
- "outputs": [
307
- {
308
- "name": "IMAGE",
309
- "shape": 3,
310
- "type": "IMAGE",
311
- "slot_index": 0,
312
- "links": [87]
313
- },
314
- {
315
- "name": "MASK",
316
- "shape": 3,
317
- "type": "MASK",
318
- "slot_index": 1,
319
- "links": [86]
320
- }
522
+ "size": [
523
+ 380,
524
+ 250
321
525
  ],
322
- "properties": {
323
- "Node name for S&R": "ImagePadForOutpaint",
324
- "cnr_id": "comfy-core",
325
- "ver": "0.3.18"
326
- },
327
- "widgets_values": [40, 40, 40, 128, 10]
328
- },
329
- {
330
- "id": 34,
331
- "type": "MarkdownNote",
332
- "pos": [16, 448],
333
- "size": [336, 128],
334
526
  "flags": {},
335
- "order": 2,
527
+ "order": 4,
336
528
  "mode": 0,
337
529
  "inputs": [],
338
530
  "outputs": [],
531
+ "title": "Tutorial links",
339
532
  "properties": {},
340
533
  "widgets_values": [
341
- "### Learn more about this workflow\n\n> [Outpaint - ComfyUI_examples](https://comfyanonymous.github.io/ComfyUI_examples/inpaint/#outpainting) Overview\n> \n> [Outpainting - docs.comfy.org](https://docs.comfy.org/tutorials/basic/outpaint) Explanation of concepts and step-by-step tutorial"
534
+ "[Tutorial](https://docs.comfy.org/tutorials/basic/outpaint) | [教程](https://docs.comfy.org/zh-CN/tutorials/basic/outpaint)\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"
342
535
  ],
343
536
  "color": "#432",
344
537
  "bgcolor": "#653"
345
538
  }
346
539
  ],
347
540
  "links": [
348
- [4, 6, 0, 3, 1, "CONDITIONING"],
349
- [6, 7, 0, 3, 2, "CONDITIONING"],
350
- [22, 8, 0, 9, 0, "IMAGE"],
351
- [42, 3, 0, 8, 0, "LATENT"],
352
- [72, 26, 0, 3, 3, "LATENT"],
353
- [80, 29, 0, 3, 0, "MODEL"],
354
- [81, 29, 1, 6, 0, "CLIP"],
355
- [82, 29, 1, 7, 0, "CLIP"],
356
- [83, 29, 2, 8, 1, "VAE"],
357
- [84, 29, 2, 26, 1, "VAE"],
358
- [85, 20, 0, 30, 0, "IMAGE"],
359
- [86, 30, 1, 26, 2, "MASK"],
360
- [87, 30, 0, 26, 0, "IMAGE"]
541
+ [
542
+ 4,
543
+ 6,
544
+ 0,
545
+ 3,
546
+ 1,
547
+ "CONDITIONING"
548
+ ],
549
+ [
550
+ 6,
551
+ 7,
552
+ 0,
553
+ 3,
554
+ 2,
555
+ "CONDITIONING"
556
+ ],
557
+ [
558
+ 22,
559
+ 8,
560
+ 0,
561
+ 9,
562
+ 0,
563
+ "IMAGE"
564
+ ],
565
+ [
566
+ 42,
567
+ 3,
568
+ 0,
569
+ 8,
570
+ 0,
571
+ "LATENT"
572
+ ],
573
+ [
574
+ 72,
575
+ 26,
576
+ 0,
577
+ 3,
578
+ 3,
579
+ "LATENT"
580
+ ],
581
+ [
582
+ 80,
583
+ 29,
584
+ 0,
585
+ 3,
586
+ 0,
587
+ "MODEL"
588
+ ],
589
+ [
590
+ 81,
591
+ 29,
592
+ 1,
593
+ 6,
594
+ 0,
595
+ "CLIP"
596
+ ],
597
+ [
598
+ 82,
599
+ 29,
600
+ 1,
601
+ 7,
602
+ 0,
603
+ "CLIP"
604
+ ],
605
+ [
606
+ 83,
607
+ 29,
608
+ 2,
609
+ 8,
610
+ 1,
611
+ "VAE"
612
+ ],
613
+ [
614
+ 84,
615
+ 29,
616
+ 2,
617
+ 26,
618
+ 1,
619
+ "VAE"
620
+ ],
621
+ [
622
+ 86,
623
+ 30,
624
+ 1,
625
+ 26,
626
+ 2,
627
+ "MASK"
628
+ ],
629
+ [
630
+ 87,
631
+ 30,
632
+ 0,
633
+ 26,
634
+ 0,
635
+ "IMAGE"
636
+ ],
637
+ [
638
+ 90,
639
+ 20,
640
+ 0,
641
+ 38,
642
+ 0,
643
+ "IMAGE"
644
+ ],
645
+ [
646
+ 91,
647
+ 38,
648
+ 0,
649
+ 30,
650
+ 0,
651
+ "IMAGE"
652
+ ]
361
653
  ],
362
654
  "groups": [
363
655
  {
364
656
  "id": 1,
365
- "title": "Load image and pad for outpainting",
366
- "bounding": [-120, 600, 1038, 509],
657
+ "title": "Step2 - Load image and pad for outpainting",
658
+ "bounding": [
659
+ -60,
660
+ 570,
661
+ 930,
662
+ 540
663
+ ],
664
+ "color": "#3f789e",
665
+ "font_size": 24,
666
+ "flags": {}
667
+ },
668
+ {
669
+ "id": 2,
670
+ "title": "Step1 - Load model",
671
+ "bounding": [
672
+ 60,
673
+ 80,
674
+ 335,
675
+ 181.60000610351562
676
+ ],
677
+ "color": "#3f789e",
678
+ "font_size": 24,
679
+ "flags": {}
680
+ },
681
+ {
682
+ "id": 3,
683
+ "title": "Step3 - Prompt",
684
+ "bounding": [
685
+ 420,
686
+ 80,
687
+ 447.280029296875,
688
+ 477.2099914550781
689
+ ],
367
690
  "color": "#3f789e",
368
691
  "font_size": 24,
369
692
  "flags": {}
370
693
  }
371
694
  ],
372
695
  "config": {},
373
- "extra": {},
696
+ "extra": {
697
+ "ds": {
698
+ "scale": 0.6422651457018385,
699
+ "offset": [
700
+ 1348.2270447393946,
701
+ 268.16170419988515
702
+ ]
703
+ },
704
+ "frontendVersion": "1.24.1"
705
+ },
374
706
  "version": 0.4
375
- }
707
+ }