工作流 /
图像工具 /
图像放大: SeedVR2

图像放大: SeedVR2
Image Upscale: SeedVR2
上传图片以使用SeedVR2进行放大并生成高清输出。
图像工具
5 个节点 1 个输入 913 次使用 ComfyUI ≥ 0.28.0 ComfyUI 21 KB
需要的权重
这个工作流引用了 2 个权重文件,其中 2 个能在本站模型库里找到。
节点构成
LoadImage
× 1
SaveImage
× 1
MarkdownNote
× 1
ImageCompare
× 1
c35dd4ba-0fe3-47d6-afce-1c56d9fe5beb
× 1
官方标注的模型
SeedVR2
工作流 JSON
和上面「下载工作流 JSON」是同一份文件。
1{
2 "id": "38e4bb73-65f3-4be1-b8fb-07f98ee4021b",
3 "revision": 0,
4 "last_node_id": 48,
5 "last_link_id": 52,
6 "nodes": [
7 {
8 "id": 24,
9 "type": "LoadImage",
10 "pos": [
11 -1249.6664862090206,
12 448.00010405388696
13 ],
14 "size": [
15 700,
16 530.453125
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 0,
21 "inputs": [],
22 "outputs": [
23 {
24 "name": "IMAGE",
25 "type": "IMAGE",
26 "links": [
27 46,
28 51
29 ]
30 },
31 {
32 "name": "MASK",
33 "type": "MASK",
34 "links": []
35 }
36 ],
37 "properties": {
38 "Node name for S&R": "LoadImage",
39 "cnr_id": "comfy-core",
40 "ver": "0.3.52"
41 },
42 "widgets_values": [
43 "vr_ad.png",
44 "image"
45 ],
46 "color": "#232",
47 "bgcolor": "#353"
48 },
49 {
50 "id": 45,
51 "type": "SaveImage",
52 "pos": [
53 140,
54 450
55 ],
56 "size": [
57 708,
58 511
59 ],
60 "flags": [],
61 "order": 3,
62 "mode": 0,
63 "inputs": [
64 {
65 "name": "images",
66 "type": "IMAGE",
67 "link": 48
68 }
69 ],
70 "outputs": [],
71 "properties": [],
72 "widgets_values": [
73 "ComfyUI-upscaled"
74 ]
75 },
76 {
77 "id": 48,
78 "type": "MarkdownNote",
79 "pos": [
80 1620.3334966859536,
81 448.00003010850446
82 ],
83 "size": [
84 345.578125,
85 113.296875
86 ],
87 "flags": [],
88 "order": 1,
89 "mode": 0,
90 "inputs": [],
91 "outputs": [],
92 "title": "Note",
93 "properties": [],
94 "widgets_values": [
95 "Image Compare is now only available under Nodes 2.0. Open menu -> Nodes 2.0 to switch"
96 ],
97 "color": "#222",
98 "bgcolor": "#000"
99 },
100 {
101 "id": 46,
102 "type": "ImageCompare",
103 "pos": [
104 900.0000551010347,
105 450.0000086962507
106 ],
107 "size": [
108 700,
109 510
110 ],
111 "flags": [],
112 "order": 4,
113 "mode": 0,
114 "inputs": [
115 {
116 "name": "image_a",
117 "shape": 7,
118 "type": "IMAGE",
119 "link": 51
120 },
121 {
122 "name": "image_b",
123 "shape": 7,
124 "type": "IMAGE",
125 "link": 52
126 }
127 ],
128 "outputs": [],
129 "title": "Image Compare (Before/After)",
130 "properties": {
131 "Node name for S&R": "ImageCompare"
132 },
133 "widgets_values": [
134 {
135 "before": "/api/view?filename=b4cd42f86cfc2356bf6af77acea492469a5fefed38f73340418a9a88c3bc3264.png&subfolder=&type=temp",
136 "after": "/api/view?filename=fa4b6ce837d8f13afef0900c2e5f8fdb28fea1ec3e33d73749ffa2e8d88a84a7.png&subfolder=&type=temp"
137 }
138 ]
139 },
140 {
141 "id": 47,
142 "type": "c35dd4ba-0fe3-47d6-afce-1c56d9fe5beb",
143 "pos": [
144 -450.0000029644875,
145 450.0000634848535
146 ],
147 "size": [
148 500,
149 180
150 ],
151 "flags": [],
152 "order": 2,
153 "mode": 0,
154 "inputs": [
155 {
156 "name": "image",
157 "type": "IMAGE",
158 "link": 46
159 }
160 ],
161 "outputs": [
162 {
163 "name": "IMAGE",
164 "type": "IMAGE",
165 "links": [
166 48,
167 52
168 ]
169 }
170 ],
171 "title": "SeedVR2 Image Upscaler",
172 "properties": {
173 "proxyWidgets": [
174 [
175 "28",
176 "model"
177 ],
178 [
179 "30",
180 "value"
181 ],
182 [
183 "27",
184 "seed"
185 ],
186 [
187 "27",
188 "control_after_generate"
189 ]
190 ]
191 },
192 "widgets_values": []
193 }
194 ],
195 "links": [
196 [
197 46,
198 24,
199 0,
200 47,
201 0,
202 "IMAGE"
203 ],
204 [
205 48,
206 47,
207 0,
208 45,
209 0,
210 "IMAGE"
211 ],
212 [
213 51,
214 24,
215 0,
216 46,
217 0,
218 "IMAGE"
219 ],
220 [
221 52,
222 47,
223 0,
224 46,
225 1,
226 "IMAGE"
227 ]
228 ],
229 "groups": [],
230 "definitions": {
231 "subgraphs": [
232 {
233 "id": "c35dd4ba-0fe3-47d6-afce-1c56d9fe5beb",
234 "version": 1,
235 "state": {
236 "lastGroupId": 2,
237 "lastNodeId": 46,
238 "lastLinkId": 50,
239 "lastRerouteId": 0
240 },
241 "revision": 0,
242 "config": [],
243 "name": "Image Upscale(SeedVR2)",
244 "inputNode": {
245 "id": -10,
246 "bounding": [
247 -930,
248 790,
249 120,
250 60
251 ]
252 },
253 "outputNode": {
254 "id": -20,
255 "bounding": [
256 1365,
257 1215,
258 120,
259 60
260 ]
261 },
262 "inputs": [
263 {
264 "id": "040e9c36-17d5-4d9b-93e3-f61d43013403",
265 "name": "image",
266 "type": "IMAGE",
267 "linkIds": [
268 49,
269 50
270 ],
271 "localized_name": "image",
272 "pos": [
273 -830,
274 810
275 ]
276 }
277 ],
278 "outputs": [
279 {
280 "id": "43c03fed-dfc5-4410-b196-9d1bd4f44ba3",
281 "name": "IMAGE",
282 "type": "IMAGE",
283 "linkIds": [
284 43,
285 44
286 ],
287 "localized_name": "IMAGE",
288 "pos": [
289 1385,
290 1235
291 ]
292 }
293 ],
294 "widgets": [],
295 "nodes": [
296 {
297 "id": 43,
298 "type": "LayerUtility: If ",
299 "pos": [
300 31.66672079424056,
301 1556.666653837735
302 ],
303 "size": [
304 187.5,
305 66
306 ],
307 "flags": {
308 "collapsed": false
309 },
310 "order": 8,
311 "mode": 0,
312 "inputs": [
313 {
314 "localized_name": "if_condition",
315 "name": "if_condition",
316 "type": "*",
317 "link": 38
318 },
319 {
320 "localized_name": "when_TRUE",
321 "name": "when_TRUE",
322 "type": "*",
323 "link": 41
324 },
325 {
326 "localized_name": "when_FALSE",
327 "name": "when_FALSE",
328 "type": "*",
329 "link": 40
330 }
331 ],
332 "outputs": [
333 {
334 "localized_name": "?",
335 "name": "?",
336 "type": "*",
337 "links": [
338 42
339 ]
340 }
341 ],
342 "title": "IfElse",
343 "properties": {
344 "Node name for S&R": "LayerUtility: If "
345 },
346 "widgets_values": [],
347 "color": "rgba(38, 73, 116, 0.7)"
348 },
349 {
350 "id": 40,
351 "type": "ImpactCompare",
352 "pos": [
353 -310,
354 1450
355 ],
356 "size": [
357 252.01822916666669,
358 78
359 ],
360 "flags": {
361 "collapsed": false
362 },
363 "order": 7,
364 "mode": 0,
365 "inputs": [
366 {
367 "localized_name": "a",
368 "name": "a",
369 "type": "*",
370 "link": 36
371 },
372 {
373 "localized_name": "b",
374 "name": "b",
375 "type": "*",
376 "link": 37
377 }
378 ],
379 "outputs": [
380 {
381 "localized_name": "BOOLEAN",
382 "name": "BOOLEAN",
383 "type": "BOOLEAN",
384 "links": [
385 38
386 ]
387 }
388 ],
389 "properties": {
390 "Node name for S&R": "ImpactCompare"
391 },
392 "widgets_values": [
393 "a <= b"
394 ]
395 },
396 {
397 "id": 25,
398 "type": "SimpleMath+",
399 "pos": [
400 400,
401 1560
402 ],
403 "size": [
404 260.31796875,
405 78
406 ],
407 "flags": {
408 "collapsed": false
409 },
410 "order": 5,
411 "mode": 0,
412 "inputs": [
413 {
414 "localized_name": "a",
415 "name": "a",
416 "shape": 7,
417 "type": "INT,FLOAT",
418 "link": 42
419 },
420 {
421 "localized_name": "b",
422 "name": "b",
423 "shape": 7,
424 "type": "INT,FLOAT",
425 "link": 23
426 }
427 ],
428 "outputs": [
429 {
430 "localized_name": "INT",
431 "name": "INT",
432 "type": "INT",
433 "links": [
434 27
435 ]
436 },
437 {
438 "localized_name": "FLOAT",
439 "name": "FLOAT",
440 "type": "FLOAT",
441 "links": null
442 }
443 ],
444 "title": "Upscale to Shortest Edge (pixels)",
445 "properties": {
446 "Node name for S&R": "SimpleMath+",
447 "cnr_id": "comfyui_essentials",
448 "ver": "1.1.0"
449 },
450 "widgets_values": [
451 "a*b"
452 ]
453 },
454 {
455 "id": 30,
456 "type": "PrimitiveFloat",
457 "pos": [
458 -40,
459 1710
460 ],
461 "size": [
462 251.9921875,
463 58
464 ],
465 "flags": [],
466 "order": 0,
467 "mode": 0,
468 "inputs": [
469 {
470 "label": "upscale_by",
471 "localized_name": "value",
472 "name": "value",
473 "type": "FLOAT",
474 "widget": {
475 "name": "value"
476 },
477 "link": null
478 }
479 ],
480 "outputs": [
481 {
482 "localized_name": "FLOAT",
483 "name": "FLOAT",
484 "type": "FLOAT",
485 "links": [
486 23
487 ]
488 }
489 ],
490 "title": "Upscale Factor",
491 "properties": {
492 "Node name for S&R": "PrimitiveFloat",
493 "cnr_id": "comfy-core",
494 "ver": "0.3.66"
495 },
496 "widgets_values": [
497 4
498 ],
499 "color": "#232",
500 "bgcolor": "#353"
501 },
502 {
503 "id": 27,
504 "type": "SeedVR2VideoUpscaler",
505 "pos": [
506 790,
507 800
508 ],
509 "size": [
510 323.99739583333337,
511 386
512 ],
513 "flags": [],
514 "order": 6,
515 "mode": 0,
516 "inputs": [
517 {
518 "localized_name": "image",
519 "name": "image",
520 "type": "IMAGE",
521 "link": 50
522 },
523 {
524 "localized_name": "dit",
525 "name": "dit",
526 "type": "SEEDVR2_DIT",
527 "link": 25
528 },
529 {
530 "localized_name": "vae",
531 "name": "vae",
532 "type": "SEEDVR2_VAE",
533 "link": 26
534 },
535 {
536 "localized_name": "resolution",
537 "name": "resolution",
538 "type": "INT",
539 "widget": {
540 "name": "resolution"
541 },
542 "link": 27
543 }
544 ],
545 "outputs": [
546 {
547 "localized_name": "IMAGE",
548 "name": "IMAGE",
549 "type": "IMAGE",
550 "links": [
551 43,
552 44
553 ]
554 }
555 ],
556 "properties": {
557 "Node name for S&R": "SeedVR2VideoUpscaler",
558 "cnr_id": "seedvr2_videoupscaler",
559 "ver": "2a873e2f286224bb00c60fe3fb61b88b65258a6d"
560 },
561 "widgets_values": [
562 296258884,
563 "randomize",
564 1080,
565 0,
566 1,
567 false,
568 "lab",
569 0,
570 0,
571 0,
572 0,
573 "cpu",
574 false
575 ]
576 },
577 {
578 "id": 22,
579 "type": "SeedVR2LoadVAEModel",
580 "pos": [
581 220,
582 1080
583 ],
584 "size": [
585 443.99739583333337,
586 307.2135416666667
587 ],
588 "flags": [],
589 "order": 1,
590 "mode": 0,
591 "inputs": [
592 {
593 "localized_name": "torch_compile_args",
594 "name": "torch_compile_args",
595 "shape": 7,
596 "type": "TORCH_COMPILE_ARGS",
597 "link": null
598 }
599 ],
600 "outputs": [
601 {
602 "localized_name": "SEEDVR2_VAE",
603 "name": "SEEDVR2_VAE",
604 "type": "SEEDVR2_VAE",
605 "links": [
606 26
607 ]
608 }
609 ],
610 "properties": {
611 "Node name for S&R": "SeedVR2LoadVAEModel",
612 "cnr_id": "seedvr2_videoupscaler",
613 "ver": "2a873e2f286224bb00c60fe3fb61b88b65258a6d"
614 },
615 "widgets_values": [
616 "ema_vae_fp16.safetensors",
617 "cuda:0",
618 true,
619 1024,
620 128,
621 true,
622 1024,
623 128,
624 "false",
625 "none",
626 false
627 ]
628 },
629 {
630 "id": 28,
631 "type": "SeedVR2LoadDiTModel",
632 "pos": [
633 220,
634 810
635 ],
636 "size": [
637 443.99739583333337,
638 203.88020833333334
639 ],
640 "flags": [],
641 "order": 2,
642 "mode": 0,
643 "inputs": [
644 {
645 "localized_name": "torch_compile_args",
646 "name": "torch_compile_args",
647 "shape": 7,
648 "type": "TORCH_COMPILE_ARGS",
649 "link": null
650 }
651 ],
652 "outputs": [
653 {
654 "localized_name": "SEEDVR2_DIT",
655 "name": "SEEDVR2_DIT",
656 "type": "SEEDVR2_DIT",
657 "links": [
658 25
659 ]
660 }
661 ],
662 "properties": {
663 "Node name for S&R": "SeedVR2LoadDiTModel",
664 "cnr_id": "seedvr2_videoupscaler",
665 "ver": "2a873e2f286224bb00c60fe3fb61b88b65258a6d"
666 },
667 "widgets_values": [
668 "seedvr2_ema_7b_fp16.safetensors",
669 "cuda:0",
670 0,
671 false,
672 "cpu",
673 false,
674 "sdpa"
675 ]
676 },
677 {
678 "id": 21,
679 "type": "GetImageSize",
680 "pos": [
681 -590,
682 1580
683 ],
684 "size": [
685 187.5,
686 66
687 ],
688 "flags": {
689 "collapsed": false
690 },
691 "order": 4,
692 "mode": 0,
693 "inputs": [
694 {
695 "localized_name": "image",
696 "name": "image",
697 "type": "IMAGE",
698 "link": 49
699 }
700 ],
701 "outputs": [
702 {
703 "localized_name": "width",
704 "name": "width",
705 "type": "INT",
706 "links": [
707 36,
708 41
709 ]
710 },
711 {
712 "localized_name": "height",
713 "name": "height",
714 "type": "INT",
715 "links": [
716 37,
717 40
718 ]
719 },
720 {
721 "localized_name": "batch_size",
722 "name": "batch_size",
723 "type": "INT",
724 "links": null
725 }
726 ],
727 "properties": {
728 "Node name for S&R": "GetImageSize",
729 "cnr_id": "comfy-core",
730 "ver": "0.3.66"
731 },
732 "widgets_values": []
733 },
734 {
735 "id": 26,
736 "type": "MarkdownNote",
737 "pos": [
738 -170,
739 830
740 ],
741 "size": [
742 325,
743 266.484375
744 ],
745 "flags": {
746 "collapsed": false
747 },
748 "order": 3,
749 "mode": 0,
750 "inputs": [],
751 "outputs": [],
752 "title": "Note",
753 "properties": [],
754 "widgets_values": [
755 "## About SeedVR2\n\nYou can watch a comprehensive tutorial from the author on [Youtube](https://www.youtube.com/watch?v=MBtWYXq_r60) or check out the [Github](https://github.com/numz/ComfyUI-SeedVR2_VideoUpscaler).\n\n## Quick Notes\nHover over the node inputs for tooltip info from author\n\ninput_noise_scale softens higher frequency details (e.g. skin textures)\n\nlatent_noise_scale softens low frequency details. Best around 0.01-0.05 (but depends on upscale factor)\n\nNodes support alpha masks\n\n\n"
756 ],
757 "color": "#222",
758 "bgcolor": "#000"
759 }
760 ],
761 "groups": [],
762 "links": [
763 {
764 "id": 36,
765 "origin_id": 21,
766 "origin_slot": 0,
767 "target_id": 40,
768 "target_slot": 0,
769 "type": "INT"
770 },
771 {
772 "id": 37,
773 "origin_id": 21,
774 "origin_slot": 1,
775 "target_id": 40,
776 "target_slot": 1,
777 "type": "INT"
778 },
779 {
780 "id": 42,
781 "origin_id": 43,
782 "origin_slot": 0,
783 "target_id": 25,
784 "target_slot": 0,
785 "type": "INT,FLOAT"
786 },
787 {
788 "id": 23,
789 "origin_id": 30,
790 "origin_slot": 0,
791 "target_id": 25,
792 "target_slot": 1,
793 "type": "FLOAT"
794 },
795 {
796 "id": 38,
797 "origin_id": 40,
798 "origin_slot": 0,
799 "target_id": 43,
800 "target_slot": 0,
801 "type": "BOOLEAN"
802 },
803 {
804 "id": 41,
805 "origin_id": 21,
806 "origin_slot": 0,
807 "target_id": 43,
808 "target_slot": 1,
809 "type": "INT"
810 },
811 {
812 "id": 40,
813 "origin_id": 21,
814 "origin_slot": 1,
815 "target_id": 43,
816 "target_slot": 2,
817 "type": "INT"
818 },
819 {
820 "id": 25,
821 "origin_id": 28,
822 "origin_slot": 0,
823 "target_id": 27,
824 "target_slot": 1,
825 "type": "SEEDVR2_DIT"
826 },
827 {
828 "id": 26,
829 "origin_id": 22,
830 "origin_slot": 0,
831 "target_id": 27,
832 "target_slot": 2,
833 "type": "SEEDVR2_VAE"
834 },
835 {
836 "id": 27,
837 "origin_id": 25,
838 "origin_slot": 0,
839 "target_id": 27,
840 "target_slot": 3,
841 "type": "INT"
842 },
843 {
844 "id": 43,
845 "origin_id": 27,
846 "origin_slot": 0,
847 "target_id": -20,
848 "target_slot": 0,
849 "type": "IMAGE"
850 },
851 {
852 "id": 44,
853 "origin_id": 27,
854 "origin_slot": 0,
855 "target_id": -20,
856 "target_slot": 0,
857 "type": "IMAGE"
858 },
859 {
860 "id": 49,
861 "origin_id": -10,
862 "origin_slot": 0,
863 "target_id": 21,
864 "target_slot": 0,
865 "type": "IMAGE"
866 },
867 {
868 "id": 50,
869 "origin_id": -10,
870 "origin_slot": 0,
871 "target_id": 27,
872 "target_slot": 0,
873 "type": "IMAGE"
874 }
875 ],
876 "extra": {
877 "workflowRendererVersion": "LG"
878 }
879 }
880 ]
881 },
882 "config": [],
883 "extra": {
884 "workflowRendererVersion": "Vue",
885 "ds": {
886 "scale": 0.7904808227417065,
887 "offset": [
888 1210.5138899640394,
889 -79.66861923012456
890 ]
891 },
892 "frontendVersion": "1.38.12",
893 "VHS_latentpreview": false,
894 "VHS_latentpreviewrate": 0,
895 "VHS_MetadataImage": true,
896 "VHS_KeepIntermediate": true
897 },
898 "version": 0.4
899}