ComfyPilotComfyPilot
工作流 / 角色与时尚 / Wan万相动画2.2角色替换工作流
Wan万相动画2.2角色替换工作流

Wan万相动画2.2角色替换工作流

Wan Animate 2.2 Character Replacement Workflow

Wan万相 Animate 2.2 — 角色与场景替换 - 使用Nano Banana 2从首帧生成参考图,然后替换整个场景。针对人物主体进行了优化。

角色与时尚 11 个节点 1 个输入 21 次使用 ComfyUI ≥ 0.20.3 PurzBeats 95 KB

下载工作流 JSON 查看官方来源

下载后把文件拖进 ComfyUI 窗口即可打开。

需要的权重

这个工作流引用了 7 个权重文件,其中 5 个能在本站模型库里找到。

Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors 在模型库查看
WanAnimate_relight_lora_fp16.safetensors 模型库暂未收录
clip_vision_h.safetensors 在模型库查看
lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors 在模型库查看
sam2.1_hiera_base_plus.safetensors 模型库暂未收录
umt5_xxl_fp8_e4m3fn_scaled.safetensors 在模型库查看
wan_2.1_vae.safetensors 在模型库查看

节点构成

PrimitiveInt × 2
ImageFromBatch × 1
StringConcatenate × 1
SaveImage × 1
VHS_LoadVideo × 1
VHS_VideoInfo × 1
SaveVideo × 1
MarkdownNote × 1
b396d3e6-70cc-4a91-81db-6e0399a4edb6 × 1
GeminiNanoBanana2V2 × 1

官方标注的模型

wan2.2 Animate

工作流 JSON

和上面「下载工作流 JSON」是同一份文件。

1{
2 "id": "ba1df054-50a8-4da2-b45a-25b4dde3cc2f",
3 "revision": 0,
4 "last_node_id": 360,
5 "last_link_id": 881,
6 "nodes": [
7 {
8 "id": 159,
9 "type": "PrimitiveInt",
10 "pos": [
11 -3870,
12 -260
13 ],
14 "size": [
15 280,
16 100
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 0,
21 "inputs": [
22 {
23 "label": "target_width",
24 "name": "value",
25 "type": "INT",
26 "widget": {
27 "name": "value"
28 },
29 "link": null
30 }
31 ],
32 "outputs": [
33 {
34 "name": "INT",
35 "type": "INT",
36 "links": [
37 836
38 ]
39 }
40 ],
41 "title": "Width",
42 "properties": {
43 "Node name for S&R": "PrimitiveInt",
44 "cnr_id": "comfy-core",
45 "ver": "0.3.59"
46 },
47 "widgets_values": [
48 720,
49 "fixed"
50 ],
51 "widgets_values_named": {
52 "value": 720,
53 "fixed": "fixed"
54 }
55 },
56 {
57 "id": 160,
58 "type": "PrimitiveInt",
59 "pos": [
60 -3870,
61 -120
62 ],
63 "size": [
64 280,
65 100
66 ],
67 "flags": [],
68 "order": 1,
69 "mode": 0,
70 "inputs": [
71 {
72 "label": "target_height",
73 "name": "value",
74 "type": "INT",
75 "widget": {
76 "name": "value"
77 },
78 "link": null
79 }
80 ],
81 "outputs": [
82 {
83 "name": "INT",
84 "type": "INT",
85 "links": [
86 837
87 ]
88 }
89 ],
90 "title": "Height",
91 "properties": {
92 "Node name for S&R": "PrimitiveInt",
93 "cnr_id": "comfy-core",
94 "ver": "0.3.59"
95 },
96 "widgets_values": [
97 1280,
98 "fixed"
99 ],
100 "widgets_values_named": {
101 "value": 1280,
102 "fixed": "fixed"
103 }
104 },
105 {
106 "id": 346,
107 "type": "ImageFromBatch",
108 "pos": [
109 -3850,
110 220
111 ],
112 "size": [
113 210,
114 40
115 ],
116 "flags": {
117 "collapsed": true
118 },
119 "order": 5,
120 "mode": 0,
121 "inputs": [
122 {
123 "name": "image",
124 "type": "IMAGE",
125 "link": 840
126 }
127 ],
128 "outputs": [
129 {
130 "name": "IMAGE",
131 "type": "IMAGE",
132 "links": [
133 881
134 ]
135 }
136 ],
137 "properties": {
138 "Node name for S&R": "ImageFromBatch"
139 },
140 "widgets_values": [
141 0,
142 1
143 ],
144 "widgets_values_named": {
145 "batch_index": 0,
146 "length": 1
147 }
148 },
149 {
150 "id": 351,
151 "type": "StringConcatenate",
152 "pos": [
153 -3860,
154 270
155 ],
156 "size": [
157 340,
158 210
159 ],
160 "flags": [],
161 "order": 2,
162 "mode": 0,
163 "inputs": [
164 {
165 "label": "character_prompt",
166 "name": "string_b",
167 "type": "STRING",
168 "widget": {
169 "name": "string_b"
170 },
171 "link": null
172 }
173 ],
174 "outputs": [
175 {
176 "name": "STRING",
177 "type": "STRING",
178 "links": [
179 878
180 ]
181 }
182 ],
183 "properties": {
184 "Node name for S&R": "StringConcatenate"
185 },
186 "widgets_values": [
187 "retain the composition of this image but turn the character into ",
188 "the dancer is wearing a raincoat and rain boots, dancing in a puddle in the rain",
189 ""
190 ],
191 "widgets_values_named": {
192 "string_a": "retain the composition of this image but turn the character into ",
193 "string_b": "the dancer is wearing a raincoat and rain boots, dancing in a puddle in the rain",
194 "delimiter": ""
195 }
196 },
197 {
198 "id": 349,
199 "type": "SaveImage",
200 "pos": [
201 -3080,
202 180
203 ],
204 "size": [
205 370,
206 600
207 ],
208 "flags": [],
209 "order": 9,
210 "mode": 0,
211 "inputs": [
212 {
213 "name": "images",
214 "type": "IMAGE",
215 "link": 880
216 }
217 ],
218 "outputs": [
219 {
220 "name": "images",
221 "type": "IMAGE",
222 "links": null
223 }
224 ],
225 "title": "Preview Reference Image",
226 "properties": [],
227 "widgets_values": [
228 "ComfyUI"
229 ],
230 "widgets_values_named": {
231 "filename_prefix": "ComfyUI"
232 }
233 },
234 {
235 "id": 301,
236 "type": "VHS_LoadVideo",
237 "pos": [
238 -4240,
239 -510
240 ],
241 "size": [
242 330,
243 875.1111111111111
244 ],
245 "flags": [],
246 "order": 3,
247 "mode": 0,
248 "inputs": [
249 {
250 "name": "meta_batch",
251 "shape": 7,
252 "type": "VHS_BatchManager",
253 "link": null
254 },
255 {
256 "name": "vae",
257 "shape": 7,
258 "type": "VAE",
259 "link": null
260 },
261 {
262 "label": "input_video",
263 "name": "video",
264 "type": "COMBO",
265 "widget": {
266 "name": "video"
267 },
268 "link": null
269 },
270 {
271 "label": "frame_load_cap",
272 "name": "frame_load_cap",
273 "type": "INT",
274 "widget": {
275 "name": "frame_load_cap"
276 },
277 "link": null
278 }
279 ],
280 "outputs": [
281 {
282 "name": "IMAGE",
283 "type": "IMAGE",
284 "links": [
285 835,
286 840
287 ]
288 },
289 {
290 "name": "frame_count",
291 "type": "INT",
292 "links": [
293 877
294 ]
295 },
296 {
297 "name": "audio",
298 "type": "AUDIO",
299 "links": [
300 847
301 ]
302 },
303 {
304 "name": "video_info",
305 "type": "VHS_VIDEOINFO",
306 "links": [
307 769
308 ]
309 }
310 ],
311 "title": "Input Video",
312 "properties": {
313 "Node name for S&R": "VHS_LoadVideo"
314 },
315 "widgets_values": {
316 "video": "templates_purz_wan22_animate_auto_full_scene.mp4",
317 "force_rate": 0,
318 "custom_width": 0,
319 "custom_height": 0,
320 "frame_load_cap": 0,
321 "skip_first_frames": 0,
322 "select_every_nth": 1,
323 "format": "AnimateDiff",
324 "videopreview": {
325 "hidden": false,
326 "paused": false,
327 "params": {
328 "force_rate": 0,
329 "custom_width": 0,
330 "custom_height": 0,
331 "frame_load_cap": 0,
332 "skip_first_frames": 0,
333 "select_every_nth": 1,
334 "filename": "templates_purz_wan22_animate_auto_full_scene.mp4",
335 "type": "input",
336 "format": "video/mp4"
337 }
338 }
339 },
340 "widgets_values_named": {
341 "video": "templates_purz_wan22_animate_auto_full_scene.mp4",
342 "force_rate": 0,
343 "custom_width": 0,
344 "custom_height": 0,
345 "frame_load_cap": 0,
346 "skip_first_frames": 0,
347 "select_every_nth": 1,
348 "format": "AnimateDiff",
349 "choose video to upload": null,
350 "videopreview": {
351 "hidden": false,
352 "paused": false,
353 "params": {
354 "force_rate": 0,
355 "custom_width": 0,
356 "custom_height": 0,
357 "frame_load_cap": 0,
358 "skip_first_frames": 0,
359 "select_every_nth": 1,
360 "filename": "templates_purz_wan22_animate_auto_full_scene.mp4",
361 "type": "input",
362 "format": "video/mp4"
363 }
364 }
365 }
366 },
367 {
368 "id": 314,
369 "type": "VHS_VideoInfo",
370 "pos": [
371 -3480,
372 -400
373 ],
374 "size": [
375 240,
376 210
377 ],
378 "flags": {
379 "collapsed": true
380 },
381 "order": 6,
382 "mode": 0,
383 "inputs": [
384 {
385 "name": "video_info",
386 "type": "VHS_VIDEOINFO",
387 "link": 769
388 }
389 ],
390 "outputs": [
391 {
392 "name": "source_fps🟨",
393 "type": "FLOAT",
394 "links": [
395 834
396 ]
397 },
398 {
399 "name": "source_frame_count🟨",
400 "type": "INT",
401 "links": null
402 },
403 {
404 "name": "source_duration🟨",
405 "type": "FLOAT",
406 "links": null
407 },
408 {
409 "name": "source_width🟨",
410 "type": "INT",
411 "links": null
412 },
413 {
414 "name": "source_height🟨",
415 "type": "INT",
416 "links": null
417 },
418 {
419 "name": "loaded_fps🟦",
420 "type": "FLOAT",
421 "links": null
422 },
423 {
424 "name": "loaded_frame_count🟦",
425 "type": "INT",
426 "links": null
427 },
428 {
429 "name": "loaded_duration🟦",
430 "type": "FLOAT",
431 "links": null
432 },
433 {
434 "name": "loaded_width🟦",
435 "type": "INT",
436 "links": null
437 },
438 {
439 "name": "loaded_height🟦",
440 "type": "INT",
441 "links": null
442 }
443 ],
444 "properties": {
445 "Node name for S&R": "VHS_VideoInfo"
446 },
447 "widgets_values": []
448 },
449 {
450 "id": 19,
451 "type": "SaveVideo",
452 "pos": [
453 -2630,
454 -500
455 ],
456 "size": [
457 700,
458 1400
459 ],
460 "flags": [],
461 "order": 10,
462 "mode": 0,
463 "inputs": [
464 {
465 "name": "video",
466 "type": "VIDEO",
467 "link": 839
468 }
469 ],
470 "outputs": [
471 {
472 "name": "video",
473 "type": "VIDEO",
474 "links": null
475 }
476 ],
477 "title": "Final Video",
478 "properties": {
479 "Node name for S&R": "SaveVideo",
480 "cnr_id": "comfy-core",
481 "ver": "0.3.59"
482 },
483 "widgets_values": [
484 "video/Wan2.2_animate",
485 "auto",
486 "auto",
487 "auto"
488 ],
489 "widgets_values_named": {
490 "filename_prefix": "video/Wan2.2_animate",
491 "format": "auto",
492 "format.codec": "auto",
493 "codec": "auto"
494 }
495 },
496 {
497 "id": 352,
498 "type": "MarkdownNote",
499 "pos": [
500 -4940,
501 -510
502 ],
503 "size": [
504 640,
505 1080
506 ],
507 "flags": [],
508 "order": 4,
509 "mode": 0,
510 "inputs": [],
511 "outputs": [],
512 "properties": [],
513 "widgets_values": [
514 "This workflow takes an input video + reference image and generates an animated result using **Wan 2.2 Animate (Character Replace)**.\n\n> ⚠️ Works best when the **reference image is a person**. \nHuman subjects (clear face + body) produce the most stable and convincing results.\n\n## 1️⃣ Set Target Resolution (Top Left)\n\nUse the **Width** and **Height** nodes (top left) to define output resolution.\n\n**Recommended:**\n- ✅ Stay around **720p** (e.g. 720x720 or 832x480)\n- ⚠️ 1080p may error depending on VRAM\n- Higher resolutions = higher instability\n\n> Both the input video and reference image are **center-cropped** to match the target resolution.\n\n## 2️⃣ Control Frame Count\n\nIn the **Input Video** node, use:\n\n`frame_load_cap`\n\nto control how many frames are processed.\n\n**Recommended range:**\n- 🎯 **77–150 frames**\n\nLower = faster + less likely to crash\nHigher = heavier VRAM usage\n\n## 3️⃣ Wan 2.2 Animate Node\n\n- Connect `input_video`\n- Connect `reference_image`\n- Set FPS (30 is typical)\n- Add your prompt describing motion or behavior\n\nExample:\n\nthe person is dancing\n\n## 4️⃣ Export\n\nThe **Save Video** node outputs the final animation.\n\n## ⚙️ Stability Guidelines\n\n- Stick to ~720p\n- Keep frames under ~150\n- 1080p may fail without significant VRAM\n- Everything is **center-cropped**\n- Best results with **clear human reference images**\n\nResolution → Frame Cap → Prompt → Render.\n\n- Feel free to bypass the Nano Banana 2 node and use your own reference image as an Input!"
515 ],
516 "widgets_values_named": {
517 "text": "This workflow takes an input video + reference image and generates an animated result using **Wan 2.2 Animate (Character Replace)**.\n\n> ⚠️ Works best when the **reference image is a person**. \nHuman subjects (clear face + body) produce the most stable and convincing results.\n\n## 1️⃣ Set Target Resolution (Top Left)\n\nUse the **Width** and **Height** nodes (top left) to define output resolution.\n\n**Recommended:**\n- ✅ Stay around **720p** (e.g. 720x720 or 832x480)\n- ⚠️ 1080p may error depending on VRAM\n- Higher resolutions = higher instability\n\n> Both the input video and reference image are **center-cropped** to match the target resolution.\n\n## 2️⃣ Control Frame Count\n\nIn the **Input Video** node, use:\n\n`frame_load_cap`\n\nto control how many frames are processed.\n\n**Recommended range:**\n- 🎯 **77–150 frames**\n\nLower = faster + less likely to crash\nHigher = heavier VRAM usage\n\n## 3️⃣ Wan 2.2 Animate Node\n\n- Connect `input_video`\n- Connect `reference_image`\n- Set FPS (30 is typical)\n- Add your prompt describing motion or behavior\n\nExample:\n\nthe person is dancing\n\n## 4️⃣ Export\n\nThe **Save Video** node outputs the final animation.\n\n## ⚙️ Stability Guidelines\n\n- Stick to ~720p\n- Keep frames under ~150\n- 1080p may fail without significant VRAM\n- Everything is **center-cropped**\n- Best results with **clear human reference images**\n\nResolution → Frame Cap → Prompt → Render.\n\n- Feel free to bypass the Nano Banana 2 node and use your own reference image as an Input!"
518 },
519 "color": "#222",
520 "bgcolor": "#000"
521 },
522 {
523 "id": 344,
524 "type": "b396d3e6-70cc-4a91-81db-6e0399a4edb6",
525 "pos": [
526 -3010,
527 -500
528 ],
529 "size": [
530 320,
531 500
532 ],
533 "flags": [],
534 "order": 8,
535 "mode": 0,
536 "inputs": [
537 {
538 "name": "fps",
539 "type": "FLOAT",
540 "widget": {
541 "name": "fps"
542 },
543 "link": 834
544 },
545 {
546 "label": "input_video",
547 "name": "image",
548 "type": "IMAGE",
549 "link": 835
550 },
551 {
552 "name": "width",
553 "type": "INT",
554 "widget": {
555 "name": "width"
556 },
557 "link": 836
558 },
559 {
560 "name": "height",
561 "type": "INT",
562 "widget": {
563 "name": "height"
564 },
565 "link": 837
566 },
567 {
568 "label": "reference_image",
569 "name": "image_1",
570 "type": "IMAGE",
571 "link": 879
572 },
573 {
574 "name": "audio",
575 "shape": 7,
576 "type": "AUDIO",
577 "link": 847
578 },
579 {
580 "name": "length",
581 "type": "INT",
582 "widget": {
583 "name": "length"
584 },
585 "link": 877
586 }
587 ],
588 "outputs": [
589 {
590 "name": "VIDEO",
591 "type": "VIDEO",
592 "links": [
593 839
594 ]
595 }
596 ],
597 "properties": {
598 "previewExposures": [
599 {
600 "name": "$$canvas-image-preview",
601 "sourceNodeId": "355",
602 "sourcePreviewName": "$$canvas-image-preview"
603 }
604 ]
605 },
606 "widgets_values": [
607 30,
608 832,
609 480,
610 "the person is dancing",
611 77
612 ],
613 "widgets_values_named": {
614 "fps": 30,
615 "width": 832,
616 "height": 480,
617 "text": "the person is dancing",
618 "length": 77
619 }
620 },
621 {
622 "id": 360,
623 "type": "GeminiNanoBanana2V2",
624 "pos": [
625 -3490,
626 190
627 ],
628 "size": [
629 400,
630 398
631 ],
632 "flags": [],
633 "order": 7,
634 "mode": 0,
635 "inputs": [
636 {
637 "name": "prompt",
638 "type": "STRING",
639 "widget": {
640 "name": "prompt"
641 },
642 "link": 878
643 },
644 {
645 "name": "model.images.image_1",
646 "shape": 7,
647 "type": "IMAGE",
648 "link": 881
649 },
650 {
651 "name": "model.images.image_2",
652 "shape": 7,
653 "type": "IMAGE",
654 "link": null
655 },
656 {
657 "name": "model.files",
658 "shape": 7,
659 "type": "GEMINI_INPUT_FILES",
660 "link": null
661 }
662 ],
663 "outputs": [
664 {
665 "name": "IMAGE",
666 "type": "IMAGE",
667 "links": [
668 879,
669 880
670 ]
671 },
672 {
673 "name": "STRING",
674 "type": "STRING",
675 "links": null
676 },
677 {
678 "name": "thought_image",
679 "type": "IMAGE",
680 "links": null
681 }
682 ],
683 "properties": {
684 "Node name for S&R": "GeminiNanoBanana2V2"
685 },
686 "widgets_values": [
687 "",
688 "Nano Banana 2 (Gemini 3.1 Flash Image)",
689 "auto",
690 "1K",
691 "MINIMAL",
692 42,
693 "randomize",
694 "IMAGE",
695 "You are an expert image-generation engine. You must ALWAYS produce an image.\nInterpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition.\nIf a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept.\nPrioritize generating the visual representation above any text, formatting, or conversational requests.",
696 1,
697 0.95
698 ],
699 "widgets_values_named": {
700 "prompt": "",
701 "model": "Nano Banana 2 (Gemini 3.1 Flash Image)",
702 "model.aspect_ratio": "auto",
703 "model.resolution": "1K",
704 "model.thinking_level": "MINIMAL",
705 "seed": 42,
706 "control_after_generate": "randomize",
707 "response_modalities": "IMAGE",
708 "system_prompt": "You are an expert image-generation engine. You must ALWAYS produce an image.\nInterpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition.\nIf a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept.\nPrioritize generating the visual representation above any text, formatting, or conversational requests.",
709 "temperature": 1,
710 "top_p": 0.95
711 },
712 "color": "#432",
713 "bgcolor": "#653"
714 }
715 ],
716 "links": [
717 [
718 769,
719 301,
720 3,
721 314,
722 0,
723 "VHS_VIDEOINFO"
724 ],
725 [
726 834,
727 314,
728 0,
729 344,
730 0,
731 "FLOAT"
732 ],
733 [
734 835,
735 301,
736 0,
737 344,
738 1,
739 "IMAGE"
740 ],
741 [
742 836,
743 159,
744 0,
745 344,
746 2,
747 "INT"
748 ],
749 [
750 837,
751 160,
752 0,
753 344,
754 3,
755 "INT"
756 ],
757 [
758 840,
759 301,
760 0,
761 346,
762 0,
763 "IMAGE"
764 ],
765 [
766 839,
767 344,
768 0,
769 19,
770 0,
771 "VIDEO"
772 ],
773 [
774 847,
775 301,
776 2,
777 344,
778 5,
779 "AUDIO"
780 ],
781 [
782 877,
783 301,
784 1,
785 344,
786 6,
787 "INT"
788 ],
789 [
790 879,
791 360,
792 0,
793 344,
794 4,
795 "IMAGE"
796 ],
797 [
798 880,
799 360,
800 0,
801 349,
802 0,
803 "IMAGE"
804 ],
805 [
806 878,
807 351,
808 0,
809 360,
810 0,
811 "STRING"
812 ],
813 [
814 881,
815 346,
816 0,
817 360,
818 1,
819 "IMAGE"
820 ]
821 ],
822 "groups": [
823 {
824 "id": 17,
825 "title": "Target Resolution",
826 "bounding": [
827 -3890,
828 -340,
829 330,
830 340
831 ],
832 "color": "#3f789e",
833 "flags": []
834 },
835 {
836 "id": 25,
837 "title": "First Frame Restyle",
838 "bounding": [
839 -3880,
840 70,
841 1180,
842 790
843 ],
844 "color": "#3f789e",
845 "flags": []
846 }
847 ],
848 "definitions": {
849 "subgraphs": [
850 {
851 "id": "b396d3e6-70cc-4a91-81db-6e0399a4edb6",
852 "version": 1,
853 "state": {
854 "lastGroupId": 25,
855 "lastNodeId": 360,
856 "lastLinkId": 881,
857 "lastRerouteId": 0
858 },
859 "revision": 0,
860 "config": [],
861 "name": "Wan 2.2 Animate - Full Scene",
862 "inputNode": {
863 "id": -10,
864 "bounding": [
865 -4350,
866 350,
867 120,
868 170
869 ]
870 },
871 "outputNode": {
872 "id": -20,
873 "bounding": [
874 -650,
875 370,
876 100,
877 50
878 ]
879 },
880 "inputs": [
881 {
882 "id": "25fb7bfd-a9a1-4010-8157-ebb4189f5b6b",
883 "name": "fps",
884 "type": "FLOAT",
885 "linkIds": [
886 814,
887 815,
888 816,
889 874
890 ],
891 "localized_name": "fps",
892 "pos": [
893 -5097.596642240996,
894 446
895 ]
896 },
897 {
898 "id": "76dce9c4-abcd-4673-b334-8024f29d7f2c",
899 "name": "image",
900 "type": "IMAGE",
901 "linkIds": [
902 817
903 ],
904 "localized_name": "image",
905 "label": "input_video",
906 "pos": [
907 -5097.596642240996,
908 466
909 ]
910 },
911 {
912 "id": "af1f4478-1474-4fee-82f8-54e9629ffdc3",
913 "name": "width",
914 "type": "INT",
915 "linkIds": [
916 818,
917 826,
918 871
919 ],
920 "localized_name": "width",
921 "pos": [
922 -5097.596642240996,
923 486
924 ]
925 },
926 {
927 "id": "9deefdcb-b80b-4a53-9f32-f06dfcb0db51",
928 "name": "height",
929 "type": "INT",
930 "linkIds": [
931 819,
932 827,
933 872
934 ],
935 "localized_name": "height",
936 "pos": [
937 -5097.596642240996,
938 506
939 ]
940 },
941 {
942 "id": "2ce7897d-0ab4-471e-953f-cf56c9b6e56c",
943 "name": "image_1",
944 "type": "IMAGE",
945 "linkIds": [
946 825
947 ],
948 "localized_name": "image_1",
949 "label": "reference_image",
950 "pos": [
951 -5097.596642240996,
952 526
953 ]
954 },
955 {
956 "id": "48e182cf-4847-4aa3-88fb-086de8bdfa72",
957 "name": "text",
958 "type": "STRING",
959 "linkIds": [
960 838
961 ],
962 "pos": [
963 -5097.596642240996,
964 546
965 ]
966 },
967 {
968 "id": "8f57065f-1b44-4b1b-98c9-bdde237c3157",
969 "name": "audio",
970 "type": "AUDIO",
971 "linkIds": [
972 862
973 ],
974 "pos": [
975 -5097.596642240996,
976 566
977 ]
978 },
979 {
980 "id": "bc8aea5d-4111-4833-ae43-d0979c16e9a9",
981 "name": "length",
982 "type": "INT",
983 "linkIds": [
984 876
985 ],
986 "pos": [
987 -5097.596642240996,
988 586
989 ]
990 }
991 ],
992 "outputs": [
993 {
994 "id": "fb94f0e7-6131-4db5-ac54-675007832f69",
995 "name": "VIDEO",
996 "type": "VIDEO",
997 "linkIds": [
998 873
999 ],
1000 "localized_name": "VIDEO",
1001 "pos": [
1002 -752.6415641159956,
1003 470
1004 ]
1005 }
1006 ],
1007 "widgets": [],
1008 "nodes": [
1009 {
1010 "id": 4,
1011 "type": "CLIPVisionLoader",
1012 "pos": [
1013 -3030,
1014 -530
1015 ],
1016 "size": [
1017 310,
1018 100
1019 ],
1020 "flags": [],
1021 "order": 0,
1022 "mode": 0,
1023 "inputs": [],
1024 "outputs": [
1025 {
1026 "localized_name": "CLIP_VISION",
1027 "name": "CLIP_VISION",
1028 "type": "CLIP_VISION",
1029 "slot_index": 0,
1030 "links": [
1031 4
1032 ]
1033 }
1034 ],
1035 "properties": {
1036 "Node name for S&R": "CLIPVisionLoader",
1037 "cnr_id": "comfy-core",
1038 "ver": "0.3.59",
1039 "models": [
1040 {
1041 "name": "clip_vision_h.safetensors",
1042 "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/clip_vision/clip_vision_h.safetensors",
1043 "directory": "clip_vision"
1044 }
1045 ]
1046 },
1047 "widgets_values": [
1048 "clip_vision_h.safetensors"
1049 ],
1050 "widgets_values_named": {
1051 "clip_name": "clip_vision_h.safetensors"
1052 }
1053 },
1054 {
1055 "id": 2,
1056 "type": "CLIPLoader",
1057 "pos": [
1058 -3030,
1059 -680
1060 ],
1061 "size": [
1062 310,
1063 130
1064 ],
1065 "flags": [],
1066 "order": 1,
1067 "mode": 0,
1068 "inputs": [],
1069 "outputs": [
1070 {
1071 "localized_name": "CLIP",
1072 "name": "CLIP",
1073 "type": "CLIP",
1074 "slot_index": 0,
1075 "links": [
1076 1,
1077 18
1078 ]
1079 }
1080 ],
1081 "properties": {
1082 "Node name for S&R": "CLIPLoader",
1083 "cnr_id": "comfy-core",
1084 "ver": "0.3.59",
1085 "models": [
1086 {
1087 "name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
1088 "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors",
1089 "directory": "text_encoders"
1090 }
1091 ]
1092 },
1093 "widgets_values": [
1094 "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
1095 "wan",
1096 "default"
1097 ],
1098 "widgets_values_named": {
1099 "clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
1100 "type": "wan",
1101 "device": "default"
1102 }
1103 },
1104 {
1105 "id": 1,
1106 "type": "CLIPTextEncode",
1107 "pos": [
1108 -2650,
1109 -380
1110 ],
1111 "size": [
1112 440,
1113 190
1114 ],
1115 "flags": [],
1116 "order": 8,
1117 "mode": 0,
1118 "inputs": [
1119 {
1120 "localized_name": "clip",
1121 "name": "clip",
1122 "type": "CLIP",
1123 "link": 1
1124 }
1125 ],
1126 "outputs": [
1127 {
1128 "localized_name": "CONDITIONING",
1129 "name": "CONDITIONING",
1130 "type": "CONDITIONING",
1131 "slot_index": 0,
1132 "links": [
1133 866
1134 ]
1135 }
1136 ],
1137 "title": "CLIP Text Encode (Negative Prompt)",
1138 "properties": {
1139 "Node name for S&R": "CLIPTextEncode",
1140 "cnr_id": "comfy-core",
1141 "ver": "0.3.59"
1142 },
1143 "widgets_values": [
1144 "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走"
1145 ],
1146 "widgets_values_named": {
1147 "text": "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走"
1148 },
1149 "color": "#322",
1150 "bgcolor": "#533"
1151 },
1152 {
1153 "id": 21,
1154 "type": "CLIPTextEncode",
1155 "pos": [
1156 -2650,
1157 -680
1158 ],
1159 "size": [
1160 430,
1161 240
1162 ],
1163 "flags": [],
1164 "order": 13,
1165 "mode": 0,
1166 "inputs": [
1167 {
1168 "localized_name": "clip",
1169 "name": "clip",
1170 "type": "CLIP",
1171 "link": 18
1172 },
1173 {
1174 "localized_name": "text",
1175 "name": "text",
1176 "type": "STRING",
1177 "widget": {
1178 "name": "text"
1179 },
1180 "link": 838
1181 }
1182 ],
1183 "outputs": [
1184 {
1185 "localized_name": "CONDITIONING",
1186 "name": "CONDITIONING",
1187 "type": "CONDITIONING",
1188 "slot_index": 0,
1189 "links": [
1190 865
1191 ]
1192 }
1193 ],
1194 "title": "CLIP Text Encode (Positive Prompt)",
1195 "properties": {
1196 "Node name for S&R": "CLIPTextEncode",
1197 "cnr_id": "comfy-core",
1198 "ver": "0.3.59"
1199 },
1200 "widgets_values": [
1201 "the person is dancing"
1202 ],
1203 "widgets_values_named": {
1204 "text": "the person is dancing"
1205 },
1206 "color": "#232",
1207 "bgcolor": "#353"
1208 },
1209 {
1210 "id": 18,
1211 "type": "LoraLoaderModelOnly",
1212 "pos": [
1213 -3380,
1214 -490
1215 ],
1216 "size": [
1217 310,
1218 120
1219 ],
1220 "flags": [],
1221 "order": 9,
1222 "mode": 0,
1223 "inputs": [
1224 {
1225 "localized_name": "model",
1226 "name": "model",
1227 "type": "MODEL",
1228 "link": 16
1229 }
1230 ],
1231 "outputs": [
1232 {
1233 "localized_name": "MODEL",
1234 "name": "MODEL",
1235 "type": "MODEL",
1236 "links": [
1237 226
1238 ]
1239 }
1240 ],
1241 "properties": {
1242 "Node name for S&R": "LoraLoaderModelOnly",
1243 "cnr_id": "comfy-core",
1244 "ver": "0.3.59",
1245 "models": [
1246 {
1247 "name": "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
1248 "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Lightx2v/lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
1249 "directory": "loras"
1250 }
1251 ]
1252 },
1253 "widgets_values": [
1254 "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
1255 1
1256 ],
1257 "widgets_values_named": {
1258 "lora_name": "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
1259 "strength_model": 1
1260 }
1261 },
1262 {
1263 "id": 99,
1264 "type": "LoraLoaderModelOnly",
1265 "pos": [
1266 -3380,
1267 -330
1268 ],
1269 "size": [
1270 310,
1271 120
1272 ],
1273 "flags": [],
1274 "order": 10,
1275 "mode": 0,
1276 "inputs": [
1277 {
1278 "localized_name": "model",
1279 "name": "model",
1280 "type": "MODEL",
1281 "link": 226
1282 }
1283 ],
1284 "outputs": [
1285 {
1286 "localized_name": "MODEL",
1287 "name": "MODEL",
1288 "type": "MODEL",
1289 "links": [
1290 227
1291 ]
1292 }
1293 ],
1294 "properties": {
1295 "Node name for S&R": "LoraLoaderModelOnly",
1296 "cnr_id": "comfy-core",
1297 "ver": "0.3.59",
1298 "models": [
1299 {
1300 "name": "WanAnimate_relight_lora_fp16.safetensors",
1301 "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/LoRAs/Wan22_relight/WanAnimate_relight_lora_fp16.safetensors",
1302 "directory": "loras"
1303 }
1304 ]
1305 },
1306 "widgets_values": [
1307 "WanAnimate_relight_lora_fp16.safetensors",
1308 1
1309 ],
1310 "widgets_values_named": {
1311 "lora_name": "WanAnimate_relight_lora_fp16.safetensors",
1312 "strength_model": 1
1313 }
1314 },
1315 {
1316 "id": 327,
1317 "type": "GrowMaskWithBlur",
1318 "pos": [
1319 -2420,
1320 1080
1321 ],
1322 "size": [
1323 300,
1324 290
1325 ],
1326 "flags": [],
1327 "order": 16,
1328 "mode": 0,
1329 "inputs": [
1330 {
1331 "localized_name": "mask",
1332 "name": "mask",
1333 "type": "MASK",
1334 "link": 797
1335 }
1336 ],
1337 "outputs": [
1338 {
1339 "localized_name": "mask",
1340 "name": "mask",
1341 "type": "MASK",
1342 "links": [
1343 793
1344 ]
1345 },
1346 {
1347 "localized_name": "mask_inverted",
1348 "name": "mask_inverted",
1349 "type": "MASK",
1350 "links": []
1351 }
1352 ],
1353 "properties": {
1354 "Node name for S&R": "GrowMaskWithBlur",
1355 "cnr_id": "comfyui-kjnodes",
1356 "ver": "bb205d809b467307b8ec3bb1a22680a4873187f8",
1357 "ue_properties": {
1358 "widget_ue_connectable": [],
1359 "version": "7.3",
1360 "input_ue_unconnectable": []
1361 }
1362 },
1363 "widgets_values": [
1364 10,
1365 0,
1366 true,
1367 false,
1368 0,
1369 1,
1370 1,
1371 false
1372 ],
1373 "widgets_values_named": {
1374 "expand": 10,
1375 "incremental_expandrate": 0,
1376 "tapered_corners": true,
1377 "flip_input": false,
1378 "blur_radius": 0,
1379 "lerp_alpha": 1,
1380 "decay_factor": 1,
1381 "fill_holes": false
1382 }
1383 },
1384 {
1385 "id": 331,
1386 "type": "SaveVideo",
1387 "pos": [
1388 -1390,
1389 910
1390 ],
1391 "size": [
1392 280,
1393 620
1394 ],
1395 "flags": [],
1396 "order": 19,
1397 "mode": 4,
1398 "inputs": [
1399 {
1400 "localized_name": "video",
1401 "name": "video",
1402 "type": "VIDEO",
1403 "link": 800
1404 }
1405 ],
1406 "outputs": [
1407 {
1408 "localized_name": "video",
1409 "name": "video",
1410 "type": "VIDEO",
1411 "links": null
1412 }
1413 ],
1414 "properties": {
1415 "Node name for S&R": "SaveVideo"
1416 },
1417 "widgets_values": [
1418 "video/ComfyUI",
1419 "auto",
1420 "auto",
1421 "auto"
1422 ],
1423 "widgets_values_named": {
1424 "filename_prefix": "video/ComfyUI",
1425 "format": "auto",
1426 "format.codec": "auto",
1427 "codec": "auto"
1428 }
1429 },
1430 {
1431 "id": 324,
1432 "type": "DownloadAndLoadSAM2Model",
1433 "pos": [
1434 -2790,
1435 930
1436 ],
1437 "size": [
1438 350,
1439 190
1440 ],
1441 "flags": [],
1442 "order": 2,
1443 "mode": 0,
1444 "inputs": [],
1445 "outputs": [
1446 {
1447 "localized_name": "sam2_model",
1448 "name": "sam2_model",
1449 "type": "SAM2MODEL",
1450 "links": [
1451 794
1452 ]
1453 }
1454 ],
1455 "properties": {
1456 "Node name for S&R": "DownloadAndLoadSAM2Model",
1457 "cnr_id": "ComfyUI-segment-anything-2",
1458 "ver": "c59676b008a76237002926f684d0ca3a9b29ac54",
1459 "ue_properties": {
1460 "widget_ue_connectable": [],
1461 "version": "7.3",
1462 "input_ue_unconnectable": []
1463 }
1464 },
1465 "widgets_values": [
1466 "sam2.1_hiera_base_plus.safetensors",
1467 "video",
1468 "cuda",
1469 "fp16"
1470 ],
1471 "widgets_values_named": {
1472 "model": "sam2.1_hiera_base_plus.safetensors",
1473 "segmentor": "video",
1474 "device": "cuda",
1475 "precision": "fp16"
1476 }
1477 },
1478 {
1479 "id": 326,
1480 "type": "Sam2Segmentation",
1481 "pos": [
1482 -2780,
1483 1120
1484 ],
1485 "size": [
1486 340,
1487 210
1488 ],
1489 "flags": [],
1490 "order": 15,
1491 "mode": 0,
1492 "inputs": [
1493 {
1494 "localized_name": "sam2_model",
1495 "name": "sam2_model",
1496 "type": "SAM2MODEL",
1497 "link": 794
1498 },
1499 {
1500 "localized_name": "image",
1501 "name": "image",
1502 "type": "IMAGE",
1503 "link": 795
1504 },
1505 {
1506 "localized_name": "coordinates_positive",
1507 "name": "coordinates_positive",
1508 "shape": 7,
1509 "type": "STRING",
1510 "link": null
1511 },
1512 {
1513 "localized_name": "coordinates_negative",
1514 "name": "coordinates_negative",
1515 "shape": 7,
1516 "type": "STRING",
1517 "link": null
1518 },
1519 {
1520 "localized_name": "bboxes",
1521 "name": "bboxes",
1522 "shape": 7,
1523 "type": "BBOX",
1524 "link": 796
1525 },
1526 {
1527 "localized_name": "mask",
1528 "name": "mask",
1529 "shape": 7,
1530 "type": "MASK",
1531 "link": null
1532 }
1533 ],
1534 "outputs": [
1535 {
1536 "localized_name": "mask",
1537 "name": "mask",
1538 "type": "MASK",
1539 "links": [
1540 797
1541 ]
1542 }
1543 ],
1544 "properties": {
1545 "Node name for S&R": "Sam2Segmentation",
1546 "cnr_id": "ComfyUI-segment-anything-2",
1547 "ver": "c59676b008a76237002926f684d0ca3a9b29ac54",
1548 "ue_properties": {
1549 "widget_ue_connectable": [],
1550 "version": "7.3",
1551 "input_ue_unconnectable": []
1552 }
1553 },
1554 "widgets_values": [
1555 false,
1556 false
1557 ],
1558 "widgets_values_named": {
1559 "keep_model_loaded": false,
1560 "individual_objects": false
1561 }
1562 },
1563 {
1564 "id": 332,
1565 "type": "DrawMaskOnImage",
1566 "pos": [
1567 -2050,
1568 920
1569 ],
1570 "size": [
1571 270,
1572 150
1573 ],
1574 "flags": [],
1575 "order": 20,
1576 "mode": 0,
1577 "inputs": [
1578 {
1579 "localized_name": "image",
1580 "name": "image",
1581 "type": "IMAGE",
1582 "link": 801
1583 },
1584 {
1585 "localized_name": "mask",
1586 "name": "mask",
1587 "type": "MASK",
1588 "link": 802
1589 }
1590 ],
1591 "outputs": [
1592 {
1593 "localized_name": "images",
1594 "name": "images",
1595 "type": "IMAGE",
1596 "links": [
1597 812
1598 ]
1599 }
1600 ],
1601 "properties": {
1602 "Node name for S&R": "DrawMaskOnImage",
1603 "cnr_id": "comfyui-kjnodes",
1604 "ver": "623b5913dc7f240fd8b26422e99f8849a21c5473",
1605 "ue_properties": {
1606 "widget_ue_connectable": [],
1607 "version": "7.3",
1608 "input_ue_unconnectable": []
1609 }
1610 },
1611 "widgets_values": [
1612 "0, 0, 0",
1613 "cpu"
1614 ],
1615 "widgets_values_named": {
1616 "color": "0, 0, 0",
1617 "device": "cpu"
1618 }
1619 },
1620 {
1621 "id": 325,
1622 "type": "BlockifyMask",
1623 "pos": [
1624 -2070,
1625 1070
1626 ],
1627 "size": [
1628 280,
1629 120
1630 ],
1631 "flags": [],
1632 "order": 14,
1633 "mode": 0,
1634 "inputs": [
1635 {
1636 "localized_name": "masks",
1637 "name": "masks",
1638 "type": "MASK",
1639 "link": 793
1640 }
1641 ],
1642 "outputs": [
1643 {
1644 "localized_name": "mask",
1645 "name": "mask",
1646 "type": "MASK",
1647 "links": [
1648 802
1649 ]
1650 }
1651 ],
1652 "properties": {
1653 "Node name for S&R": "BlockifyMask",
1654 "cnr_id": "comfyui-kjnodes",
1655 "ver": "00da1910634fbf314d407608efb281ae6f7f1ba2",
1656 "ue_properties": {
1657 "widget_ue_connectable": [],
1658 "version": "7.3",
1659 "input_ue_unconnectable": []
1660 }
1661 },
1662 "widgets_values": [
1663 32,
1664 "cpu"
1665 ],
1666 "widgets_values_named": {
1667 "block_size": 32,
1668 "device": "cpu"
1669 }
1670 },
1671 {
1672 "id": 335,
1673 "type": "DrawViTPose",
1674 "pos": [
1675 -2080,
1676 1710
1677 ],
1678 "size": [
1679 280,
1680 220
1681 ],
1682 "flags": [],
1683 "order": 23,
1684 "mode": 0,
1685 "inputs": [
1686 {
1687 "localized_name": "pose_data",
1688 "name": "pose_data",
1689 "type": "POSEDATA",
1690 "link": 808
1691 },
1692 {
1693 "localized_name": "width",
1694 "name": "width",
1695 "type": "INT",
1696 "widget": {
1697 "name": "width"
1698 },
1699 "link": 809
1700 },
1701 {
1702 "localized_name": "height",
1703 "name": "height",
1704 "type": "INT",
1705 "widget": {
1706 "name": "height"
1707 },
1708 "link": 810
1709 }
1710 ],
1711 "outputs": [
1712 {
1713 "localized_name": "pose_images",
1714 "name": "pose_images",
1715 "type": "IMAGE",
1716 "links": [
1717 813,
1718 870
1719 ]
1720 }
1721 ],
1722 "properties": {
1723 "Node name for S&R": "DrawViTPose",
1724 "cnr_id": "ComfyUI-WanAnimatePreprocess",
1725 "aux_id": "kijai/ComfyUI-WanAnimatePreprocess",
1726 "ver": "e63d6e71ae4c271f3f81211a7ca7f87607b7e50d",
1727 "ue_properties": {
1728 "widget_ue_connectable": {
1729 "width": true,
1730 "height": true
1731 },
1732 "version": "7.3",
1733 "input_ue_unconnectable": []
1734 }
1735 },
1736 "widgets_values": [
1737 832,
1738 480,
1739 16,
1740 -1,
1741 -1,
1742 "True"
1743 ],
1744 "widgets_values_named": {
1745 "width": 832,
1746 "height": 480,
1747 "retarget_padding": 16,
1748 "body_stick_width": -1,
1749 "hand_stick_width": -1,
1750 "draw_head": "True"
1751 }
1752 },
1753 {
1754 "id": 334,
1755 "type": "PoseAndFaceDetection",
1756 "pos": [
1757 -2820,
1758 1690
1759 ],
1760 "size": [
1761 320,
1762 200
1763 ],
1764 "flags": [],
1765 "order": 22,
1766 "mode": 0,
1767 "inputs": [
1768 {
1769 "localized_name": "model",
1770 "name": "model",
1771 "type": "POSEMODEL",
1772 "link": 804
1773 },
1774 {
1775 "localized_name": "images",
1776 "name": "images",
1777 "type": "IMAGE",
1778 "link": 805
1779 },
1780 {
1781 "localized_name": "retarget_image",
1782 "name": "retarget_image",
1783 "shape": 7,
1784 "type": "IMAGE",
1785 "link": null
1786 },
1787 {
1788 "localized_name": "width",
1789 "name": "width",
1790 "type": "INT",
1791 "widget": {
1792 "name": "width"
1793 },
1794 "link": 806
1795 },
1796 {
1797 "localized_name": "height",
1798 "name": "height",
1799 "type": "INT",
1800 "widget": {
1801 "name": "height"
1802 },
1803 "link": 807
1804 }
1805 ],
1806 "outputs": [
1807 {
1808 "localized_name": "pose_data",
1809 "name": "pose_data",
1810 "type": "POSEDATA",
1811 "links": [
1812 808
1813 ]
1814 },
1815 {
1816 "localized_name": "face_images",
1817 "name": "face_images",
1818 "type": "IMAGE",
1819 "links": [
1820 803,
1821 869
1822 ]
1823 },
1824 {
1825 "localized_name": "key_frame_body_points",
1826 "name": "key_frame_body_points",
1827 "type": "STRING",
1828 "links": []
1829 },
1830 {
1831 "localized_name": "bboxes",
1832 "name": "bboxes",
1833 "type": "BBOX",
1834 "links": [
1835 796
1836 ]
1837 },
1838 {
1839 "localized_name": "face_bboxes",
1840 "name": "face_bboxes",
1841 "type": "BBOX,",
1842 "links": []
1843 }
1844 ],
1845 "properties": {
1846 "Node name for S&R": "PoseAndFaceDetection",
1847 "cnr_id": "ComfyUI-WanAnimatePreprocess",
1848 "aux_id": "kijai/ComfyUI-WanAnimatePreprocess",
1849 "ver": "e63d6e71ae4c271f3f81211a7ca7f87607b7e50d",
1850 "ue_properties": {
1851 "widget_ue_connectable": {
1852 "width": true,
1853 "height": true
1854 },
1855 "version": "7.3",
1856 "input_ue_unconnectable": []
1857 }
1858 },
1859 "widgets_values": [
1860 832,
1861 480,
1862 0
1863 ],
1864 "widgets_values_named": {
1865 "width": 832,
1866 "height": 480,
1867 "face_padding": 0
1868 }
1869 },
1870 {
1871 "id": 340,
1872 "type": "CreateVideo",
1873 "pos": [
1874 -1700,
1875 1690
1876 ],
1877 "size": [
1878 280,
1879 130
1880 ],
1881 "flags": [],
1882 "order": 27,
1883 "mode": 4,
1884 "inputs": [
1885 {
1886 "localized_name": "images",
1887 "name": "images",
1888 "type": "IMAGE",
1889 "link": 813
1890 },
1891 {
1892 "localized_name": "audio",
1893 "name": "audio",
1894 "shape": 7,
1895 "type": "AUDIO",
1896 "link": null
1897 },
1898 {
1899 "localized_name": "fps",
1900 "name": "fps",
1901 "type": "FLOAT",
1902 "widget": {
1903 "name": "fps"
1904 },
1905 "link": 816
1906 }
1907 ],
1908 "outputs": [
1909 {
1910 "localized_name": "VIDEO",
1911 "name": "VIDEO",
1912 "type": "VIDEO",
1913 "links": [
1914 799
1915 ]
1916 }
1917 ],
1918 "properties": {
1919 "Node name for S&R": "CreateVideo"
1920 },
1921 "widgets_values": [
1922 30,
1923 "auto",
1924 "sRGB"
1925 ],
1926 "widgets_values_named": {
1927 "fps": 30,
1928 "bit_depth": "auto",
1929 "color_space": "sRGB"
1930 }
1931 },
1932 {
1933 "id": 330,
1934 "type": "SaveVideo",
1935 "pos": [
1936 -1380,
1937 1710
1938 ],
1939 "size": [
1940 280,
1941 620
1942 ],
1943 "flags": [],
1944 "order": 18,
1945 "mode": 4,
1946 "inputs": [
1947 {
1948 "localized_name": "video",
1949 "name": "video",
1950 "type": "VIDEO",
1951 "link": 799
1952 }
1953 ],
1954 "outputs": [
1955 {
1956 "localized_name": "video",
1957 "name": "video",
1958 "type": "VIDEO",
1959 "links": null
1960 }
1961 ],
1962 "properties": {
1963 "Node name for S&R": "SaveVideo"
1964 },
1965 "widgets_values": [
1966 "video/ComfyUI",
1967 "auto",
1968 "auto",
1969 "auto"
1970 ],
1971 "widgets_values_named": {
1972 "filename_prefix": "video/ComfyUI",
1973 "format": "auto",
1974 "format.codec": "auto",
1975 "codec": "auto"
1976 }
1977 },
1978 {
1979 "id": 333,
1980 "type": "CreateVideo",
1981 "pos": [
1982 -2450,
1983 1730
1984 ],
1985 "size": [
1986 300,
1987 130
1988 ],
1989 "flags": [],
1990 "order": 21,
1991 "mode": 4,
1992 "inputs": [
1993 {
1994 "localized_name": "images",
1995 "name": "images",
1996 "type": "IMAGE",
1997 "link": 803
1998 },
1999 {
2000 "localized_name": "audio",
2001 "name": "audio",
2002 "shape": 7,
2003 "type": "AUDIO",
2004 "link": null
2005 },
2006 {
2007 "localized_name": "fps",
2008 "name": "fps",
2009 "type": "FLOAT",
2010 "widget": {
2011 "name": "fps"
2012 },
2013 "link": 814
2014 }
2015 ],
2016 "outputs": [
2017 {
2018 "localized_name": "VIDEO",
2019 "name": "VIDEO",
2020 "type": "VIDEO",
2021 "links": [
2022 798
2023 ]
2024 }
2025 ],
2026 "properties": {
2027 "Node name for S&R": "CreateVideo"
2028 },
2029 "widgets_values": [
2030 30,
2031 "auto",
2032 "sRGB"
2033 ],
2034 "widgets_values_named": {
2035 "fps": 30,
2036 "bit_depth": "auto",
2037 "color_space": "sRGB"
2038 }
2039 },
2040 {
2041 "id": 328,
2042 "type": "OnnxDetectionModelLoader",
2043 "pos": [
2044 -2820,
2045 1960
2046 ],
2047 "size": [
2048 330,
2049 150
2050 ],
2051 "flags": [],
2052 "order": 3,
2053 "mode": 0,
2054 "inputs": [],
2055 "outputs": [
2056 {
2057 "localized_name": "model",
2058 "name": "model",
2059 "type": "POSEMODEL",
2060 "links": [
2061 804
2062 ]
2063 }
2064 ],
2065 "properties": {
2066 "Node name for S&R": "OnnxDetectionModelLoader",
2067 "cnr_id": "ComfyUI-WanAnimatePreprocess",
2068 "aux_id": "kijai/ComfyUI-WanAnimatePreprocess",
2069 "ver": "e63d6e71ae4c271f3f81211a7ca7f87607b7e50d",
2070 "ue_properties": {
2071 "widget_ue_connectable": [],
2072 "version": "7.3",
2073 "input_ue_unconnectable": []
2074 }
2075 },
2076 "widgets_values": [
2077 "vitpose-l-wholebody.onnx",
2078 "yolov10m.onnx",
2079 "CUDAExecutionProvider"
2080 ],
2081 "widgets_values_named": {
2082 "vitpose_model": "vitpose-l-wholebody.onnx",
2083 "yolo_model": "yolov10m.onnx",
2084 "onnx_device": "CUDAExecutionProvider"
2085 }
2086 },
2087 {
2088 "id": 329,
2089 "type": "SaveVideo",
2090 "pos": [
2091 -2440,
2092 1920
2093 ],
2094 "size": [
2095 300,
2096 430
2097 ],
2098 "flags": [],
2099 "order": 17,
2100 "mode": 4,
2101 "inputs": [
2102 {
2103 "localized_name": "video",
2104 "name": "video",
2105 "type": "VIDEO",
2106 "link": 798
2107 }
2108 ],
2109 "outputs": [
2110 {
2111 "localized_name": "video",
2112 "name": "video",
2113 "type": "VIDEO",
2114 "links": null
2115 }
2116 ],
2117 "properties": {
2118 "Node name for S&R": "SaveVideo"
2119 },
2120 "widgets_values": [
2121 "video/ComfyUI",
2122 "auto",
2123 "auto",
2124 "auto"
2125 ],
2126 "widgets_values_named": {
2127 "filename_prefix": "video/ComfyUI",
2128 "format": "auto",
2129 "format.codec": "auto",
2130 "codec": "auto"
2131 }
2132 },
2133 {
2134 "id": 339,
2135 "type": "CreateVideo",
2136 "pos": [
2137 -1720,
2138 920
2139 ],
2140 "size": [
2141 280,
2142 130
2143 ],
2144 "flags": [],
2145 "order": 26,
2146 "mode": 4,
2147 "inputs": [
2148 {
2149 "localized_name": "images",
2150 "name": "images",
2151 "type": "IMAGE",
2152 "link": 812
2153 },
2154 {
2155 "localized_name": "audio",
2156 "name": "audio",
2157 "shape": 7,
2158 "type": "AUDIO",
2159 "link": null
2160 },
2161 {
2162 "localized_name": "fps",
2163 "name": "fps",
2164 "type": "FLOAT",
2165 "widget": {
2166 "name": "fps"
2167 },
2168 "link": 815
2169 }
2170 ],
2171 "outputs": [
2172 {
2173 "localized_name": "VIDEO",
2174 "name": "VIDEO",
2175 "type": "VIDEO",
2176 "links": [
2177 800
2178 ]
2179 }
2180 ],
2181 "properties": {
2182 "Node name for S&R": "CreateVideo"
2183 },
2184 "widgets_values": [
2185 30,
2186 "auto",
2187 "sRGB"
2188 ],
2189 "widgets_values_named": {
2190 "fps": 30,
2191 "bit_depth": "auto",
2192 "color_space": "sRGB"
2193 }
2194 },
2195 {
2196 "id": 3,
2197 "type": "VAELoader",
2198 "pos": [
2199 -3030,
2200 -390
2201 ],
2202 "size": [
2203 310,
2204 100
2205 ],
2206 "flags": [],
2207 "order": 4,
2208 "mode": 0,
2209 "inputs": [],
2210 "outputs": [
2211 {
2212 "localized_name": "VAE",
2213 "name": "VAE",
2214 "type": "VAE",
2215 "slot_index": 0,
2216 "links": [
2217 863,
2218 864
2219 ]
2220 }
2221 ],
2222 "properties": {
2223 "Node name for S&R": "VAELoader",
2224 "cnr_id": "comfy-core",
2225 "ver": "0.3.59",
2226 "models": [
2227 {
2228 "name": "wan_2.1_vae.safetensors",
2229 "url": "https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors",
2230 "directory": "vae"
2231 }
2232 ]
2233 },
2234 "widgets_values": [
2235 "wan_2.1_vae.safetensors"
2236 ],
2237 "widgets_values_named": {
2238 "vae_name": "wan_2.1_vae.safetensors"
2239 }
2240 },
2241 {
2242 "id": 20,
2243 "type": "UNETLoader",
2244 "pos": [
2245 -3380,
2246 -680
2247 ],
2248 "size": [
2249 310,
2250 130
2251 ],
2252 "flags": [],
2253 "order": 5,
2254 "mode": 0,
2255 "inputs": [],
2256 "outputs": [
2257 {
2258 "localized_name": "MODEL",
2259 "name": "MODEL",
2260 "type": "MODEL",
2261 "slot_index": 0,
2262 "links": [
2263 16
2264 ]
2265 }
2266 ],
2267 "properties": {
2268 "Node name for S&R": "UNETLoader",
2269 "cnr_id": "comfy-core",
2270 "ver": "0.3.59",
2271 "models": [
2272 {
2273 "name": "Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors",
2274 "url": "https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/resolve/main/Wan22Animate/Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors",
2275 "directory": "diffusion_models"
2276 }
2277 ]
2278 },
2279 "widgets_values": [
2280 "Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors",
2281 "default"
2282 ],
2283 "widgets_values_named": {
2284 "unet_name": "Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors",
2285 "weight_dtype": "default"
2286 }
2287 },
2288 {
2289 "id": 60,
2290 "type": "ModelSamplingSD3",
2291 "pos": [
2292 -3040,
2293 -270
2294 ],
2295 "size": [
2296 320,
2297 100
2298 ],
2299 "flags": [],
2300 "order": 11,
2301 "mode": 0,
2302 "inputs": [
2303 {
2304 "localized_name": "model",
2305 "name": "model",
2306 "type": "MODEL",
2307 "link": 227
2308 }
2309 ],
2310 "outputs": [
2311 {
2312 "localized_name": "MODEL",
2313 "name": "MODEL",
2314 "type": "MODEL",
2315 "slot_index": 0,
2316 "links": [
2317 861
2318 ]
2319 }
2320 ],
2321 "properties": {
2322 "Node name for S&R": "ModelSamplingSD3",
2323 "cnr_id": "comfy-core",
2324 "ver": "0.3.59"
2325 },
2326 "widgets_values": [
2327 8
2328 ],
2329 "widgets_values_named": {
2330 "shift": 8
2331 }
2332 },
2333 {
2334 "id": 9,
2335 "type": "CLIPVisionEncode",
2336 "pos": [
2337 -2570,
2338 -80
2339 ],
2340 "size": [
2341 260,
2342 120
2343 ],
2344 "flags": {
2345 "collapsed": false
2346 },
2347 "order": 12,
2348 "mode": 0,
2349 "inputs": [
2350 {
2351 "localized_name": "clip_vision",
2352 "name": "clip_vision",
2353 "type": "CLIP_VISION",
2354 "link": 4
2355 },
2356 {
2357 "localized_name": "image",
2358 "name": "image",
2359 "type": "IMAGE",
2360 "link": 829
2361 }
2362 ],
2363 "outputs": [
2364 {
2365 "localized_name": "CLIP_VISION_OUTPUT",
2366 "name": "CLIP_VISION_OUTPUT",
2367 "type": "CLIP_VISION_OUTPUT",
2368 "slot_index": 0,
2369 "links": [
2370 867
2371 ]
2372 }
2373 ],
2374 "properties": {
2375 "Node name for S&R": "CLIPVisionEncode",
2376 "cnr_id": "comfy-core",
2377 "ver": "0.3.59"
2378 },
2379 "widgets_values": [
2380 "none"
2381 ],
2382 "widgets_values_named": {
2383 "crop": "none"
2384 }
2385 },
2386 {
2387 "id": 355,
2388 "type": "KSampler",
2389 "pos": [
2390 -1680,
2391 -680
2392 ],
2393 "size": [
2394 280,
2395 690
2396 ],
2397 "flags": [],
2398 "order": 31,
2399 "mode": 0,
2400 "inputs": [
2401 {
2402 "localized_name": "model",
2403 "name": "model",
2404 "type": "MODEL",
2405 "link": 861
2406 },
2407 {
2408 "localized_name": "positive",
2409 "name": "positive",
2410 "type": "CONDITIONING",
2411 "link": 852
2412 },
2413 {
2414 "localized_name": "negative",
2415 "name": "negative",
2416 "type": "CONDITIONING",
2417 "link": 853
2418 },
2419 {
2420 "localized_name": "latent_image",
2421 "name": "latent_image",
2422 "type": "LATENT",
2423 "link": 854
2424 }
2425 ],
2426 "outputs": [
2427 {
2428 "localized_name": "LATENT",
2429 "name": "LATENT",
2430 "type": "LATENT",
2431 "links": [
2432 855
2433 ]
2434 }
2435 ],
2436 "properties": {
2437 "Node name for S&R": "KSampler",
2438 "cnr_id": "comfy-core",
2439 "ver": "0.3.59"
2440 },
2441 "widgets_values": [
2442 777171427287516,
2443 "randomize",
2444 6,
2445 1,
2446 "euler",
2447 "simple",
2448 1
2449 ],
2450 "widgets_values_named": {
2451 "seed": 777171427287516,
2452 "control_after_generate": "randomize",
2453 "steps": 6,
2454 "cfg": 1,
2455 "sampler_name": "euler",
2456 "scheduler": "simple",
2457 "denoise": 1
2458 }
2459 },
2460 {
2461 "id": 353,
2462 "type": "TrimVideoLatent",
2463 "pos": [
2464 -1350,
2465 -680
2466 ],
2467 "size": [
2468 280,
2469 100
2470 ],
2471 "flags": [],
2472 "order": 29,
2473 "mode": 0,
2474 "inputs": [
2475 {
2476 "localized_name": "samples",
2477 "name": "samples",
2478 "type": "LATENT",
2479 "link": 855
2480 },
2481 {
2482 "localized_name": "trim_amount",
2483 "name": "trim_amount",
2484 "type": "INT",
2485 "widget": {
2486 "name": "trim_amount"
2487 },
2488 "link": 856
2489 }
2490 ],
2491 "outputs": [
2492 {
2493 "localized_name": "LATENT",
2494 "name": "LATENT",
2495 "type": "LATENT",
2496 "links": [
2497 858
2498 ]
2499 }
2500 ],
2501 "properties": {
2502 "Node name for S&R": "TrimVideoLatent",
2503 "cnr_id": "comfy-core",
2504 "ver": "0.3.59"
2505 },
2506 "widgets_values": [
2507 0
2508 ],
2509 "widgets_values_named": {
2510 "trim_amount": 0
2511 }
2512 },
2513 {
2514 "id": 354,
2515 "type": "VAEDecode",
2516 "pos": [
2517 -1300,
2518 -560
2519 ],
2520 "size": [
2521 220,
2522 90
2523 ],
2524 "flags": [],
2525 "order": 30,
2526 "mode": 0,
2527 "inputs": [
2528 {
2529 "localized_name": "samples",
2530 "name": "samples",
2531 "type": "LATENT",
2532 "link": 858
2533 },
2534 {
2535 "localized_name": "vae",
2536 "name": "vae",
2537 "type": "VAE",
2538 "link": 863
2539 }
2540 ],
2541 "outputs": [
2542 {
2543 "localized_name": "IMAGE",
2544 "name": "IMAGE",
2545 "type": "IMAGE",
2546 "slot_index": 0,
2547 "links": [
2548 859
2549 ]
2550 }
2551 ],
2552 "properties": {
2553 "Node name for S&R": "VAEDecode",
2554 "cnr_id": "comfy-core",
2555 "ver": "0.3.59"
2556 }
2557 },
2558 {
2559 "id": 358,
2560 "type": "ImageFromBatch",
2561 "pos": [
2562 -1350,
2563 -440
2564 ],
2565 "size": [
2566 280,
2567 120
2568 ],
2569 "flags": [],
2570 "order": 34,
2571 "mode": 0,
2572 "inputs": [
2573 {
2574 "localized_name": "image",
2575 "name": "image",
2576 "type": "IMAGE",
2577 "link": 859
2578 },
2579 {
2580 "localized_name": "batch_index",
2581 "name": "batch_index",
2582 "type": "INT",
2583 "widget": {
2584 "name": "batch_index"
2585 },
2586 "link": 860
2587 }
2588 ],
2589 "outputs": [
2590 {
2591 "localized_name": "IMAGE",
2592 "name": "IMAGE",
2593 "type": "IMAGE",
2594 "links": [
2595 857
2596 ]
2597 }
2598 ],
2599 "properties": {
2600 "Node name for S&R": "ImageFromBatch",
2601 "cnr_id": "comfy-core",
2602 "ver": "0.3.59"
2603 },
2604 "widgets_values": [
2605 0,
2606 4096
2607 ],
2608 "widgets_values_named": {
2609 "batch_index": 0,
2610 "length": 4096
2611 }
2612 },
2613 {
2614 "id": 342,
2615 "type": "ImageScale",
2616 "pos": [
2617 -3380,
2618 -70
2619 ],
2620 "size": [
2621 280,
2622 180
2623 ],
2624 "flags": [],
2625 "order": 28,
2626 "mode": 0,
2627 "inputs": [
2628 {
2629 "localized_name": "image",
2630 "name": "image",
2631 "type": "IMAGE",
2632 "link": 825
2633 },
2634 {
2635 "localized_name": "width",
2636 "name": "width",
2637 "type": "INT",
2638 "widget": {
2639 "name": "width"
2640 },
2641 "link": 826
2642 },
2643 {
2644 "localized_name": "height",
2645 "name": "height",
2646 "type": "INT",
2647 "widget": {
2648 "name": "height"
2649 },
2650 "link": 827
2651 }
2652 ],
2653 "outputs": [
2654 {
2655 "localized_name": "IMAGE",
2656 "name": "IMAGE",
2657 "type": "IMAGE",
2658 "links": [
2659 829,
2660 868
2661 ]
2662 }
2663 ],
2664 "title": "Resize Reference Image",
2665 "properties": {
2666 "Node name for S&R": "ImageScale",
2667 "cnr_id": "comfy-core",
2668 "ver": "0.3.66",
2669 "ue_properties": {
2670 "widget_ue_connectable": [],
2671 "input_ue_unconnectable": [],
2672 "version": "7.3"
2673 }
2674 },
2675 "widgets_values": [
2676 "lanczos",
2677 832,
2678 480,
2679 "center"
2680 ],
2681 "widgets_values_named": {
2682 "upscale_method": "lanczos",
2683 "width": 832,
2684 "height": 480,
2685 "crop": "center"
2686 }
2687 },
2688 {
2689 "id": 356,
2690 "type": "WanAnimateToVideo",
2691 "pos": [
2692 -2080,
2693 -670
2694 ],
2695 "size": [
2696 330,
2697 400
2698 ],
2699 "flags": [],
2700 "order": 32,
2701 "mode": 0,
2702 "inputs": [
2703 {
2704 "localized_name": "positive",
2705 "name": "positive",
2706 "type": "CONDITIONING",
2707 "link": 865
2708 },
2709 {
2710 "localized_name": "negative",
2711 "name": "negative",
2712 "type": "CONDITIONING",
2713 "link": 866
2714 },
2715 {
2716 "localized_name": "vae",
2717 "name": "vae",
2718 "type": "VAE",
2719 "link": 864
2720 },
2721 {
2722 "localized_name": "clip_vision_output",
2723 "name": "clip_vision_output",
2724 "shape": 7,
2725 "type": "CLIP_VISION_OUTPUT",
2726 "link": 867
2727 },
2728 {
2729 "localized_name": "reference_image",
2730 "name": "reference_image",
2731 "shape": 7,
2732 "type": "IMAGE",
2733 "link": 868
2734 },
2735 {
2736 "localized_name": "face_video",
2737 "name": "face_video",
2738 "shape": 7,
2739 "type": "IMAGE",
2740 "link": 869
2741 },
2742 {
2743 "localized_name": "pose_video",
2744 "name": "pose_video",
2745 "shape": 7,
2746 "type": "IMAGE",
2747 "link": 870
2748 },
2749 {
2750 "localized_name": "background_video",
2751 "name": "background_video",
2752 "shape": 7,
2753 "type": "IMAGE",
2754 "link": null
2755 },
2756 {
2757 "localized_name": "character_mask",
2758 "name": "character_mask",
2759 "shape": 7,
2760 "type": "MASK",
2761 "link": null
2762 },
2763 {
2764 "localized_name": "continue_motion",
2765 "name": "continue_motion",
2766 "shape": 7,
2767 "type": "IMAGE",
2768 "link": null
2769 },
2770 {
2771 "localized_name": "width",
2772 "name": "width",
2773 "type": "INT",
2774 "widget": {
2775 "name": "width"
2776 },
2777 "link": 871
2778 },
2779 {
2780 "localized_name": "height",
2781 "name": "height",
2782 "type": "INT",
2783 "widget": {
2784 "name": "height"
2785 },
2786 "link": 872
2787 },
2788 {
2789 "localized_name": "length",
2790 "name": "length",
2791 "type": "INT",
2792 "widget": {
2793 "name": "length"
2794 },
2795 "link": 876
2796 }
2797 ],
2798 "outputs": [
2799 {
2800 "localized_name": "positive",
2801 "name": "positive",
2802 "type": "CONDITIONING",
2803 "links": [
2804 852
2805 ]
2806 },
2807 {
2808 "localized_name": "negative",
2809 "name": "negative",
2810 "type": "CONDITIONING",
2811 "links": [
2812 853
2813 ]
2814 },
2815 {
2816 "localized_name": "latent",
2817 "name": "latent",
2818 "type": "LATENT",
2819 "links": [
2820 854
2821 ]
2822 },
2823 {
2824 "localized_name": "trim_latent",
2825 "name": "trim_latent",
2826 "type": "INT",
2827 "links": [
2828 856
2829 ]
2830 },
2831 {
2832 "localized_name": "trim_image",
2833 "name": "trim_image",
2834 "type": "INT",
2835 "links": [
2836 860
2837 ]
2838 },
2839 {
2840 "localized_name": "video_frame_offset",
2841 "name": "video_frame_offset",
2842 "type": "INT",
2843 "links": []
2844 }
2845 ],
2846 "properties": {
2847 "Node name for S&R": "WanAnimateToVideo",
2848 "cnr_id": "comfy-core",
2849 "ver": "0.3.59"
2850 },
2851 "widgets_values": [
2852 832,
2853 480,
2854 77,
2855 1,
2856 5,
2857 0
2858 ],
2859 "widgets_values_named": {
2860 "width": 832,
2861 "height": 480,
2862 "length": 77,
2863 "batch_size": 1,
2864 "continue_motion_max_frames": 5,
2865 "video_frame_offset": 0
2866 }
2867 },
2868 {
2869 "id": 357,
2870 "type": "CreateVideo",
2871 "pos": [
2872 -1280,
2873 370
2874 ],
2875 "size": [
2876 280,
2877 130
2878 ],
2879 "flags": [],
2880 "order": 33,
2881 "mode": 0,
2882 "inputs": [
2883 {
2884 "localized_name": "images",
2885 "name": "images",
2886 "type": "IMAGE",
2887 "link": 857
2888 },
2889 {
2890 "localized_name": "audio",
2891 "name": "audio",
2892 "shape": 7,
2893 "type": "AUDIO",
2894 "link": 862
2895 },
2896 {
2897 "localized_name": "fps",
2898 "name": "fps",
2899 "type": "FLOAT",
2900 "widget": {
2901 "name": "fps"
2902 },
2903 "link": 874
2904 }
2905 ],
2906 "outputs": [
2907 {
2908 "localized_name": "VIDEO",
2909 "name": "VIDEO",
2910 "type": "VIDEO",
2911 "links": [
2912 873
2913 ]
2914 }
2915 ],
2916 "properties": {
2917 "Node name for S&R": "CreateVideo",
2918 "cnr_id": "comfy-core",
2919 "ver": "0.3.59"
2920 },
2921 "widgets_values": [
2922 30,
2923 "auto",
2924 "sRGB"
2925 ],
2926 "widgets_values_named": {
2927 "fps": 30,
2928 "bit_depth": "auto",
2929 "color_space": "sRGB"
2930 }
2931 },
2932 {
2933 "id": 336,
2934 "type": "Note",
2935 "pos": [
2936 -2790,
2937 690
2938 ],
2939 "size": [
2940 330,
2941 100
2942 ],
2943 "flags": [],
2944 "order": 6,
2945 "mode": 0,
2946 "inputs": [],
2947 "outputs": [],
2948 "title": "Note: SAM2 detection",
2949 "properties": {
2950 "ue_properties": {
2951 "widget_ue_connectable": [],
2952 "version": "7.3",
2953 "input_ue_unconnectable": []
2954 }
2955 },
2956 "widgets_values": [
2957 "You can use either the detected bbox or the kay_frame_body_points to positive coordinates, if one fails to creater proper mask, try the other"
2958 ],
2959 "widgets_values_named": {
2960 "text": "You can use either the detected bbox or the kay_frame_body_points to positive coordinates, if one fails to creater proper mask, try the other"
2961 },
2962 "color": "#222",
2963 "bgcolor": "#000"
2964 },
2965 {
2966 "id": 338,
2967 "type": "ImageScale",
2968 "pos": [
2969 -3470,
2970 890
2971 ],
2972 "size": [
2973 280,
2974 180
2975 ],
2976 "flags": [],
2977 "order": 25,
2978 "mode": 0,
2979 "inputs": [
2980 {
2981 "localized_name": "image",
2982 "name": "image",
2983 "type": "IMAGE",
2984 "link": 817
2985 },
2986 {
2987 "localized_name": "width",
2988 "name": "width",
2989 "type": "INT",
2990 "widget": {
2991 "name": "width"
2992 },
2993 "link": 818
2994 },
2995 {
2996 "localized_name": "height",
2997 "name": "height",
2998 "type": "INT",
2999 "widget": {
3000 "name": "height"
3001 },
3002 "link": 819
3003 }
3004 ],
3005 "outputs": [
3006 {
3007 "localized_name": "IMAGE",
3008 "name": "IMAGE",
3009 "type": "IMAGE",
3010 "links": [
3011 801,
3012 811
3013 ]
3014 }
3015 ],
3016 "title": "Resize Input Video",
3017 "properties": {
3018 "Node name for S&R": "ImageScale",
3019 "cnr_id": "comfy-core",
3020 "ver": "0.3.66",
3021 "ue_properties": {
3022 "widget_ue_connectable": [],
3023 "input_ue_unconnectable": [],
3024 "version": "7.3"
3025 }
3026 },
3027 "widgets_values": [
3028 "lanczos",
3029 832,
3030 480,
3031 "center"
3032 ],
3033 "widgets_values_named": {
3034 "upscale_method": "lanczos",
3035 "width": 832,
3036 "height": 480,
3037 "crop": "center"
3038 }
3039 },
3040 {
3041 "id": 337,
3042 "type": "GetImageSizeAndCount",
3043 "pos": [
3044 -3430,
3045 1720
3046 ],
3047 "size": [
3048 200,
3049 130
3050 ],
3051 "flags": [],
3052 "order": 24,
3053 "mode": 0,
3054 "inputs": [
3055 {
3056 "localized_name": "image",
3057 "name": "image",
3058 "type": "IMAGE",
3059 "link": 811
3060 }
3061 ],
3062 "outputs": [
3063 {
3064 "localized_name": "image",
3065 "name": "image",
3066 "type": "IMAGE",
3067 "links": [
3068 795,
3069 805
3070 ]
3071 },
3072 {
3073 "label": "720 width",
3074 "localized_name": "width",
3075 "name": "width",
3076 "type": "INT",
3077 "links": [
3078 806,
3079 809
3080 ]
3081 },
3082 {
3083 "label": "1280 height",
3084 "localized_name": "height",
3085 "name": "height",
3086 "type": "INT",
3087 "links": [
3088 807,
3089 810
3090 ]
3091 },
3092 {
3093 "label": "121 count",
3094 "localized_name": "count",
3095 "name": "count",
3096 "type": "INT",
3097 "links": []
3098 }
3099 ],
3100 "properties": {
3101 "Node name for S&R": "GetImageSizeAndCount",
3102 "cnr_id": "comfyui-kjnodes",
3103 "ver": "bb205d809b467307b8ec3bb1a22680a4873187f8",
3104 "ue_properties": {
3105 "widget_ue_connectable": [],
3106 "version": "7.3",
3107 "input_ue_unconnectable": []
3108 }
3109 }
3110 },
3111 {
3112 "id": 359,
3113 "type": "MarkdownNote",
3114 "pos": [
3115 -1030,
3116 860
3117 ],
3118 "size": [
3119 340,
3120 310
3121 ],
3122 "flags": [],
3123 "order": 7,
3124 "mode": 0,
3125 "inputs": [],
3126 "outputs": [],
3127 "title": "Enable Bypassed Node",
3128 "properties": [],
3129 "widgets_values": [
3130 "The pink nodes are in Bypassed status. They are for previewing the output of object detection. You can select them and then use Ctrl-B to enable or disable."
3131 ],
3132 "widgets_values_named": {
3133 "text": "The pink nodes are in Bypassed status. They are for previewing the output of object detection. You can select them and then use Ctrl-B to enable or disable."
3134 },
3135 "color": "#222",
3136 "bgcolor": "#000"
3137 }
3138 ],
3139 "groups": [
3140 {
3141 "id": 18,
3142 "title": "Background Mask",
3143 "bounding": [
3144 -2830,
3145 820,
3146 1750,
3147 760
3148 ],
3149 "color": "#3f789e",
3150 "flags": []
3151 },
3152 {
3153 "id": 19,
3154 "title": "Pose and Face Detection",
3155 "bounding": [
3156 -2830,
3157 1620,
3158 710,
3159 750
3160 ],
3161 "color": "#3f789e",
3162 "flags": []
3163 },
3164 {
3165 "id": 20,
3166 "title": "Pose",
3167 "bounding": [
3168 -2090,
3169 1620,
3170 1020,
3171 740
3172 ],
3173 "color": "#3f789e",
3174 "flags": []
3175 },
3176 {
3177 "id": 23,
3178 "title": "Wan2.2 Animate Video Generation",
3179 "bounding": [
3180 -3520,
3181 -870,
3182 2510,
3183 1110
3184 ],
3185 "color": "#3f789e",
3186 "flags": []
3187 },
3188 {
3189 "id": 21,
3190 "title": "Model",
3191 "bounding": [
3192 -3390,
3193 -760,
3194 700,
3195 610
3196 ],
3197 "color": "#3f789e",
3198 "flags": []
3199 },
3200 {
3201 "id": 22,
3202 "title": "Prompt",
3203 "bounding": [
3204 -2670,
3205 -760,
3206 460,
3207 610
3208 ],
3209 "color": "#3f789e",
3210 "flags": []
3211 },
3212 {
3213 "id": 24,
3214 "title": "Object Detection",
3215 "bounding": [
3216 -3530,
3217 580,
3218 2470,
3219 1850
3220 ],
3221 "color": "#3f789e",
3222 "flags": []
3223 }
3224 ],
3225 "links": [
3226 {
3227 "id": 227,
3228 "origin_id": 99,
3229 "origin_slot": 0,
3230 "target_id": 60,
3231 "target_slot": 0,
3232 "type": "MODEL"
3233 },
3234 {
3235 "id": 1,
3236 "origin_id": 2,
3237 "origin_slot": 0,
3238 "target_id": 1,
3239 "target_slot": 0,
3240 "type": "CLIP"
3241 },
3242 {
3243 "id": 16,
3244 "origin_id": 20,
3245 "origin_slot": 0,
3246 "target_id": 18,
3247 "target_slot": 0,
3248 "type": "MODEL"
3249 },
3250 {
3251 "id": 226,
3252 "origin_id": 18,
3253 "origin_slot": 0,
3254 "target_id": 99,
3255 "target_slot": 0,
3256 "type": "MODEL"
3257 },
3258 {
3259 "id": 4,
3260 "origin_id": 4,
3261 "origin_slot": 0,
3262 "target_id": 9,
3263 "target_slot": 0,
3264 "type": "CLIP_VISION"
3265 },
3266 {
3267 "id": 829,
3268 "origin_id": 342,
3269 "origin_slot": 0,
3270 "target_id": 9,
3271 "target_slot": 1,
3272 "type": "IMAGE"
3273 },
3274 {
3275 "id": 793,
3276 "origin_id": 327,
3277 "origin_slot": 0,
3278 "target_id": 325,
3279 "target_slot": 0,
3280 "type": "MASK"
3281 },
3282 {
3283 "id": 794,
3284 "origin_id": 324,
3285 "origin_slot": 0,
3286 "target_id": 326,
3287 "target_slot": 0,
3288 "type": "SAM2MODEL"
3289 },
3290 {
3291 "id": 795,
3292 "origin_id": 337,
3293 "origin_slot": 0,
3294 "target_id": 326,
3295 "target_slot": 1,
3296 "type": "IMAGE"
3297 },
3298 {
3299 "id": 796,
3300 "origin_id": 334,
3301 "origin_slot": 3,
3302 "target_id": 326,
3303 "target_slot": 4,
3304 "type": "BBOX"
3305 },
3306 {
3307 "id": 797,
3308 "origin_id": 326,
3309 "origin_slot": 0,
3310 "target_id": 327,
3311 "target_slot": 0,
3312 "type": "MASK"
3313 },
3314 {
3315 "id": 801,
3316 "origin_id": 338,
3317 "origin_slot": 0,
3318 "target_id": 332,
3319 "target_slot": 0,
3320 "type": "IMAGE"
3321 },
3322 {
3323 "id": 802,
3324 "origin_id": 325,
3325 "origin_slot": 0,
3326 "target_id": 332,
3327 "target_slot": 1,
3328 "type": "MASK"
3329 },
3330 {
3331 "id": 803,
3332 "origin_id": 334,
3333 "origin_slot": 1,
3334 "target_id": 333,
3335 "target_slot": 0,
3336 "type": "IMAGE"
3337 },
3338 {
3339 "id": 811,
3340 "origin_id": 338,
3341 "origin_slot": 0,
3342 "target_id": 337,
3343 "target_slot": 0,
3344 "type": "IMAGE"
3345 },
3346 {
3347 "id": 812,
3348 "origin_id": 332,
3349 "origin_slot": 0,
3350 "target_id": 339,
3351 "target_slot": 0,
3352 "type": "IMAGE"
3353 },
3354 {
3355 "id": 804,
3356 "origin_id": 328,
3357 "origin_slot": 0,
3358 "target_id": 334,
3359 "target_slot": 0,
3360 "type": "POSEMODEL"
3361 },
3362 {
3363 "id": 805,
3364 "origin_id": 337,
3365 "origin_slot": 0,
3366 "target_id": 334,
3367 "target_slot": 1,
3368 "type": "IMAGE"
3369 },
3370 {
3371 "id": 806,
3372 "origin_id": 337,
3373 "origin_slot": 1,
3374 "target_id": 334,
3375 "target_slot": 3,
3376 "type": "INT"
3377 },
3378 {
3379 "id": 807,
3380 "origin_id": 337,
3381 "origin_slot": 2,
3382 "target_id": 334,
3383 "target_slot": 4,
3384 "type": "INT"
3385 },
3386 {
3387 "id": 813,
3388 "origin_id": 335,
3389 "origin_slot": 0,
3390 "target_id": 340,
3391 "target_slot": 0,
3392 "type": "IMAGE"
3393 },
3394 {
3395 "id": 18,
3396 "origin_id": 2,
3397 "origin_slot": 0,
3398 "target_id": 21,
3399 "target_slot": 0,
3400 "type": "CLIP"
3401 },
3402 {
3403 "id": 808,
3404 "origin_id": 334,
3405 "origin_slot": 0,
3406 "target_id": 335,
3407 "target_slot": 0,
3408 "type": "POSEDATA"
3409 },
3410 {
3411 "id": 809,
3412 "origin_id": 337,
3413 "origin_slot": 1,
3414 "target_id": 335,
3415 "target_slot": 1,
3416 "type": "INT"
3417 },
3418 {
3419 "id": 810,
3420 "origin_id": 337,
3421 "origin_slot": 2,
3422 "target_id": 335,
3423 "target_slot": 2,
3424 "type": "INT"
3425 },
3426 {
3427 "id": 814,
3428 "origin_id": -10,
3429 "origin_slot": 0,
3430 "target_id": 333,
3431 "target_slot": 2,
3432 "type": "FLOAT"
3433 },
3434 {
3435 "id": 815,
3436 "origin_id": -10,
3437 "origin_slot": 0,
3438 "target_id": 339,
3439 "target_slot": 2,
3440 "type": "FLOAT"
3441 },
3442 {
3443 "id": 816,
3444 "origin_id": -10,
3445 "origin_slot": 0,
3446 "target_id": 340,
3447 "target_slot": 2,
3448 "type": "FLOAT"
3449 },
3450 {
3451 "id": 817,
3452 "origin_id": -10,
3453 "origin_slot": 1,
3454 "target_id": 338,
3455 "target_slot": 0,
3456 "type": "IMAGE"
3457 },
3458 {
3459 "id": 825,
3460 "origin_id": -10,
3461 "origin_slot": 4,
3462 "target_id": 342,
3463 "target_slot": 0,
3464 "type": "IMAGE"
3465 },
3466 {
3467 "id": 838,
3468 "origin_id": -10,
3469 "origin_slot": 5,
3470 "target_id": 21,
3471 "target_slot": 1,
3472 "type": "STRING"
3473 },
3474 {
3475 "id": 852,
3476 "origin_id": 356,
3477 "origin_slot": 0,
3478 "target_id": 355,
3479 "target_slot": 1,
3480 "type": "CONDITIONING"
3481 },
3482 {
3483 "id": 853,
3484 "origin_id": 356,
3485 "origin_slot": 1,
3486 "target_id": 355,
3487 "target_slot": 2,
3488 "type": "CONDITIONING"
3489 },
3490 {
3491 "id": 854,
3492 "origin_id": 356,
3493 "origin_slot": 2,
3494 "target_id": 355,
3495 "target_slot": 3,
3496 "type": "LATENT"
3497 },
3498 {
3499 "id": 855,
3500 "origin_id": 355,
3501 "origin_slot": 0,
3502 "target_id": 353,
3503 "target_slot": 0,
3504 "type": "LATENT"
3505 },
3506 {
3507 "id": 856,
3508 "origin_id": 356,
3509 "origin_slot": 3,
3510 "target_id": 353,
3511 "target_slot": 1,
3512 "type": "INT"
3513 },
3514 {
3515 "id": 857,
3516 "origin_id": 358,
3517 "origin_slot": 0,
3518 "target_id": 357,
3519 "target_slot": 0,
3520 "type": "IMAGE"
3521 },
3522 {
3523 "id": 858,
3524 "origin_id": 353,
3525 "origin_slot": 0,
3526 "target_id": 354,
3527 "target_slot": 0,
3528 "type": "LATENT"
3529 },
3530 {
3531 "id": 859,
3532 "origin_id": 354,
3533 "origin_slot": 0,
3534 "target_id": 358,
3535 "target_slot": 0,
3536 "type": "IMAGE"
3537 },
3538 {
3539 "id": 860,
3540 "origin_id": 356,
3541 "origin_slot": 4,
3542 "target_id": 358,
3543 "target_slot": 1,
3544 "type": "INT"
3545 },
3546 {
3547 "id": 861,
3548 "origin_id": 60,
3549 "origin_slot": 0,
3550 "target_id": 355,
3551 "target_slot": 0,
3552 "type": "MODEL"
3553 },
3554 {
3555 "id": 862,
3556 "origin_id": -10,
3557 "origin_slot": 6,
3558 "target_id": 357,
3559 "target_slot": 1,
3560 "type": "AUDIO"
3561 },
3562 {
3563 "id": 863,
3564 "origin_id": 3,
3565 "origin_slot": 0,
3566 "target_id": 354,
3567 "target_slot": 1,
3568 "type": "VAE"
3569 },
3570 {
3571 "id": 864,
3572 "origin_id": 3,
3573 "origin_slot": 0,
3574 "target_id": 356,
3575 "target_slot": 2,
3576 "type": "VAE"
3577 },
3578 {
3579 "id": 865,
3580 "origin_id": 21,
3581 "origin_slot": 0,
3582 "target_id": 356,
3583 "target_slot": 0,
3584 "type": "CONDITIONING"
3585 },
3586 {
3587 "id": 866,
3588 "origin_id": 1,
3589 "origin_slot": 0,
3590 "target_id": 356,
3591 "target_slot": 1,
3592 "type": "CONDITIONING"
3593 },
3594 {
3595 "id": 867,
3596 "origin_id": 9,
3597 "origin_slot": 0,
3598 "target_id": 356,
3599 "target_slot": 3,
3600 "type": "CLIP_VISION_OUTPUT"
3601 },
3602 {
3603 "id": 868,
3604 "origin_id": 342,
3605 "origin_slot": 0,
3606 "target_id": 356,
3607 "target_slot": 4,
3608 "type": "IMAGE"
3609 },
3610 {
3611 "id": 869,
3612 "origin_id": 334,
3613 "origin_slot": 1,
3614 "target_id": 356,
3615 "target_slot": 5,
3616 "type": "IMAGE"
3617 },
3618 {
3619 "id": 870,
3620 "origin_id": 335,
3621 "origin_slot": 0,
3622 "target_id": 356,
3623 "target_slot": 6,
3624 "type": "IMAGE"
3625 },
3626 {
3627 "id": 871,
3628 "origin_id": -10,
3629 "origin_slot": 2,
3630 "target_id": 356,
3631 "target_slot": 10,
3632 "type": "INT"
3633 },
3634 {
3635 "id": 872,
3636 "origin_id": -10,
3637 "origin_slot": 3,
3638 "target_id": 356,
3639 "target_slot": 11,
3640 "type": "INT"
3641 },
3642 {
3643 "id": 873,
3644 "origin_id": 357,
3645 "origin_slot": 0,
3646 "target_id": -20,
3647 "target_slot": 0,
3648 "type": "VIDEO"
3649 },
3650 {
3651 "id": 874,
3652 "origin_id": -10,
3653 "origin_slot": 0,
3654 "target_id": 357,
3655 "target_slot": 2,
3656 "type": "FLOAT"
3657 },
3658 {
3659 "id": 876,
3660 "origin_id": -10,
3661 "origin_slot": 7,
3662 "target_id": 356,
3663 "target_slot": 12,
3664 "type": "INT"
3665 },
3666 {
3667 "id": 800,
3668 "origin_id": 339,
3669 "origin_slot": 0,
3670 "target_id": 331,
3671 "target_slot": 0,
3672 "type": "VIDEO"
3673 },
3674 {
3675 "id": 799,
3676 "origin_id": 340,
3677 "origin_slot": 0,
3678 "target_id": 330,
3679 "target_slot": 0,
3680 "type": "VIDEO"
3681 },
3682 {
3683 "id": 798,
3684 "origin_id": 333,
3685 "origin_slot": 0,
3686 "target_id": 329,
3687 "target_slot": 0,
3688 "type": "VIDEO"
3689 },
3690 {
3691 "id": 826,
3692 "origin_id": -10,
3693 "origin_slot": 2,
3694 "target_id": 342,
3695 "target_slot": 1,
3696 "type": "INT"
3697 },
3698 {
3699 "id": 827,
3700 "origin_id": -10,
3701 "origin_slot": 3,
3702 "target_id": 342,
3703 "target_slot": 2,
3704 "type": "INT"
3705 },
3706 {
3707 "id": 818,
3708 "origin_id": -10,
3709 "origin_slot": 2,
3710 "target_id": 338,
3711 "target_slot": 1,
3712 "type": "INT"
3713 },
3714 {
3715 "id": 819,
3716 "origin_id": -10,
3717 "origin_slot": 3,
3718 "target_id": 338,
3719 "target_slot": 2,
3720 "type": "INT"
3721 }
3722 ],
3723 "extra": {
3724 "workflowRendererVersion": "Vue-corrected"
3725 }
3726 }
3727 ]
3728 },
3729 "config": [],
3730 "extra": {
3731 "ds": {
3732 "scale": 0.6912393592851539,
3733 "offset": [
3734 4866.452727567391,
3735 745.7231876111044
3736 ]
3737 },
3738 "frontendVersion": "1.53.6",
3739 "workflowRendererVersion": "Vue-corrected",
3740 "linearMode": false,
3741 "linearData": {
3742 "inputs": [
3743 [
3744 "301",
3745 "video"
3746 ],
3747 [
3748 "301",
3749 "videopreview"
3750 ],
3751 [
3752 "159",
3753 "value"
3754 ],
3755 [
3756 "160",
3757 "value"
3758 ],
3759 [
3760 "351",
3761 "string_b"
3762 ]
3763 ],
3764 "outputs": [
3765 "349",
3766 "19"
3767 ]
3768 },
3769 "VHS_latentpreview": false,
3770 "VHS_latentpreviewrate": 0,
3771 "VHS_MetadataImage": true,
3772 "VHS_KeepIntermediate": true
3773 },
3774 "version": 0.4
3775}