{ "id": "ba1df054-50a8-4da2-b45a-25b4dde3cc2f", "revision": 0, "last_node_id": 360, "last_link_id": 881, "nodes": [ { "id": 159, "type": "PrimitiveInt", "pos": [ -3870, -260 ], "size": [ 280, 100 ], "flags": {}, "order": 0, "mode": 0, "inputs": [ { "label": "target_width", "name": "value", "type": "INT", "widget": { "name": "value" }, "link": null } ], "outputs": [ { "name": "INT", "type": "INT", "links": [ 836 ] } ], "title": "Width", "properties": { "Node name for S&R": "PrimitiveInt", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 720, "fixed" ], "widgets_values_named": { "value": 720, "fixed": "fixed" } }, { "id": 160, "type": "PrimitiveInt", "pos": [ -3870, -120 ], "size": [ 280, 100 ], "flags": {}, "order": 1, "mode": 0, "inputs": [ { "label": "target_height", "name": "value", "type": "INT", "widget": { "name": "value" }, "link": null } ], "outputs": [ { "name": "INT", "type": "INT", "links": [ 837 ] } ], "title": "Height", "properties": { "Node name for S&R": "PrimitiveInt", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 1280, "fixed" ], "widgets_values_named": { "value": 1280, "fixed": "fixed" } }, { "id": 346, "type": "ImageFromBatch", "pos": [ -3850, 220 ], "size": [ 210, 40 ], "flags": { "collapsed": true }, "order": 5, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 840 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 881 ] } ], "properties": { "Node name for S&R": "ImageFromBatch" }, "widgets_values": [ 0, 1 ], "widgets_values_named": { "batch_index": 0, "length": 1 } }, { "id": 351, "type": "StringConcatenate", "pos": [ -3860, 270 ], "size": [ 340, 210 ], "flags": {}, "order": 2, "mode": 0, "inputs": [ { "label": "character_prompt", "name": "string_b", "type": "STRING", "widget": { "name": "string_b" }, "link": null } ], "outputs": [ { "name": "STRING", "type": "STRING", "links": [ 878 ] } ], "properties": { "Node name for S&R": "StringConcatenate" }, "widgets_values": [ "retain the composition of this image but turn the character into ", "the dancer is wearing a raincoat and rain boots, dancing in a puddle in the rain", "" ], "widgets_values_named": { "string_a": "retain the composition of this image but turn the character into ", "string_b": "the dancer is wearing a raincoat and rain boots, dancing in a puddle in the rain", "delimiter": "" } }, { "id": 349, "type": "SaveImage", "pos": [ -3080, 180 ], "size": [ 370, 600 ], "flags": {}, "order": 9, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 880 } ], "outputs": [ { "name": "images", "type": "IMAGE", "links": null } ], "title": "Preview Reference Image", "properties": {}, "widgets_values": [ "ComfyUI" ], "widgets_values_named": { "filename_prefix": "ComfyUI" } }, { "id": 301, "type": "VHS_LoadVideo", "pos": [ -4240, -510 ], "size": [ 330, 875.1111111111111 ], "flags": {}, "order": 3, "mode": 0, "inputs": [ { "name": "meta_batch", "shape": 7, "type": "VHS_BatchManager", "link": null }, { "name": "vae", "shape": 7, "type": "VAE", "link": null }, { "label": "input_video", "name": "video", "type": "COMBO", "widget": { "name": "video" }, "link": null }, { "label": "frame_load_cap", "name": "frame_load_cap", "type": "INT", "widget": { "name": "frame_load_cap" }, "link": null } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 835, 840 ] }, { "name": "frame_count", "type": "INT", "links": [ 877 ] }, { "name": "audio", "type": "AUDIO", "links": [ 847 ] }, { "name": "video_info", "type": "VHS_VIDEOINFO", "links": [ 769 ] } ], "title": "Input Video", "properties": { "Node name for S&R": "VHS_LoadVideo" }, "widgets_values": { "video": "templates_purz_wan22_animate_auto_full_scene.mp4", "force_rate": 0, "custom_width": 0, "custom_height": 0, "frame_load_cap": 0, "skip_first_frames": 0, "select_every_nth": 1, "format": "AnimateDiff", "videopreview": { "hidden": false, "paused": false, "params": { "force_rate": 0, "custom_width": 0, "custom_height": 0, "frame_load_cap": 0, "skip_first_frames": 0, "select_every_nth": 1, "filename": "templates_purz_wan22_animate_auto_full_scene.mp4", "type": "input", "format": "video/mp4" } } }, "widgets_values_named": { "video": "templates_purz_wan22_animate_auto_full_scene.mp4", "force_rate": 0, "custom_width": 0, "custom_height": 0, "frame_load_cap": 0, "skip_first_frames": 0, "select_every_nth": 1, "format": "AnimateDiff", "choose video to upload": null, "videopreview": { "hidden": false, "paused": false, "params": { "force_rate": 0, "custom_width": 0, "custom_height": 0, "frame_load_cap": 0, "skip_first_frames": 0, "select_every_nth": 1, "filename": "templates_purz_wan22_animate_auto_full_scene.mp4", "type": "input", "format": "video/mp4" } } } }, { "id": 314, "type": "VHS_VideoInfo", "pos": [ -3480, -400 ], "size": [ 240, 210 ], "flags": { "collapsed": true }, "order": 6, "mode": 0, "inputs": [ { "name": "video_info", "type": "VHS_VIDEOINFO", "link": 769 } ], "outputs": [ { "name": "source_fps🟨", "type": "FLOAT", "links": [ 834 ] }, { "name": "source_frame_count🟨", "type": "INT", "links": null }, { "name": "source_duration🟨", "type": "FLOAT", "links": null }, { "name": "source_width🟨", "type": "INT", "links": null }, { "name": "source_height🟨", "type": "INT", "links": null }, { "name": "loaded_fps🟦", "type": "FLOAT", "links": null }, { "name": "loaded_frame_count🟦", "type": "INT", "links": null }, { "name": "loaded_duration🟦", "type": "FLOAT", "links": null }, { "name": "loaded_width🟦", "type": "INT", "links": null }, { "name": "loaded_height🟦", "type": "INT", "links": null } ], "properties": { "Node name for S&R": "VHS_VideoInfo" }, "widgets_values": {} }, { "id": 19, "type": "SaveVideo", "pos": [ -2630, -500 ], "size": [ 700, 1400 ], "flags": {}, "order": 10, "mode": 0, "inputs": [ { "name": "video", "type": "VIDEO", "link": 839 } ], "outputs": [ { "name": "video", "type": "VIDEO", "links": null } ], "title": "Final Video", "properties": { "Node name for S&R": "SaveVideo", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ "video/Wan2.2_animate", "auto", "auto", "auto" ], "widgets_values_named": { "filename_prefix": "video/Wan2.2_animate", "format": "auto", "format.codec": "auto", "codec": "auto" } }, { "id": 352, "type": "MarkdownNote", "pos": [ -4940, -510 ], "size": [ 640, 1080 ], "flags": {}, "order": 4, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "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!" ], "widgets_values_named": { "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!" }, "color": "#222", "bgcolor": "#000" }, { "id": 344, "type": "b396d3e6-70cc-4a91-81db-6e0399a4edb6", "pos": [ -3010, -500 ], "size": [ 320, 500 ], "flags": {}, "order": 8, "mode": 0, "inputs": [ { "name": "fps", "type": "FLOAT", "widget": { "name": "fps" }, "link": 834 }, { "label": "input_video", "name": "image", "type": "IMAGE", "link": 835 }, { "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 836 }, { "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 837 }, { "label": "reference_image", "name": "image_1", "type": "IMAGE", "link": 879 }, { "name": "audio", "shape": 7, "type": "AUDIO", "link": 847 }, { "name": "length", "type": "INT", "widget": { "name": "length" }, "link": 877 } ], "outputs": [ { "name": "VIDEO", "type": "VIDEO", "links": [ 839 ] } ], "properties": { "previewExposures": [ { "name": "$$canvas-image-preview", "sourceNodeId": "355", "sourcePreviewName": "$$canvas-image-preview" } ] }, "widgets_values": [ 30, 832, 480, "the person is dancing", 77 ], "widgets_values_named": { "fps": 30, "width": 832, "height": 480, "text": "the person is dancing", "length": 77 } }, { "id": 360, "type": "GeminiNanoBanana2V2", "pos": [ -3490, 190 ], "size": [ 400, 398 ], "flags": {}, "order": 7, "mode": 0, "inputs": [ { "name": "prompt", "type": "STRING", "widget": { "name": "prompt" }, "link": 878 }, { "name": "model.images.image_1", "shape": 7, "type": "IMAGE", "link": 881 }, { "name": "model.images.image_2", "shape": 7, "type": "IMAGE", "link": null }, { "name": "model.files", "shape": 7, "type": "GEMINI_INPUT_FILES", "link": null } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 879, 880 ] }, { "name": "STRING", "type": "STRING", "links": null }, { "name": "thought_image", "type": "IMAGE", "links": null } ], "properties": { "Node name for S&R": "GeminiNanoBanana2V2" }, "widgets_values": [ "", "Nano Banana 2 (Gemini 3.1 Flash Image)", "auto", "1K", "MINIMAL", 42, "randomize", "IMAGE", "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.", 1, 0.95 ], "widgets_values_named": { "prompt": "", "model": "Nano Banana 2 (Gemini 3.1 Flash Image)", "model.aspect_ratio": "auto", "model.resolution": "1K", "model.thinking_level": "MINIMAL", "seed": 42, "control_after_generate": "randomize", "response_modalities": "IMAGE", "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.", "temperature": 1, "top_p": 0.95 }, "color": "#432", "bgcolor": "#653" } ], "links": [ [ 769, 301, 3, 314, 0, "VHS_VIDEOINFO" ], [ 834, 314, 0, 344, 0, "FLOAT" ], [ 835, 301, 0, 344, 1, "IMAGE" ], [ 836, 159, 0, 344, 2, "INT" ], [ 837, 160, 0, 344, 3, "INT" ], [ 840, 301, 0, 346, 0, "IMAGE" ], [ 839, 344, 0, 19, 0, "VIDEO" ], [ 847, 301, 2, 344, 5, "AUDIO" ], [ 877, 301, 1, 344, 6, "INT" ], [ 879, 360, 0, 344, 4, "IMAGE" ], [ 880, 360, 0, 349, 0, "IMAGE" ], [ 878, 351, 0, 360, 0, "STRING" ], [ 881, 346, 0, 360, 1, "IMAGE" ] ], "groups": [ { "id": 17, "title": "Target Resolution", "bounding": [ -3890, -340, 330, 340 ], "color": "#3f789e", "flags": {} }, { "id": 25, "title": "First Frame Restyle", "bounding": [ -3880, 70, 1180, 790 ], "color": "#3f789e", "flags": {} } ], "definitions": { "subgraphs": [ { "id": "b396d3e6-70cc-4a91-81db-6e0399a4edb6", "version": 1, "state": { "lastGroupId": 25, "lastNodeId": 360, "lastLinkId": 881, "lastRerouteId": 0 }, "revision": 0, "config": {}, "name": "Wan 2.2 Animate - Full Scene", "inputNode": { "id": -10, "bounding": [ -4350, 350, 120, 170 ] }, "outputNode": { "id": -20, "bounding": [ -650, 370, 100, 50 ] }, "inputs": [ { "id": "25fb7bfd-a9a1-4010-8157-ebb4189f5b6b", "name": "fps", "type": "FLOAT", "linkIds": [ 814, 815, 816, 874 ], "localized_name": "fps", "pos": [ -5097.596642240996, 446 ] }, { "id": "76dce9c4-abcd-4673-b334-8024f29d7f2c", "name": "image", "type": "IMAGE", "linkIds": [ 817 ], "localized_name": "image", "label": "input_video", "pos": [ -5097.596642240996, 466 ] }, { "id": "af1f4478-1474-4fee-82f8-54e9629ffdc3", "name": "width", "type": "INT", "linkIds": [ 818, 826, 871 ], "localized_name": "width", "pos": [ -5097.596642240996, 486 ] }, { "id": "9deefdcb-b80b-4a53-9f32-f06dfcb0db51", "name": "height", "type": "INT", "linkIds": [ 819, 827, 872 ], "localized_name": "height", "pos": [ -5097.596642240996, 506 ] }, { "id": "2ce7897d-0ab4-471e-953f-cf56c9b6e56c", "name": "image_1", "type": "IMAGE", "linkIds": [ 825 ], "localized_name": "image_1", "label": "reference_image", "pos": [ -5097.596642240996, 526 ] }, { "id": "48e182cf-4847-4aa3-88fb-086de8bdfa72", "name": "text", "type": "STRING", "linkIds": [ 838 ], "pos": [ -5097.596642240996, 546 ] }, { "id": "8f57065f-1b44-4b1b-98c9-bdde237c3157", "name": "audio", "type": "AUDIO", "linkIds": [ 862 ], "pos": [ -5097.596642240996, 566 ] }, { "id": "bc8aea5d-4111-4833-ae43-d0979c16e9a9", "name": "length", "type": "INT", "linkIds": [ 876 ], "pos": [ -5097.596642240996, 586 ] } ], "outputs": [ { "id": "fb94f0e7-6131-4db5-ac54-675007832f69", "name": "VIDEO", "type": "VIDEO", "linkIds": [ 873 ], "localized_name": "VIDEO", "pos": [ -752.6415641159956, 470 ] } ], "widgets": [], "nodes": [ { "id": 4, "type": "CLIPVisionLoader", "pos": [ -3030, -530 ], "size": [ 310, 100 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "localized_name": "CLIP_VISION", "name": "CLIP_VISION", "type": "CLIP_VISION", "slot_index": 0, "links": [ 4 ] } ], "properties": { "Node name for S&R": "CLIPVisionLoader", "cnr_id": "comfy-core", "ver": "0.3.59", "models": [ { "name": "clip_vision_h.safetensors", "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/clip_vision/clip_vision_h.safetensors", "directory": "clip_vision" } ] }, "widgets_values": [ "clip_vision_h.safetensors" ], "widgets_values_named": { "clip_name": "clip_vision_h.safetensors" } }, { "id": 2, "type": "CLIPLoader", "pos": [ -3030, -680 ], "size": [ 310, 130 ], "flags": {}, "order": 1, "mode": 0, "inputs": [], "outputs": [ { "localized_name": "CLIP", "name": "CLIP", "type": "CLIP", "slot_index": 0, "links": [ 1, 18 ] } ], "properties": { "Node name for S&R": "CLIPLoader", "cnr_id": "comfy-core", "ver": "0.3.59", "models": [ { "name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors", "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors", "directory": "text_encoders" } ] }, "widgets_values": [ "umt5_xxl_fp8_e4m3fn_scaled.safetensors", "wan", "default" ], "widgets_values_named": { "clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors", "type": "wan", "device": "default" } }, { "id": 1, "type": "CLIPTextEncode", "pos": [ -2650, -380 ], "size": [ 440, 190 ], "flags": {}, "order": 8, "mode": 0, "inputs": [ { "localized_name": "clip", "name": "clip", "type": "CLIP", "link": 1 } ], "outputs": [ { "localized_name": "CONDITIONING", "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 866 ] } ], "title": "CLIP Text Encode (Negative Prompt)", "properties": { "Node name for S&R": "CLIPTextEncode", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" ], "widgets_values_named": { "text": "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" }, "color": "#322", "bgcolor": "#533" }, { "id": 21, "type": "CLIPTextEncode", "pos": [ -2650, -680 ], "size": [ 430, 240 ], "flags": {}, "order": 13, "mode": 0, "inputs": [ { "localized_name": "clip", "name": "clip", "type": "CLIP", "link": 18 }, { "localized_name": "text", "name": "text", "type": "STRING", "widget": { "name": "text" }, "link": 838 } ], "outputs": [ { "localized_name": "CONDITIONING", "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 865 ] } ], "title": "CLIP Text Encode (Positive Prompt)", "properties": { "Node name for S&R": "CLIPTextEncode", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ "the person is dancing" ], "widgets_values_named": { "text": "the person is dancing" }, "color": "#232", "bgcolor": "#353" }, { "id": 18, "type": "LoraLoaderModelOnly", "pos": [ -3380, -490 ], "size": [ 310, 120 ], "flags": {}, "order": 9, "mode": 0, "inputs": [ { "localized_name": "model", "name": "model", "type": "MODEL", "link": 16 } ], "outputs": [ { "localized_name": "MODEL", "name": "MODEL", "type": "MODEL", "links": [ 226 ] } ], "properties": { "Node name for S&R": "LoraLoaderModelOnly", "cnr_id": "comfy-core", "ver": "0.3.59", "models": [ { "name": "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors", "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Lightx2v/lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors", "directory": "loras" } ] }, "widgets_values": [ "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors", 1 ], "widgets_values_named": { "lora_name": "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors", "strength_model": 1 } }, { "id": 99, "type": "LoraLoaderModelOnly", "pos": [ -3380, -330 ], "size": [ 310, 120 ], "flags": {}, "order": 10, "mode": 0, "inputs": [ { "localized_name": "model", "name": "model", "type": "MODEL", "link": 226 } ], "outputs": [ { "localized_name": "MODEL", "name": "MODEL", "type": "MODEL", "links": [ 227 ] } ], "properties": { "Node name for S&R": "LoraLoaderModelOnly", "cnr_id": "comfy-core", "ver": "0.3.59", "models": [ { "name": "WanAnimate_relight_lora_fp16.safetensors", "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/LoRAs/Wan22_relight/WanAnimate_relight_lora_fp16.safetensors", "directory": "loras" } ] }, "widgets_values": [ "WanAnimate_relight_lora_fp16.safetensors", 1 ], "widgets_values_named": { "lora_name": "WanAnimate_relight_lora_fp16.safetensors", "strength_model": 1 } }, { "id": 327, "type": "GrowMaskWithBlur", "pos": [ -2420, 1080 ], "size": [ 300, 290 ], "flags": {}, "order": 16, "mode": 0, "inputs": [ { "localized_name": "mask", "name": "mask", "type": "MASK", "link": 797 } ], "outputs": [ { "localized_name": "mask", "name": "mask", "type": "MASK", "links": [ 793 ] }, { "localized_name": "mask_inverted", "name": "mask_inverted", "type": "MASK", "links": [] } ], "properties": { "Node name for S&R": "GrowMaskWithBlur", "cnr_id": "comfyui-kjnodes", "ver": "bb205d809b467307b8ec3bb1a22680a4873187f8", "ue_properties": { "widget_ue_connectable": {}, "version": "7.3", "input_ue_unconnectable": {} } }, "widgets_values": [ 10, 0, true, false, 0, 1, 1, false ], "widgets_values_named": { "expand": 10, "incremental_expandrate": 0, "tapered_corners": true, "flip_input": false, "blur_radius": 0, "lerp_alpha": 1, "decay_factor": 1, "fill_holes": false } }, { "id": 331, "type": "SaveVideo", "pos": [ -1390, 910 ], "size": [ 280, 620 ], "flags": {}, "order": 19, "mode": 4, "inputs": [ { "localized_name": "video", "name": "video", "type": "VIDEO", "link": 800 } ], "outputs": [ { "localized_name": "video", "name": "video", "type": "VIDEO", "links": null } ], "properties": { "Node name for S&R": "SaveVideo" }, "widgets_values": [ "video/ComfyUI", "auto", "auto", "auto" ], "widgets_values_named": { "filename_prefix": "video/ComfyUI", "format": "auto", "format.codec": "auto", "codec": "auto" } }, { "id": 324, "type": "DownloadAndLoadSAM2Model", "pos": [ -2790, 930 ], "size": [ 350, 190 ], "flags": {}, "order": 2, "mode": 0, "inputs": [], "outputs": [ { "localized_name": "sam2_model", "name": "sam2_model", "type": "SAM2MODEL", "links": [ 794 ] } ], "properties": { "Node name for S&R": "DownloadAndLoadSAM2Model", "cnr_id": "ComfyUI-segment-anything-2", "ver": "c59676b008a76237002926f684d0ca3a9b29ac54", "ue_properties": { "widget_ue_connectable": {}, "version": "7.3", "input_ue_unconnectable": {} } }, "widgets_values": [ "sam2.1_hiera_base_plus.safetensors", "video", "cuda", "fp16" ], "widgets_values_named": { "model": "sam2.1_hiera_base_plus.safetensors", "segmentor": "video", "device": "cuda", "precision": "fp16" } }, { "id": 326, "type": "Sam2Segmentation", "pos": [ -2780, 1120 ], "size": [ 340, 210 ], "flags": {}, "order": 15, "mode": 0, "inputs": [ { "localized_name": "sam2_model", "name": "sam2_model", "type": "SAM2MODEL", "link": 794 }, { "localized_name": "image", "name": "image", "type": "IMAGE", "link": 795 }, { "localized_name": "coordinates_positive", "name": "coordinates_positive", "shape": 7, "type": "STRING", "link": null }, { "localized_name": "coordinates_negative", "name": "coordinates_negative", "shape": 7, "type": "STRING", "link": null }, { "localized_name": "bboxes", "name": "bboxes", "shape": 7, "type": "BBOX", "link": 796 }, { "localized_name": "mask", "name": "mask", "shape": 7, "type": "MASK", "link": null } ], "outputs": [ { "localized_name": "mask", "name": "mask", "type": "MASK", "links": [ 797 ] } ], "properties": { "Node name for S&R": "Sam2Segmentation", "cnr_id": "ComfyUI-segment-anything-2", "ver": "c59676b008a76237002926f684d0ca3a9b29ac54", "ue_properties": { "widget_ue_connectable": {}, "version": "7.3", "input_ue_unconnectable": {} } }, "widgets_values": [ false, false ], "widgets_values_named": { "keep_model_loaded": false, "individual_objects": false } }, { "id": 332, "type": "DrawMaskOnImage", "pos": [ -2050, 920 ], "size": [ 270, 150 ], "flags": {}, "order": 20, "mode": 0, "inputs": [ { "localized_name": "image", "name": "image", "type": "IMAGE", "link": 801 }, { "localized_name": "mask", "name": "mask", "type": "MASK", "link": 802 } ], "outputs": [ { "localized_name": "images", "name": "images", "type": "IMAGE", "links": [ 812 ] } ], "properties": { "Node name for S&R": "DrawMaskOnImage", "cnr_id": "comfyui-kjnodes", "ver": "623b5913dc7f240fd8b26422e99f8849a21c5473", "ue_properties": { "widget_ue_connectable": {}, "version": "7.3", "input_ue_unconnectable": {} } }, "widgets_values": [ "0, 0, 0", "cpu" ], "widgets_values_named": { "color": "0, 0, 0", "device": "cpu" } }, { "id": 325, "type": "BlockifyMask", "pos": [ -2070, 1070 ], "size": [ 280, 120 ], "flags": {}, "order": 14, "mode": 0, "inputs": [ { "localized_name": "masks", "name": "masks", "type": "MASK", "link": 793 } ], "outputs": [ { "localized_name": "mask", "name": "mask", "type": "MASK", "links": [ 802 ] } ], "properties": { "Node name for S&R": "BlockifyMask", "cnr_id": "comfyui-kjnodes", "ver": "00da1910634fbf314d407608efb281ae6f7f1ba2", "ue_properties": { "widget_ue_connectable": {}, "version": "7.3", "input_ue_unconnectable": {} } }, "widgets_values": [ 32, "cpu" ], "widgets_values_named": { "block_size": 32, "device": "cpu" } }, { "id": 335, "type": "DrawViTPose", "pos": [ -2080, 1710 ], "size": [ 280, 220 ], "flags": {}, "order": 23, "mode": 0, "inputs": [ { "localized_name": "pose_data", "name": "pose_data", "type": "POSEDATA", "link": 808 }, { "localized_name": "width", "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 809 }, { "localized_name": "height", "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 810 } ], "outputs": [ { "localized_name": "pose_images", "name": "pose_images", "type": "IMAGE", "links": [ 813, 870 ] } ], "properties": { "Node name for S&R": "DrawViTPose", "cnr_id": "ComfyUI-WanAnimatePreprocess", "aux_id": "kijai/ComfyUI-WanAnimatePreprocess", "ver": "e63d6e71ae4c271f3f81211a7ca7f87607b7e50d", "ue_properties": { "widget_ue_connectable": { "width": true, "height": true }, "version": "7.3", "input_ue_unconnectable": {} } }, "widgets_values": [ 832, 480, 16, -1, -1, "True" ], "widgets_values_named": { "width": 832, "height": 480, "retarget_padding": 16, "body_stick_width": -1, "hand_stick_width": -1, "draw_head": "True" } }, { "id": 334, "type": "PoseAndFaceDetection", "pos": [ -2820, 1690 ], "size": [ 320, 200 ], "flags": {}, "order": 22, "mode": 0, "inputs": [ { "localized_name": "model", "name": "model", "type": "POSEMODEL", "link": 804 }, { "localized_name": "images", "name": "images", "type": "IMAGE", "link": 805 }, { "localized_name": "retarget_image", "name": "retarget_image", "shape": 7, "type": "IMAGE", "link": null }, { "localized_name": "width", "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 806 }, { "localized_name": "height", "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 807 } ], "outputs": [ { "localized_name": "pose_data", "name": "pose_data", "type": "POSEDATA", "links": [ 808 ] }, { "localized_name": "face_images", "name": "face_images", "type": "IMAGE", "links": [ 803, 869 ] }, { "localized_name": "key_frame_body_points", "name": "key_frame_body_points", "type": "STRING", "links": [] }, { "localized_name": "bboxes", "name": "bboxes", "type": "BBOX", "links": [ 796 ] }, { "localized_name": "face_bboxes", "name": "face_bboxes", "type": "BBOX,", "links": [] } ], "properties": { "Node name for S&R": "PoseAndFaceDetection", "cnr_id": "ComfyUI-WanAnimatePreprocess", "aux_id": "kijai/ComfyUI-WanAnimatePreprocess", "ver": "e63d6e71ae4c271f3f81211a7ca7f87607b7e50d", "ue_properties": { "widget_ue_connectable": { "width": true, "height": true }, "version": "7.3", "input_ue_unconnectable": {} } }, "widgets_values": [ 832, 480, 0 ], "widgets_values_named": { "width": 832, "height": 480, "face_padding": 0 } }, { "id": 340, "type": "CreateVideo", "pos": [ -1700, 1690 ], "size": [ 280, 130 ], "flags": {}, "order": 27, "mode": 4, "inputs": [ { "localized_name": "images", "name": "images", "type": "IMAGE", "link": 813 }, { "localized_name": "audio", "name": "audio", "shape": 7, "type": "AUDIO", "link": null }, { "localized_name": "fps", "name": "fps", "type": "FLOAT", "widget": { "name": "fps" }, "link": 816 } ], "outputs": [ { "localized_name": "VIDEO", "name": "VIDEO", "type": "VIDEO", "links": [ 799 ] } ], "properties": { "Node name for S&R": "CreateVideo" }, "widgets_values": [ 30, "auto", "sRGB" ], "widgets_values_named": { "fps": 30, "bit_depth": "auto", "color_space": "sRGB" } }, { "id": 330, "type": "SaveVideo", "pos": [ -1380, 1710 ], "size": [ 280, 620 ], "flags": {}, "order": 18, "mode": 4, "inputs": [ { "localized_name": "video", "name": "video", "type": "VIDEO", "link": 799 } ], "outputs": [ { "localized_name": "video", "name": "video", "type": "VIDEO", "links": null } ], "properties": { "Node name for S&R": "SaveVideo" }, "widgets_values": [ "video/ComfyUI", "auto", "auto", "auto" ], "widgets_values_named": { "filename_prefix": "video/ComfyUI", "format": "auto", "format.codec": "auto", "codec": "auto" } }, { "id": 333, "type": "CreateVideo", "pos": [ -2450, 1730 ], "size": [ 300, 130 ], "flags": {}, "order": 21, "mode": 4, "inputs": [ { "localized_name": "images", "name": "images", "type": "IMAGE", "link": 803 }, { "localized_name": "audio", "name": "audio", "shape": 7, "type": "AUDIO", "link": null }, { "localized_name": "fps", "name": "fps", "type": "FLOAT", "widget": { "name": "fps" }, "link": 814 } ], "outputs": [ { "localized_name": "VIDEO", "name": "VIDEO", "type": "VIDEO", "links": [ 798 ] } ], "properties": { "Node name for S&R": "CreateVideo" }, "widgets_values": [ 30, "auto", "sRGB" ], "widgets_values_named": { "fps": 30, "bit_depth": "auto", "color_space": "sRGB" } }, { "id": 328, "type": "OnnxDetectionModelLoader", "pos": [ -2820, 1960 ], "size": [ 330, 150 ], "flags": {}, "order": 3, "mode": 0, "inputs": [], "outputs": [ { "localized_name": "model", "name": "model", "type": "POSEMODEL", "links": [ 804 ] } ], "properties": { "Node name for S&R": "OnnxDetectionModelLoader", "cnr_id": "ComfyUI-WanAnimatePreprocess", "aux_id": "kijai/ComfyUI-WanAnimatePreprocess", "ver": "e63d6e71ae4c271f3f81211a7ca7f87607b7e50d", "ue_properties": { "widget_ue_connectable": {}, "version": "7.3", "input_ue_unconnectable": {} } }, "widgets_values": [ "vitpose-l-wholebody.onnx", "yolov10m.onnx", "CUDAExecutionProvider" ], "widgets_values_named": { "vitpose_model": "vitpose-l-wholebody.onnx", "yolo_model": "yolov10m.onnx", "onnx_device": "CUDAExecutionProvider" } }, { "id": 329, "type": "SaveVideo", "pos": [ -2440, 1920 ], "size": [ 300, 430 ], "flags": {}, "order": 17, "mode": 4, "inputs": [ { "localized_name": "video", "name": "video", "type": "VIDEO", "link": 798 } ], "outputs": [ { "localized_name": "video", "name": "video", "type": "VIDEO", "links": null } ], "properties": { "Node name for S&R": "SaveVideo" }, "widgets_values": [ "video/ComfyUI", "auto", "auto", "auto" ], "widgets_values_named": { "filename_prefix": "video/ComfyUI", "format": "auto", "format.codec": "auto", "codec": "auto" } }, { "id": 339, "type": "CreateVideo", "pos": [ -1720, 920 ], "size": [ 280, 130 ], "flags": {}, "order": 26, "mode": 4, "inputs": [ { "localized_name": "images", "name": "images", "type": "IMAGE", "link": 812 }, { "localized_name": "audio", "name": "audio", "shape": 7, "type": "AUDIO", "link": null }, { "localized_name": "fps", "name": "fps", "type": "FLOAT", "widget": { "name": "fps" }, "link": 815 } ], "outputs": [ { "localized_name": "VIDEO", "name": "VIDEO", "type": "VIDEO", "links": [ 800 ] } ], "properties": { "Node name for S&R": "CreateVideo" }, "widgets_values": [ 30, "auto", "sRGB" ], "widgets_values_named": { "fps": 30, "bit_depth": "auto", "color_space": "sRGB" } }, { "id": 3, "type": "VAELoader", "pos": [ -3030, -390 ], "size": [ 310, 100 ], "flags": {}, "order": 4, "mode": 0, "inputs": [], "outputs": [ { "localized_name": "VAE", "name": "VAE", "type": "VAE", "slot_index": 0, "links": [ 863, 864 ] } ], "properties": { "Node name for S&R": "VAELoader", "cnr_id": "comfy-core", "ver": "0.3.59", "models": [ { "name": "wan_2.1_vae.safetensors", "url": "https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors", "directory": "vae" } ] }, "widgets_values": [ "wan_2.1_vae.safetensors" ], "widgets_values_named": { "vae_name": "wan_2.1_vae.safetensors" } }, { "id": 20, "type": "UNETLoader", "pos": [ -3380, -680 ], "size": [ 310, 130 ], "flags": {}, "order": 5, "mode": 0, "inputs": [], "outputs": [ { "localized_name": "MODEL", "name": "MODEL", "type": "MODEL", "slot_index": 0, "links": [ 16 ] } ], "properties": { "Node name for S&R": "UNETLoader", "cnr_id": "comfy-core", "ver": "0.3.59", "models": [ { "name": "Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors", "url": "https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/resolve/main/Wan22Animate/Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors", "directory": "diffusion_models" } ] }, "widgets_values": [ "Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors", "default" ], "widgets_values_named": { "unet_name": "Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors", "weight_dtype": "default" } }, { "id": 60, "type": "ModelSamplingSD3", "pos": [ -3040, -270 ], "size": [ 320, 100 ], "flags": {}, "order": 11, "mode": 0, "inputs": [ { "localized_name": "model", "name": "model", "type": "MODEL", "link": 227 } ], "outputs": [ { "localized_name": "MODEL", "name": "MODEL", "type": "MODEL", "slot_index": 0, "links": [ 861 ] } ], "properties": { "Node name for S&R": "ModelSamplingSD3", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 8 ], "widgets_values_named": { "shift": 8 } }, { "id": 9, "type": "CLIPVisionEncode", "pos": [ -2570, -80 ], "size": [ 260, 120 ], "flags": { "collapsed": false }, "order": 12, "mode": 0, "inputs": [ { "localized_name": "clip_vision", "name": "clip_vision", "type": "CLIP_VISION", "link": 4 }, { "localized_name": "image", "name": "image", "type": "IMAGE", "link": 829 } ], "outputs": [ { "localized_name": "CLIP_VISION_OUTPUT", "name": "CLIP_VISION_OUTPUT", "type": "CLIP_VISION_OUTPUT", "slot_index": 0, "links": [ 867 ] } ], "properties": { "Node name for S&R": "CLIPVisionEncode", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ "none" ], "widgets_values_named": { "crop": "none" } }, { "id": 355, "type": "KSampler", "pos": [ -1680, -680 ], "size": [ 280, 690 ], "flags": {}, "order": 31, "mode": 0, "inputs": [ { "localized_name": "model", "name": "model", "type": "MODEL", "link": 861 }, { "localized_name": "positive", "name": "positive", "type": "CONDITIONING", "link": 852 }, { "localized_name": "negative", "name": "negative", "type": "CONDITIONING", "link": 853 }, { "localized_name": "latent_image", "name": "latent_image", "type": "LATENT", "link": 854 } ], "outputs": [ { "localized_name": "LATENT", "name": "LATENT", "type": "LATENT", "links": [ 855 ] } ], "properties": { "Node name for S&R": "KSampler", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 777171427287516, "randomize", 6, 1, "euler", "simple", 1 ], "widgets_values_named": { "seed": 777171427287516, "control_after_generate": "randomize", "steps": 6, "cfg": 1, "sampler_name": "euler", "scheduler": "simple", "denoise": 1 } }, { "id": 353, "type": "TrimVideoLatent", "pos": [ -1350, -680 ], "size": [ 280, 100 ], "flags": {}, "order": 29, "mode": 0, "inputs": [ { "localized_name": "samples", "name": "samples", "type": "LATENT", "link": 855 }, { "localized_name": "trim_amount", "name": "trim_amount", "type": "INT", "widget": { "name": "trim_amount" }, "link": 856 } ], "outputs": [ { "localized_name": "LATENT", "name": "LATENT", "type": "LATENT", "links": [ 858 ] } ], "properties": { "Node name for S&R": "TrimVideoLatent", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 0 ], "widgets_values_named": { "trim_amount": 0 } }, { "id": 354, "type": "VAEDecode", "pos": [ -1300, -560 ], "size": [ 220, 90 ], "flags": {}, "order": 30, "mode": 0, "inputs": [ { "localized_name": "samples", "name": "samples", "type": "LATENT", "link": 858 }, { "localized_name": "vae", "name": "vae", "type": "VAE", "link": 863 } ], "outputs": [ { "localized_name": "IMAGE", "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 859 ] } ], "properties": { "Node name for S&R": "VAEDecode", "cnr_id": "comfy-core", "ver": "0.3.59" } }, { "id": 358, "type": "ImageFromBatch", "pos": [ -1350, -440 ], "size": [ 280, 120 ], "flags": {}, "order": 34, "mode": 0, "inputs": [ { "localized_name": "image", "name": "image", "type": "IMAGE", "link": 859 }, { "localized_name": "batch_index", "name": "batch_index", "type": "INT", "widget": { "name": "batch_index" }, "link": 860 } ], "outputs": [ { "localized_name": "IMAGE", "name": "IMAGE", "type": "IMAGE", "links": [ 857 ] } ], "properties": { "Node name for S&R": "ImageFromBatch", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 0, 4096 ], "widgets_values_named": { "batch_index": 0, "length": 4096 } }, { "id": 342, "type": "ImageScale", "pos": [ -3380, -70 ], "size": [ 280, 180 ], "flags": {}, "order": 28, "mode": 0, "inputs": [ { "localized_name": "image", "name": "image", "type": "IMAGE", "link": 825 }, { "localized_name": "width", "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 826 }, { "localized_name": "height", "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 827 } ], "outputs": [ { "localized_name": "IMAGE", "name": "IMAGE", "type": "IMAGE", "links": [ 829, 868 ] } ], "title": "Resize Reference Image", "properties": { "Node name for S&R": "ImageScale", "cnr_id": "comfy-core", "ver": "0.3.66", "ue_properties": { "widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.3" } }, "widgets_values": [ "lanczos", 832, 480, "center" ], "widgets_values_named": { "upscale_method": "lanczos", "width": 832, "height": 480, "crop": "center" } }, { "id": 356, "type": "WanAnimateToVideo", "pos": [ -2080, -670 ], "size": [ 330, 400 ], "flags": {}, "order": 32, "mode": 0, "inputs": [ { "localized_name": "positive", "name": "positive", "type": "CONDITIONING", "link": 865 }, { "localized_name": "negative", "name": "negative", "type": "CONDITIONING", "link": 866 }, { "localized_name": "vae", "name": "vae", "type": "VAE", "link": 864 }, { "localized_name": "clip_vision_output", "name": "clip_vision_output", "shape": 7, "type": "CLIP_VISION_OUTPUT", "link": 867 }, { "localized_name": "reference_image", "name": "reference_image", "shape": 7, "type": "IMAGE", "link": 868 }, { "localized_name": "face_video", "name": "face_video", "shape": 7, "type": "IMAGE", "link": 869 }, { "localized_name": "pose_video", "name": "pose_video", "shape": 7, "type": "IMAGE", "link": 870 }, { "localized_name": "background_video", "name": "background_video", "shape": 7, "type": "IMAGE", "link": null }, { "localized_name": "character_mask", "name": "character_mask", "shape": 7, "type": "MASK", "link": null }, { "localized_name": "continue_motion", "name": "continue_motion", "shape": 7, "type": "IMAGE", "link": null }, { "localized_name": "width", "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 871 }, { "localized_name": "height", "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 872 }, { "localized_name": "length", "name": "length", "type": "INT", "widget": { "name": "length" }, "link": 876 } ], "outputs": [ { "localized_name": "positive", "name": "positive", "type": "CONDITIONING", "links": [ 852 ] }, { "localized_name": "negative", "name": "negative", "type": "CONDITIONING", "links": [ 853 ] }, { "localized_name": "latent", "name": "latent", "type": "LATENT", "links": [ 854 ] }, { "localized_name": "trim_latent", "name": "trim_latent", "type": "INT", "links": [ 856 ] }, { "localized_name": "trim_image", "name": "trim_image", "type": "INT", "links": [ 860 ] }, { "localized_name": "video_frame_offset", "name": "video_frame_offset", "type": "INT", "links": [] } ], "properties": { "Node name for S&R": "WanAnimateToVideo", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 832, 480, 77, 1, 5, 0 ], "widgets_values_named": { "width": 832, "height": 480, "length": 77, "batch_size": 1, "continue_motion_max_frames": 5, "video_frame_offset": 0 } }, { "id": 357, "type": "CreateVideo", "pos": [ -1280, 370 ], "size": [ 280, 130 ], "flags": {}, "order": 33, "mode": 0, "inputs": [ { "localized_name": "images", "name": "images", "type": "IMAGE", "link": 857 }, { "localized_name": "audio", "name": "audio", "shape": 7, "type": "AUDIO", "link": 862 }, { "localized_name": "fps", "name": "fps", "type": "FLOAT", "widget": { "name": "fps" }, "link": 874 } ], "outputs": [ { "localized_name": "VIDEO", "name": "VIDEO", "type": "VIDEO", "links": [ 873 ] } ], "properties": { "Node name for S&R": "CreateVideo", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 30, "auto", "sRGB" ], "widgets_values_named": { "fps": 30, "bit_depth": "auto", "color_space": "sRGB" } }, { "id": 336, "type": "Note", "pos": [ -2790, 690 ], "size": [ 330, 100 ], "flags": {}, "order": 6, "mode": 0, "inputs": [], "outputs": [], "title": "Note: SAM2 detection", "properties": { "ue_properties": { "widget_ue_connectable": {}, "version": "7.3", "input_ue_unconnectable": {} } }, "widgets_values": [ "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" ], "widgets_values_named": { "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" }, "color": "#222", "bgcolor": "#000" }, { "id": 338, "type": "ImageScale", "pos": [ -3470, 890 ], "size": [ 280, 180 ], "flags": {}, "order": 25, "mode": 0, "inputs": [ { "localized_name": "image", "name": "image", "type": "IMAGE", "link": 817 }, { "localized_name": "width", "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 818 }, { "localized_name": "height", "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 819 } ], "outputs": [ { "localized_name": "IMAGE", "name": "IMAGE", "type": "IMAGE", "links": [ 801, 811 ] } ], "title": "Resize Input Video", "properties": { "Node name for S&R": "ImageScale", "cnr_id": "comfy-core", "ver": "0.3.66", "ue_properties": { "widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.3" } }, "widgets_values": [ "lanczos", 832, 480, "center" ], "widgets_values_named": { "upscale_method": "lanczos", "width": 832, "height": 480, "crop": "center" } }, { "id": 337, "type": "GetImageSizeAndCount", "pos": [ -3430, 1720 ], "size": [ 200, 130 ], "flags": {}, "order": 24, "mode": 0, "inputs": [ { "localized_name": "image", "name": "image", "type": "IMAGE", "link": 811 } ], "outputs": [ { "localized_name": "image", "name": "image", "type": "IMAGE", "links": [ 795, 805 ] }, { "label": "720 width", "localized_name": "width", "name": "width", "type": "INT", "links": [ 806, 809 ] }, { "label": "1280 height", "localized_name": "height", "name": "height", "type": "INT", "links": [ 807, 810 ] }, { "label": "121 count", "localized_name": "count", "name": "count", "type": "INT", "links": [] } ], "properties": { "Node name for S&R": "GetImageSizeAndCount", "cnr_id": "comfyui-kjnodes", "ver": "bb205d809b467307b8ec3bb1a22680a4873187f8", "ue_properties": { "widget_ue_connectable": {}, "version": "7.3", "input_ue_unconnectable": {} } } }, { "id": 359, "type": "MarkdownNote", "pos": [ -1030, 860 ], "size": [ 340, 310 ], "flags": {}, "order": 7, "mode": 0, "inputs": [], "outputs": [], "title": "Enable Bypassed Node", "properties": {}, "widgets_values": [ "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." ], "widgets_values_named": { "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." }, "color": "#222", "bgcolor": "#000" } ], "groups": [ { "id": 18, "title": "Background Mask", "bounding": [ -2830, 820, 1750, 760 ], "color": "#3f789e", "flags": {} }, { "id": 19, "title": "Pose and Face Detection", "bounding": [ -2830, 1620, 710, 750 ], "color": "#3f789e", "flags": {} }, { "id": 20, "title": "Pose", "bounding": [ -2090, 1620, 1020, 740 ], "color": "#3f789e", "flags": {} }, { "id": 23, "title": "Wan2.2 Animate Video Generation", "bounding": [ -3520, -870, 2510, 1110 ], "color": "#3f789e", "flags": {} }, { "id": 21, "title": "Model", "bounding": [ -3390, -760, 700, 610 ], "color": "#3f789e", "flags": {} }, { "id": 22, "title": "Prompt", "bounding": [ -2670, -760, 460, 610 ], "color": "#3f789e", "flags": {} }, { "id": 24, "title": "Object Detection", "bounding": [ -3530, 580, 2470, 1850 ], "color": "#3f789e", "flags": {} } ], "links": [ { "id": 227, "origin_id": 99, "origin_slot": 0, "target_id": 60, "target_slot": 0, "type": "MODEL" }, { "id": 1, "origin_id": 2, "origin_slot": 0, "target_id": 1, "target_slot": 0, "type": "CLIP" }, { "id": 16, "origin_id": 20, "origin_slot": 0, "target_id": 18, "target_slot": 0, "type": "MODEL" }, { "id": 226, "origin_id": 18, "origin_slot": 0, "target_id": 99, "target_slot": 0, "type": "MODEL" }, { "id": 4, "origin_id": 4, "origin_slot": 0, "target_id": 9, "target_slot": 0, "type": "CLIP_VISION" }, { "id": 829, "origin_id": 342, "origin_slot": 0, "target_id": 9, "target_slot": 1, "type": "IMAGE" }, { "id": 793, "origin_id": 327, "origin_slot": 0, "target_id": 325, "target_slot": 0, "type": "MASK" }, { "id": 794, "origin_id": 324, "origin_slot": 0, "target_id": 326, "target_slot": 0, "type": "SAM2MODEL" }, { "id": 795, "origin_id": 337, "origin_slot": 0, "target_id": 326, "target_slot": 1, "type": "IMAGE" }, { "id": 796, "origin_id": 334, "origin_slot": 3, "target_id": 326, "target_slot": 4, "type": "BBOX" }, { "id": 797, "origin_id": 326, "origin_slot": 0, "target_id": 327, "target_slot": 0, "type": "MASK" }, { "id": 801, "origin_id": 338, "origin_slot": 0, "target_id": 332, "target_slot": 0, "type": "IMAGE" }, { "id": 802, "origin_id": 325, "origin_slot": 0, "target_id": 332, "target_slot": 1, "type": "MASK" }, { "id": 803, "origin_id": 334, "origin_slot": 1, "target_id": 333, "target_slot": 0, "type": "IMAGE" }, { "id": 811, "origin_id": 338, "origin_slot": 0, "target_id": 337, "target_slot": 0, "type": "IMAGE" }, { "id": 812, "origin_id": 332, "origin_slot": 0, "target_id": 339, "target_slot": 0, "type": "IMAGE" }, { "id": 804, "origin_id": 328, "origin_slot": 0, "target_id": 334, "target_slot": 0, "type": "POSEMODEL" }, { "id": 805, "origin_id": 337, "origin_slot": 0, "target_id": 334, "target_slot": 1, "type": "IMAGE" }, { "id": 806, "origin_id": 337, "origin_slot": 1, "target_id": 334, "target_slot": 3, "type": "INT" }, { "id": 807, "origin_id": 337, "origin_slot": 2, "target_id": 334, "target_slot": 4, "type": "INT" }, { "id": 813, "origin_id": 335, "origin_slot": 0, "target_id": 340, "target_slot": 0, "type": "IMAGE" }, { "id": 18, "origin_id": 2, "origin_slot": 0, "target_id": 21, "target_slot": 0, "type": "CLIP" }, { "id": 808, "origin_id": 334, "origin_slot": 0, "target_id": 335, "target_slot": 0, "type": "POSEDATA" }, { "id": 809, "origin_id": 337, "origin_slot": 1, "target_id": 335, "target_slot": 1, "type": "INT" }, { "id": 810, "origin_id": 337, "origin_slot": 2, "target_id": 335, "target_slot": 2, "type": "INT" }, { "id": 814, "origin_id": -10, "origin_slot": 0, "target_id": 333, "target_slot": 2, "type": "FLOAT" }, { "id": 815, "origin_id": -10, "origin_slot": 0, "target_id": 339, "target_slot": 2, "type": "FLOAT" }, { "id": 816, "origin_id": -10, "origin_slot": 0, "target_id": 340, "target_slot": 2, "type": "FLOAT" }, { "id": 817, "origin_id": -10, "origin_slot": 1, "target_id": 338, "target_slot": 0, "type": "IMAGE" }, { "id": 825, "origin_id": -10, "origin_slot": 4, "target_id": 342, "target_slot": 0, "type": "IMAGE" }, { "id": 838, "origin_id": -10, "origin_slot": 5, "target_id": 21, "target_slot": 1, "type": "STRING" }, { "id": 852, "origin_id": 356, "origin_slot": 0, "target_id": 355, "target_slot": 1, "type": "CONDITIONING" }, { "id": 853, "origin_id": 356, "origin_slot": 1, "target_id": 355, "target_slot": 2, "type": "CONDITIONING" }, { "id": 854, "origin_id": 356, "origin_slot": 2, "target_id": 355, "target_slot": 3, "type": "LATENT" }, { "id": 855, "origin_id": 355, "origin_slot": 0, "target_id": 353, "target_slot": 0, "type": "LATENT" }, { "id": 856, "origin_id": 356, "origin_slot": 3, "target_id": 353, "target_slot": 1, "type": "INT" }, { "id": 857, "origin_id": 358, "origin_slot": 0, "target_id": 357, "target_slot": 0, "type": "IMAGE" }, { "id": 858, "origin_id": 353, "origin_slot": 0, "target_id": 354, "target_slot": 0, "type": "LATENT" }, { "id": 859, "origin_id": 354, "origin_slot": 0, "target_id": 358, "target_slot": 0, "type": "IMAGE" }, { "id": 860, "origin_id": 356, "origin_slot": 4, "target_id": 358, "target_slot": 1, "type": "INT" }, { "id": 861, "origin_id": 60, "origin_slot": 0, "target_id": 355, "target_slot": 0, "type": "MODEL" }, { "id": 862, "origin_id": -10, "origin_slot": 6, "target_id": 357, "target_slot": 1, "type": "AUDIO" }, { "id": 863, "origin_id": 3, "origin_slot": 0, "target_id": 354, "target_slot": 1, "type": "VAE" }, { "id": 864, "origin_id": 3, "origin_slot": 0, "target_id": 356, "target_slot": 2, "type": "VAE" }, { "id": 865, "origin_id": 21, "origin_slot": 0, "target_id": 356, "target_slot": 0, "type": "CONDITIONING" }, { "id": 866, "origin_id": 1, "origin_slot": 0, "target_id": 356, "target_slot": 1, "type": "CONDITIONING" }, { "id": 867, "origin_id": 9, "origin_slot": 0, "target_id": 356, "target_slot": 3, "type": "CLIP_VISION_OUTPUT" }, { "id": 868, "origin_id": 342, "origin_slot": 0, "target_id": 356, "target_slot": 4, "type": "IMAGE" }, { "id": 869, "origin_id": 334, "origin_slot": 1, "target_id": 356, "target_slot": 5, "type": "IMAGE" }, { "id": 870, "origin_id": 335, "origin_slot": 0, "target_id": 356, "target_slot": 6, "type": "IMAGE" }, { "id": 871, "origin_id": -10, "origin_slot": 2, "target_id": 356, "target_slot": 10, "type": "INT" }, { "id": 872, "origin_id": -10, "origin_slot": 3, "target_id": 356, "target_slot": 11, "type": "INT" }, { "id": 873, "origin_id": 357, "origin_slot": 0, "target_id": -20, "target_slot": 0, "type": "VIDEO" }, { "id": 874, "origin_id": -10, "origin_slot": 0, "target_id": 357, "target_slot": 2, "type": "FLOAT" }, { "id": 876, "origin_id": -10, "origin_slot": 7, "target_id": 356, "target_slot": 12, "type": "INT" }, { "id": 800, "origin_id": 339, "origin_slot": 0, "target_id": 331, "target_slot": 0, "type": "VIDEO" }, { "id": 799, "origin_id": 340, "origin_slot": 0, "target_id": 330, "target_slot": 0, "type": "VIDEO" }, { "id": 798, "origin_id": 333, "origin_slot": 0, "target_id": 329, "target_slot": 0, "type": "VIDEO" }, { "id": 826, "origin_id": -10, "origin_slot": 2, "target_id": 342, "target_slot": 1, "type": "INT" }, { "id": 827, "origin_id": -10, "origin_slot": 3, "target_id": 342, "target_slot": 2, "type": "INT" }, { "id": 818, "origin_id": -10, "origin_slot": 2, "target_id": 338, "target_slot": 1, "type": "INT" }, { "id": 819, "origin_id": -10, "origin_slot": 3, "target_id": 338, "target_slot": 2, "type": "INT" } ], "extra": { "workflowRendererVersion": "Vue-corrected" } } ] }, "config": {}, "extra": { "ds": { "scale": 0.6912393592851539, "offset": [ 4866.452727567391, 745.7231876111044 ] }, "frontendVersion": "1.53.6", "workflowRendererVersion": "Vue-corrected", "linearMode": false, "linearData": { "inputs": [ [ "301", "video" ], [ "301", "videopreview" ], [ "159", "value" ], [ "160", "value" ], [ "351", "string_b" ] ], "outputs": [ "349", "19" ] }, "VHS_latentpreview": false, "VHS_latentpreviewrate": 0, "VHS_MetadataImage": true, "VHS_KeepIntermediate": true }, "version": 0.4 }