Skip to content

Instantly share code, notes, and snippets.

@yangdafish
Last active July 19, 2026 06:50
Show Gist options
  • Select an option

  • Save yangdafish/36bbe0d3277cd66875eee1b2215ee95b to your computer and use it in GitHub Desktop.

Select an option

Save yangdafish/36bbe0d3277cd66875eee1b2215ee95b to your computer and use it in GitHub Desktop.
Wan 2.2 Animate motion transfer (robot dancer V4.1) — workflow + pinned revisions + SAM2 mask preflight procedure

Wan 2.2 Animate motion transfer — robot dancer (V4.1 short + V4.2 long)

Static character reference + unrelated mechanical motion driver -> the character performs the driver's dance. Two workflows, both with the SAM2 points, prompts, seed, and frame caps already set:

  • motion-transfer-v4.1.json — 77-frame short test (the original)
  • motion-transfer-v4.2-long-305f.json — 305 frames @ 16 fps (~19 s), the long-form version. Verified: no visible seam at any of the three 77-frame window boundaries (frames 76/77, 152/153, 228/229).

V4.1 workflow (revision-pinned raw URL): https://gist.githubusercontent.com/yangdafish/36bbe0d3277cd66875eee1b2215ee95b/raw/eb3a7addecbe8f7279208339b06d85e156fc9143/motion-transfer-v4.1.json SHA-256: 10f6aa9044bfd8b37420ec9228dfd292d947e117e64b32628ba6e302dd787f7c

V4.2 long workflow (revision-pinned raw URL): https://gist.githubusercontent.com/yangdafish/36bbe0d3277cd66875eee1b2215ee95b/raw/93dc811ac8c638a3e84edf42bb9aef3f969372a9/motion-transfer-v4.2-long-305f.json SHA-256: 505518ca8d3cac99a3ae60a675809a751374f3142120b16f567229306dc6345f

Use it

  1. Drag either JSON onto the ComfyUI canvas.

  2. Install the custom nodes and models at the exact revisions in REVISIONS.md (results drift on other revisions; the workflows' embedded node versions match that list).

  3. Reference image: one full-body character whose garment/body silhouette is reasonably close to the driver's (fitted outfits work; wide skirts or flowing garments against this narrow-legged driver get reinterpreted — see limits). Name it to match the LoadImage node in the workflow you loaded (v4.1: reference_v4_fitted.png; v4.2: motion-transfer-robot-ballerina-fitted-reference-v4.png) or just repoint the node.

  4. Driver video: Pixabay clip 168502 (https://pixabay.com/videos/robot-dance-fun-168502/). Pixabay's license permits use but not redistributing the clip, so you pull it yourself.

    Short (77f, for v4.1):

    ffmpeg -ss 14 -t 4.8125 -i SOURCE.mp4 \
      -vf 'fps=16,crop=1400:2160:1220:0,scale=576:889:flags=lanczos,pad=576:1024:0:67:black' \
      -frames:v 77 -an driver_pixabay_168502_trimmed_77f.mp4
    

    Long (305f, for v4.2):

    ffmpeg -ss 4.9375 -t 19.0625 -i SOURCE.mp4 \
      -vf 'fps=16,crop=1400:2160:1220:0,scale=576:889:flags=lanczos,pad=576:1024:0:67:black' \
      -frames:v 305 -an driver_pixabay_168502_long_305f.mp4
    
  5. Preflight before sampling. Select the node titled "SAM2 MASK PREFLIGHT — RUN THIS FIRST" (node 75) and use ComfyUI's Partial Execution to run just that output (in recent frontends: select the node and hit the partial-run control, or right-click -> run branch). It renders the SAM2 removal mask over every frame without touching the sampler. Check it frame by frame: the NINE POSITIVE points must sit on the driver's body — if any land on the background, SAM2 keeps the driver and your render is wasted. The FOUR NEGATIVE corner points are intentional background guards; they belong off the subject. Only when the driver is fully masked on every frame, run "FINAL RENDER — RUN AFTER PREFLIGHT" (node 30).

Long-form notes (v4.2)

  • Wan 2.2 Animate renders in 77-frame context windows chained as 77 + 76 per extension. Pick a total of 77 + 76×k frames (154, 230, 305, ...) so the final window isn't padded. 305 = 77 + 76×3.
  • The v4.2 file ships with tiled VAE decode enabled — needed to fit a 305-frame decode on a 48GB card.
  • The SAM2 points in each file are placed for that file's driver trim (different start time = different framing). If you change the trim, re-place the points and re-run the preflight.
  • After rendering, check the frames on both sides of each window boundary (76/77, 152/153, 228/229) for seams before calling it done.

Honest limits

  • Verified to 4 chained windows (305 frames). Beyond that is untested.
  • The long driver's first ~3 seconds inherit a push-in from the source camera — it carries into the output.
  • Mask preflight is manual.
  • Silhouette mismatch is the second failure mode: a wide romantic tutu collapsed into a rigid tunic until we matched the target's silhouette to the driver. Pick silhouette-compatible references.
  • Minor rear-angle shift in the character's hip understructure (observed on the 77f short).
  • Rendering needs a ~48GB GPU (or aggressive offloading). The 305-frame render took ~19 minutes on an A6000.

Disclosure: I build ModelPilot (modelpilot.ai). This gist is the complete, free-to-download workflow — nothing gated.

{
"id": "8b7a9a57-2303-4ef5-9fc2-bf41713bd1fc",
"revision": 0,
"last_node_id": 171,
"last_link_id": 290,
"nodes": [
{
"id": 66,
"type": "ImageConcatMulti",
"pos": [
2179.510498046875,
-934.40625
],
"size": [
270,
150
],
"flags": {},
"order": 58,
"mode": 0,
"inputs": [
{
"name": "image_1",
"type": "IMAGE",
"link": 87
},
{
"name": "image_2",
"shape": 7,
"type": "IMAGE",
"link": 107
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": []
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2"
},
"widgets_values": [
2,
"left",
true,
null
]
},
{
"id": 137,
"type": "GetNode",
"pos": [
1961.2236328125,
-1158.060791015625
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
239
]
}
],
"title": "Get_face_images",
"properties": {},
"widgets_values": [
"face_images"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 73,
"type": "DWPreprocessor",
"pos": [
-82.09307098388672,
-1719.3780517578125
],
"size": [
371.1239013671875,
222
],
"flags": {},
"order": 50,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 253
},
{
"name": "resolution",
"shape": 7,
"type": "INT",
"widget": {
"name": "resolution"
},
"link": 262
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
242
]
},
{
"name": "POSE_KEYPOINT",
"type": "POSE_KEYPOINT",
"links": [
219
]
}
],
"properties": {
"cnr_id": "comfyui_controlnet_aux",
"ver": "1d7cdce8cb771fbc39a432a6338168c12a338ef4",
"Node name for S&R": "DWPreprocessor"
},
"widgets_values": [
"disable",
"enable",
"enable",
960,
"yolox_l.torchscript.pt",
"dw-ll_ucoco_384_bs5.torchscript.pt",
"disable"
]
},
{
"id": 140,
"type": "GetNode",
"pos": [
1961.2236328125,
-1108.70849609375
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
243
]
}
],
"title": "Get_pose_images",
"properties": {},
"widgets_values": [
"pose_images"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 134,
"type": "GetNode",
"pos": [
1962.9716796875,
-1211.3487548828125
],
"size": [
210,
34
],
"flags": {
"collapsed": true
},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
236
]
}
],
"title": "Get_reference_image",
"properties": {},
"widgets_values": [
"reference_image"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 148,
"type": "SetNode",
"pos": [
-548.7736206054688,
-2964.476318359375
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 43,
"mode": 0,
"inputs": [
{
"name": "AUDIO",
"type": "AUDIO",
"link": 255
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_input_audio",
"properties": {
"previousName": "input_audio"
},
"widgets_values": [
"input_audio"
]
},
{
"id": 149,
"type": "GetNode",
"pos": [
2563.26904296875,
-1141.013671875
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "AUDIO",
"type": "AUDIO",
"links": [
256
]
}
],
"title": "Get_input_audio",
"properties": {},
"widgets_values": [
"input_audio"
]
},
{
"id": 153,
"type": "SetNode",
"pos": [
-1548.88037109375,
-2490.176513671875
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 34,
"mode": 0,
"inputs": [
{
"name": "INT",
"type": "INT",
"link": 263
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_width",
"properties": {
"previousName": "width"
},
"widgets_values": [
"width"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 155,
"type": "GetNode",
"pos": [
839.2445068359375,
-151.7150421142578
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
265
]
}
],
"title": "Get_width",
"properties": {},
"widgets_values": [
"width"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 156,
"type": "GetNode",
"pos": [
839.2445068359375,
-101.90116119384766
],
"size": [
210,
50
],
"flags": {
"collapsed": true
},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
266
]
}
],
"title": "Get_height",
"properties": {},
"widgets_values": [
"height"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 154,
"type": "SetNode",
"pos": [
-1561.570556640625,
-2191.950927734375
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 36,
"mode": 0,
"inputs": [
{
"name": "INT",
"type": "INT",
"link": 264
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_height",
"properties": {
"previousName": "height"
},
"widgets_values": [
"height"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 63,
"type": "VHS_LoadVideo",
"pos": [
-876.9246826171875,
-3084.905517578125
],
"size": [
315.8014221191406,
491.6708679199219
],
"flags": {},
"order": 35,
"mode": 0,
"inputs": [
{
"name": "meta_batch",
"shape": 7,
"type": "VHS_BatchManager",
"link": null
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": null
},
{
"name": "custom_width",
"type": "INT",
"widget": {
"name": "custom_width"
},
"link": 257
},
{
"name": "custom_height",
"type": "INT",
"widget": {
"name": "custom_height"
},
"link": 258
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
248,
252
]
},
{
"name": "frame_count",
"type": "INT",
"links": [
267
]
},
{
"name": "audio",
"type": "AUDIO",
"links": [
255
]
},
{
"name": "video_info",
"type": "VHS_VIDEOINFO",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-videohelpersuite",
"ver": "8e4d79471bf1952154768e8435a9300077b534fa",
"Node name for S&R": "VHS_LoadVideo"
},
"widgets_values": {
"video": "driver_pixabay_168502_trimmed_77f.mp4",
"force_rate": 16,
"custom_width": 960,
"custom_height": 544,
"frame_load_cap": 77,
"skip_first_frames": 0,
"select_every_nth": 1,
"format": "AnimateDiff",
"choose video to upload": "image",
"videopreview": {
"hidden": false,
"paused": false,
"params": {}
}
}
},
{
"id": 158,
"type": "GetNode",
"pos": [
839.2445068359375,
-54.97463607788086
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
268
]
}
],
"title": "Get_frame_count",
"properties": {},
"widgets_values": [
"frame_count"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 138,
"type": "GetNode",
"pos": [
839.2445068359375,
-298.4888610839844
],
"size": [
210,
34
],
"flags": {
"collapsed": true
},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
240
]
}
],
"title": "Get_face_images",
"properties": {},
"widgets_values": [
"face_images"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 131,
"type": "GetNode",
"pos": [
839.2445068359375,
-250.2536163330078
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 8,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
234
]
}
],
"title": "Get_background_image",
"properties": {},
"widgets_values": [
"background_image"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 143,
"type": "GetNode",
"pos": [
839.2445068359375,
-197.3696746826172
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 9,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": [
247
]
}
],
"title": "Get_mask",
"properties": {},
"widgets_values": [
"mask"
],
"color": "#1c5715",
"bgcolor": "#1f401b"
},
{
"id": 104,
"type": "Sam2Segmentation",
"pos": [
88.05400848388672,
-2168.088623046875
],
"size": [
272.087890625,
182
],
"flags": {},
"order": 49,
"mode": 0,
"inputs": [
{
"name": "sam2_model",
"type": "SAM2MODEL",
"link": 185
},
{
"name": "image",
"type": "IMAGE",
"link": 274
},
{
"name": "coordinates_positive",
"shape": 7,
"type": "STRING",
"link": 210
},
{
"name": "coordinates_negative",
"shape": 7,
"type": "STRING",
"link": 290
},
{
"name": "bboxes",
"shape": 7,
"type": "BBOX",
"link": null
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "mask",
"type": "MASK",
"links": [
187
]
}
],
"properties": {
"cnr_id": "ComfyUI-segment-anything-2",
"ver": "c59676b008a76237002926f684d0ca3a9b29ac54",
"Node name for S&R": "Sam2Segmentation"
},
"widgets_values": [
false,
false
]
},
{
"id": 102,
"type": "DownloadAndLoadSAM2Model",
"pos": [
-315.14263916015625,
-2171.609619140625
],
"size": [
270,
130
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "sam2_model",
"type": "SAM2MODEL",
"links": [
185
]
}
],
"properties": {
"cnr_id": "ComfyUI-segment-anything-2",
"ver": "c59676b008a76237002926f684d0ca3a9b29ac54",
"Node name for S&R": "DownloadAndLoadSAM2Model"
},
"widgets_values": [
"sam2_hiera_base_plus.safetensors",
"video",
"cuda",
"fp16"
]
},
{
"id": 157,
"type": "SetNode",
"pos": [
-528.8223266601562,
-3030.21337890625
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 42,
"mode": 0,
"inputs": [
{
"name": "INT",
"type": "INT",
"link": 267
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_frame_count",
"properties": {
"previousName": "frame_count"
},
"widgets_values": [
"frame_count"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 144,
"type": "SetNode",
"pos": [
-522.720947265625,
-3107.148681640625
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 40,
"mode": 0,
"inputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"link": 248
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
273,
274
]
}
],
"title": "Set_input_video",
"properties": {
"previousName": "input_video"
},
"widgets_values": [
"input_video"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 152,
"type": "PixelPerfectResolution",
"pos": [
-311.1593322753906,
-1577.993408203125
],
"size": [
291.71484375,
106
],
"flags": {
"collapsed": true
},
"order": 47,
"mode": 0,
"inputs": [
{
"name": "original_image",
"type": "IMAGE",
"link": 277
},
{
"name": "image_gen_width",
"type": "INT",
"widget": {
"name": "image_gen_width"
},
"link": 260
},
{
"name": "image_gen_height",
"type": "INT",
"widget": {
"name": "image_gen_height"
},
"link": 261
}
],
"outputs": [
{
"name": "RESOLUTION (INT)",
"type": "INT",
"links": [
262
]
}
],
"properties": {
"cnr_id": "comfyui_controlnet_aux",
"ver": "1d7cdce8cb771fbc39a432a6338168c12a338ef4",
"Node name for S&R": "PixelPerfectResolution"
},
"widgets_values": [
512,
512,
"Just Resize"
]
},
{
"id": 128,
"type": "SetNode",
"pos": [
-837.5716552734375,
-1617.045654296875
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 44,
"mode": 0,
"inputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"link": 231
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_reference_image",
"properties": {
"previousName": "reference_image"
},
"widgets_values": [
"reference_image"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 64,
"type": "ImageResizeKJv2",
"pos": [
-1150.337158203125,
-1641.8170166015625
],
"size": [
270,
336
],
"flags": {},
"order": 37,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 82
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": null
},
{
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": 286
},
{
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": 287
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
231
]
},
{
"name": "width",
"type": "INT",
"links": []
},
{
"name": "height",
"type": "INT",
"links": []
},
{
"name": "mask",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2",
"Node name for S&R": "ImageResizeKJv2"
},
"widgets_values": [
832,
480,
"lanczos",
"pad_edge_pixel",
"0, 0, 0",
"top",
16,
"cpu",
"<tr><td>Output: </td><td><b>1</b> x <b>832</b> x <b>480 | 4.57MB</b></td></tr>"
]
},
{
"id": 57,
"type": "LoadImage",
"pos": [
-1494.461181640625,
-1645.7747802734375
],
"size": [
274.080078125,
314
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
82
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.57",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"reference_v4_fitted.png",
"image"
]
},
{
"id": 147,
"type": "Reroute",
"pos": [
-388.029296875,
-1801.8837890625
],
"size": [
75,
26
],
"flags": {},
"order": 41,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 252
}
],
"outputs": [
{
"name": "",
"type": "IMAGE",
"links": [
253,
254,
277
]
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 120,
"type": "FaceMaskFromPoseKeypoints",
"pos": [
-16.19053840637207,
-1425.648681640625
],
"size": [
306.0855407714844,
82
],
"flags": {},
"order": 54,
"mode": 0,
"inputs": [
{
"name": "pose_kps",
"type": "POSE_KEYPOINT",
"link": 219
}
],
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": [
228
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "FaceMaskFromPoseKeypoints"
},
"widgets_values": [
0
]
},
{
"id": 139,
"type": "SetNode",
"pos": [
335.95703125,
-1690.017822265625
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 53,
"mode": 0,
"inputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"link": 242
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_pose_images",
"properties": {
"previousName": "pose_images"
},
"widgets_values": [
"pose_images"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 96,
"type": "ImageCropByMaskAndResize",
"pos": [
350.61248779296875,
-1616.07763671875
],
"size": [
306.0923767089844,
170
],
"flags": {},
"order": 57,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 254
},
{
"name": "mask",
"type": "MASK",
"link": 228
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
237
]
},
{
"name": "masks",
"type": "MASK",
"links": null
},
{
"name": "bbox",
"type": "BBOX",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2",
"Node name for S&R": "ImageCropByMaskAndResize"
},
"widgets_values": [
512,
0,
128,
512
]
},
{
"id": 135,
"type": "SetNode",
"pos": [
506.7708435058594,
-1389.1231689453125
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 60,
"mode": 0,
"inputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"link": 237
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
238
]
}
],
"title": "Set_face_images",
"properties": {
"previousName": "face_images"
},
"widgets_values": [
"face_images"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 100,
"type": "GrowMask",
"pos": [
443.1268310546875,
-2160.896728515625
],
"size": [
270,
82
],
"flags": {
"collapsed": false
},
"order": 52,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 187
}
],
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": [
198
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.59",
"Node name for S&R": "GrowMask"
},
"widgets_values": [
10,
true
]
},
{
"id": 108,
"type": "BlockifyMask",
"pos": [
794.3612060546875,
-2156.6572265625
],
"size": [
270,
58
],
"flags": {},
"order": 56,
"mode": 0,
"inputs": [
{
"name": "masks",
"type": "MASK",
"link": 198
}
],
"outputs": [
{
"name": "mask",
"type": "MASK",
"links": [
245
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2",
"Node name for S&R": "BlockifyMask"
},
"widgets_values": [
32
]
},
{
"id": 142,
"type": "SetNode",
"pos": [
1086.6927490234375,
-2124.5263671875
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 59,
"mode": 0,
"inputs": [
{
"name": "MASK",
"type": "MASK",
"link": 245
}
],
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": [
246
]
}
],
"title": "Set_mask",
"properties": {
"previousName": "mask"
},
"widgets_values": [
"mask"
],
"color": "#1c5715",
"bgcolor": "#1f401b"
},
{
"id": 99,
"type": "DrawMaskOnImage",
"pos": [
1222.5340576171875,
-2132.91455078125
],
"size": [
270,
78
],
"flags": {},
"order": 62,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 250
},
{
"name": "mask",
"type": "MASK",
"link": 246
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
233
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2",
"Node name for S&R": "DrawMaskOnImage"
},
"widgets_values": [
"0, 0, 0"
]
},
{
"id": 146,
"type": "GetNode",
"pos": [
1086.932861328125,
-2184.602783203125
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 12,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
250
]
}
],
"title": "Get_input_video",
"properties": {},
"widgets_values": [
"input_video"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 127,
"type": "Note",
"pos": [
1003.365966796875,
-2048.283935546875
],
"size": [
210,
88
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"These are new nodes in KJNodes"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 130,
"type": "SetNode",
"pos": [
1294.1051025390625,
-2211.976806640625
],
"size": [
211.05747985839844,
60
],
"flags": {
"collapsed": true
},
"order": 64,
"mode": 0,
"inputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"link": 233
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
251
]
}
],
"title": "Set_background_image",
"properties": {
"previousName": "background_image"
},
"widgets_values": [
"background_image"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 112,
"type": "VHS_VideoCombine",
"pos": [
736.973388671875,
-1793.3670654296875
],
"size": [
395.6411437988281,
688.4248046875
],
"flags": {},
"order": 63,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 238
},
{
"name": "audio",
"shape": 7,
"type": "AUDIO",
"link": null
},
{
"name": "meta_batch",
"shape": 7,
"type": "VHS_BatchManager",
"link": null
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": null
}
],
"outputs": [
{
"name": "Filenames",
"type": "VHS_FILENAMES",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-videohelpersuite",
"ver": "8e4d79471bf1952154768e8435a9300077b534fa",
"Node name for S&R": "VHS_VideoCombine"
},
"widgets_values": {
"frame_rate": 16,
"loop_count": 0,
"filename_prefix": "WanVideo2_1_T2V",
"format": "video/h264-mp4",
"pix_fmt": "yuv420p",
"crf": 19,
"save_metadata": true,
"trim_to_audio": false,
"pingpong": false,
"save_output": false,
"videopreview": {
"hidden": false,
"paused": false,
"params": {}
}
}
},
{
"id": 163,
"type": "GetNode",
"pos": [
1090.755859375,
-452.4495849609375
],
"size": [
210,
34
],
"flags": {
"collapsed": true
},
"order": 14,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "WANVAE",
"type": "WANVAE",
"links": [
280
]
}
],
"title": "Get_VAE",
"properties": {},
"widgets_values": [
"VAE"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 71,
"type": "CLIPVisionLoader",
"pos": [
-1004.4947509765625,
-186.4078826904297
],
"size": [
270,
58
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP_VISION",
"type": "CLIP_VISION",
"links": [
97
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.59",
"Node name for S&R": "CLIPVisionLoader"
},
"widgets_values": [
"clip_vision_h.safetensors"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 70,
"type": "WanVideoClipVisionEncode",
"pos": [
508.54974365234375,
-290.390869140625
],
"size": [
280.9771423339844,
262
],
"flags": {},
"order": 30,
"mode": 0,
"inputs": [
{
"name": "clip_vision",
"type": "CLIP_VISION",
"link": 97
},
{
"name": "image_1",
"type": "IMAGE",
"link": 235
},
{
"name": "image_2",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "negative_image",
"shape": 7,
"type": "IMAGE",
"link": null
}
],
"outputs": [
{
"name": "image_embeds",
"type": "WANVIDIMAGE_CLIPEMBEDS",
"links": [
96
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoClipVisionEncode"
},
"widgets_values": [
1,
1,
"center",
"average",
true,
0,
0.5
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 133,
"type": "GetNode",
"pos": [
514.5181274414062,
-366.3446350097656
],
"size": [
210,
50
],
"flags": {
"collapsed": true
},
"order": 16,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
235,
282
]
}
],
"title": "Get_reference_image",
"properties": {},
"widgets_values": [
"reference_image"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 141,
"type": "GetNode",
"pos": [
840.1184692382812,
-377.10418701171875
],
"size": [
210,
34
],
"flags": {
"collapsed": true
},
"order": 17,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
244
]
}
],
"title": "Get_pose_images",
"properties": {},
"widgets_values": [
"pose_images"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 35,
"type": "WanVideoTorchCompileSettings",
"pos": [
-1638.0140380859375,
-850.6221313476562
],
"size": [
390.5999755859375,
202
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "torch_compile_args",
"type": "WANCOMPILEARGS",
"slot_index": 0,
"links": []
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoTorchCompileSettings"
},
"widgets_values": [
"inductor",
false,
"default",
false,
64,
true,
128
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 38,
"type": "WanVideoVAELoader",
"pos": [
-1061.71875,
-440.96533203125
],
"size": [
416.25482177734375,
82
],
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "compile_args",
"shape": 7,
"type": "WANCOMPILEARGS",
"link": null
}
],
"outputs": [
{
"name": "vae",
"type": "WANVAE",
"slot_index": 0,
"links": [
278
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoVAELoader"
},
"widgets_values": [
"wanvideo/Wan2_1_VAE_bf16.safetensors",
"bf16"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 161,
"type": "SetNode",
"pos": [
-751.2538452148438,
-298.3697509765625
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 32,
"mode": 0,
"inputs": [
{
"name": "WANVAE",
"type": "WANVAE",
"link": 278
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_VAE",
"properties": {
"previousName": "VAE"
},
"widgets_values": [
"VAE"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 77,
"type": "ImageConcatMulti",
"pos": [
2172.789306640625,
-1205.032470703125
],
"size": [
270,
190
],
"flags": {},
"order": 33,
"mode": 0,
"inputs": [
{
"name": "image_1",
"type": "IMAGE",
"link": 236
},
{
"name": "image_2",
"shape": 7,
"type": "IMAGE",
"link": 239
},
{
"name": "image_3",
"shape": 7,
"type": "IMAGE",
"link": 243
},
{
"name": "image_4",
"shape": 7,
"type": "IMAGE",
"link": 249
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
107
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2"
},
"widgets_values": [
4,
"down",
true,
null
]
},
{
"id": 145,
"type": "GetNode",
"pos": [
1983.325927734375,
-1057.8370361328125
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 20,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
249
]
}
],
"title": "Get_input_video",
"properties": {},
"widgets_values": [
"input_video"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 28,
"type": "WanVideoDecode",
"pos": [
2004.9820556640625,
-425.4451599121094
],
"size": [
280.3896179199219,
198
],
"flags": {},
"order": 51,
"mode": 0,
"inputs": [
{
"name": "vae",
"type": "WANVAE",
"link": 279
},
{
"name": "samples",
"type": "LATENT",
"link": 33
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"slot_index": 0,
"links": [
48
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoDecode"
},
"widgets_values": [
true,
272,
272,
144,
128,
"default"
]
},
{
"id": 162,
"type": "GetNode",
"pos": [
2003.236328125,
-507.4252014160156
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 21,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "WANVAE",
"type": "WANVAE",
"links": [
279
]
}
],
"title": "Get_VAE",
"properties": {},
"widgets_values": [
"VAE"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 42,
"type": "GetImageSizeAndCount",
"pos": [
2075.12939453125,
-676.8621826171875
],
"size": [
277.20001220703125,
86
],
"flags": {},
"order": 55,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 48
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"slot_index": 0,
"links": [
87,
89
]
},
{
"label": "832 width",
"name": "width",
"type": "INT",
"links": null
},
{
"label": "480 height",
"name": "height",
"type": "INT",
"links": null
},
{
"label": "154 count",
"name": "count",
"type": "INT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2",
"Node name for S&R": "GetImageSizeAndCount"
},
"widgets_values": []
},
{
"id": 107,
"type": "PointsEditor",
"pos": [
-152.01199340820312,
-3141.888671875
],
"size": [
877,
780
],
"flags": {},
"order": 46,
"mode": 0,
"inputs": [
{
"name": "bg_image",
"shape": 7,
"type": "IMAGE",
"link": 273
}
],
"outputs": [
{
"name": "positive_coords",
"type": "STRING",
"links": [
210
]
},
{
"name": "negative_coords",
"type": "STRING",
"links": [
290
]
},
{
"name": "bbox",
"type": "BBOX",
"links": []
},
{
"name": "bbox_mask",
"type": "MASK",
"links": null
},
{
"name": "cropped_image",
"type": "IMAGE",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2",
"Node name for S&R": "PointsEditor",
"points": "PointsEditor",
"neg_points": "PointsEditor"
},
"widgets_values": [
"{\"positive\": [{\"x\": 308.16, \"y\": 378.88}, {\"x\": 308.16, \"y\": 522.24}, {\"x\": 247.68, \"y\": 542.72}, {\"x\": 403.2, \"y\": 542.72}, {\"x\": 351.36, \"y\": 614.4}, {\"x\": 328.32, \"y\": 686.08}, {\"x\": 391.68, \"y\": 696.32}, {\"x\": 316.8, \"y\": 778.24}, {\"x\": 391.68, \"y\": 788.48}], \"negative\": [{\"x\": 28.8, \"y\": 51.2}, {\"x\": 547.1999999999999, \"y\": 51.2}, {\"x\": 28.8, \"y\": 972.8}, {\"x\": 547.1999999999999, \"y\": 972.8}]}",
"[{\"x\": 308.16, \"y\": 378.88}, {\"x\": 308.16, \"y\": 522.24}, {\"x\": 247.68, \"y\": 542.72}, {\"x\": 403.2, \"y\": 542.72}, {\"x\": 351.36, \"y\": 614.4}, {\"x\": 328.32, \"y\": 686.08}, {\"x\": 391.68, \"y\": 696.32}, {\"x\": 316.8, \"y\": 778.24}, {\"x\": 391.68, \"y\": 788.48}]",
"[{\"x\": 28.8, \"y\": 51.2}, {\"x\": 547.1999999999999, \"y\": 51.2}, {\"x\": 28.8, \"y\": 972.8}, {\"x\": 547.1999999999999, \"y\": 972.8}]",
"[{}]",
"[{}]",
"xyxy",
576,
1024,
false,
"",
null
]
},
{
"id": 110,
"type": "WanVideoContextOptions",
"pos": [
1348.4697265625,
-852.4442138671875
],
"size": [
275.783203125,
202
],
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "reference_latent",
"shape": 7,
"type": "LATENT",
"link": null
}
],
"outputs": [
{
"name": "context_options",
"type": "WANVIDCONTEXT",
"links": []
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoContextOptions"
},
"widgets_values": [
"static_standard",
81,
4,
32,
true,
false,
"linear"
]
},
{
"id": 30,
"type": "VHS_VideoCombine",
"pos": [
2567.14990234375,
-1061.8238525390625
],
"size": [
1704.5582275390625,
1145.424072265625
],
"flags": {},
"order": 61,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 89
},
{
"name": "audio",
"shape": 7,
"type": "AUDIO",
"link": 256
},
{
"name": "meta_batch",
"shape": 7,
"type": "VHS_BatchManager",
"link": null
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": null
}
],
"outputs": [
{
"name": "Filenames",
"type": "VHS_FILENAMES",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-videohelpersuite",
"ver": "8e4d79471bf1952154768e8435a9300077b534fa",
"Node name for S&R": "VHS_VideoCombine"
},
"widgets_values": {
"frame_rate": 16,
"loop_count": 0,
"filename_prefix": "Wanimate",
"format": "video/h264-mp4",
"pix_fmt": "yuv420p",
"crf": 19,
"save_metadata": true,
"trim_to_audio": false,
"pingpong": false,
"save_output": false,
"videopreview": {
"hidden": false,
"paused": false,
"params": {}
}
},
"title": "FINAL RENDER \u2014 RUN AFTER PREFLIGHT"
},
{
"id": 65,
"type": "WanVideoTextEncodeCached",
"pos": [
849.0535278320312,
84.82170104980469
],
"size": [
488.4488220214844,
362.56817626953125
],
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "extender_args",
"shape": 7,
"type": "WANVIDEOPROMPTEXTENDER_ARGS",
"link": null
}
],
"outputs": [
{
"name": "text_embeds",
"type": "WANVIDEOTEXTEMBEDS",
"links": [
281
]
},
{
"name": "negative_text_embeds",
"type": "WANVIDEOTEXTEMBEDS",
"links": null
},
{
"name": "positive_prompt",
"type": "STRING",
"links": null
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoTextEncodeCached"
},
"widgets_values": [
"umt5-xxl-enc-bf16.safetensors",
"bf16",
"Original ivory ceramic humanoid ballet android wearing a sleek opaque fitted\nwhite armored ballet leotard with a compact short rigid peplum and integrated\nmechanical hip plating, performing a graceful dance beneath a theatrical\nspotlight, fully plated robotic face, neck, arms, hands, legs and pointe\nfeet, graphite mechanical joints, circular rear helmet servos, subtle cyan\noptical accents, precise articulated hands and feet, premium cinematic\nscience-fiction character, photorealistic 35mm film, clearly visible full\nbody including both feet, locked centered camera, generous margin around the\nentire subject, fitted costume remains intact throughout the motion\n",
"human skin, flesh, organic hair, ponytail, wig, human face, bare human arms,\nbare human hands, bare human legs, bare human feet, translucent skin, wide\nskirt, long skirt, romantic tutu, flowing fabric, translucent sleeves,\ntrousers, loose pants, loincloth, exposed crotch, exposed hips, underwear,\ntoy proportions, child proportions, oversized head, short legs, extra limbs,\nmissing limbs, fused joints, mutated hands, duplicate body, cropped feet,\ncropped body, offscreen subject, camera pan, flat lighting, underexposed,\nblack silhouette, text, logo, watermark, low quality\n",
"disabled",
false,
"gpu"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 75,
"type": "VHS_VideoCombine",
"pos": [
1008.5711669921875,
-3120.213134765625
],
"size": [
743.6680297851562,
765.5007934570312
],
"flags": {},
"order": 65,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 251
},
{
"name": "audio",
"shape": 7,
"type": "AUDIO",
"link": null
},
{
"name": "meta_batch",
"shape": 7,
"type": "VHS_BatchManager",
"link": null
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": null
}
],
"outputs": [
{
"name": "Filenames",
"type": "VHS_FILENAMES",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-videohelpersuite",
"ver": "8e4d79471bf1952154768e8435a9300077b534fa",
"Node name for S&R": "VHS_VideoCombine"
},
"widgets_values": {
"frame_rate": 16,
"loop_count": 0,
"filename_prefix": "WanVideo2_1_T2V",
"format": "video/h264-mp4",
"pix_fmt": "yuv420p",
"crf": 19,
"save_metadata": true,
"trim_to_audio": false,
"pingpong": false,
"save_output": false,
"videopreview": {
"hidden": false,
"paused": false,
"params": {}
}
},
"title": "SAM2 MASK PREFLIGHT \u2014 RUN THIS FIRST"
},
{
"id": 169,
"type": "Note",
"pos": [
802.1256103515625,
-809.209228515625
],
"size": [
484.7705383300781,
194.427978515625
],
"flags": {},
"order": 24,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"For long generations you can use either context options, or the original long gen method, which is activated when frame_window_size is smaller than total frames(num_frames). When using this method the window size stays constant, extra frames are generated in the case the last window is cut short.\n\nWhen using context options, set num_frames and frame_window_size to be equal\n\nOtherwise set frame_window_size to something the model is capable of doing normally, original default is 77, 81 seems to work too.\n\nOriginal method is probably better for motion etc, and is faster, but the benefit of context windows is that it doesn't degrade over time on long clips."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 27,
"type": "WanVideoSampler",
"pos": [
1626.8492431640625,
-523.2383422851562
],
"size": [
315,
874.1923217773438
],
"flags": {},
"order": 48,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "WANVIDEOMODEL",
"link": 63
},
{
"name": "image_embeds",
"type": "WANVIDIMAGE_EMBEDS",
"link": 84
},
{
"name": "text_embeds",
"shape": 7,
"type": "WANVIDEOTEXTEMBEDS",
"link": 281
},
{
"name": "samples",
"shape": 7,
"type": "LATENT",
"link": null
},
{
"name": "feta_args",
"shape": 7,
"type": "FETAARGS",
"link": null
},
{
"name": "context_options",
"shape": 7,
"type": "WANVIDCONTEXT",
"link": null
},
{
"name": "cache_args",
"shape": 7,
"type": "CACHEARGS",
"link": null
},
{
"name": "flowedit_args",
"shape": 7,
"type": "FLOWEDITARGS",
"link": null
},
{
"name": "slg_args",
"shape": 7,
"type": "SLGARGS",
"link": null
},
{
"name": "loop_args",
"shape": 7,
"type": "LOOPARGS",
"link": null
},
{
"name": "experimental_args",
"shape": 7,
"type": "EXPERIMENTALARGS",
"link": null
},
{
"name": "sigmas",
"shape": 7,
"type": "SIGMAS",
"link": null
},
{
"name": "unianimate_poses",
"shape": 7,
"type": "UNIANIMATE_POSE",
"link": null
},
{
"name": "fantasytalking_embeds",
"shape": 7,
"type": "FANTASYTALKING_EMBEDS",
"link": null
},
{
"name": "uni3c_embeds",
"shape": 7,
"type": "UNI3C_EMBEDS",
"link": null
},
{
"name": "multitalk_embeds",
"shape": 7,
"type": "MULTITALK_EMBEDS",
"link": null
},
{
"name": "freeinit_args",
"shape": 7,
"type": "FREEINITARGS",
"link": null
}
],
"outputs": [
{
"name": "samples",
"type": "LATENT",
"slot_index": 0,
"links": [
33
]
},
{
"name": "denoised_samples",
"type": "LATENT",
"links": null
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoSampler"
},
"widgets_values": [
6,
1,
5,
42,
"fixed",
true,
"dpm++_sde",
0,
1,
"",
"comfy",
0,
-1,
false
]
},
{
"id": 62,
"type": "WanVideoAnimateEmbeds",
"pos": [
1086.8922119140625,
-380.2015380859375
],
"size": [
274.2164001464844,
370
],
"flags": {},
"order": 38,
"mode": 0,
"inputs": [
{
"name": "vae",
"type": "WANVAE",
"link": 280
},
{
"name": "clip_embeds",
"shape": 7,
"type": "WANVIDIMAGE_CLIPEMBEDS",
"link": 96
},
{
"name": "ref_images",
"shape": 7,
"type": "IMAGE",
"link": 282
},
{
"name": "pose_images",
"shape": 7,
"type": "IMAGE",
"link": 244
},
{
"name": "face_images",
"shape": 7,
"type": "IMAGE",
"link": 240
},
{
"name": "bg_images",
"shape": 7,
"type": "IMAGE",
"link": 234
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": 247
},
{
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": 265
},
{
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": 266
},
{
"name": "num_frames",
"type": "INT",
"widget": {
"name": "num_frames"
},
"link": 268
}
],
"outputs": [
{
"name": "image_embeds",
"type": "WANVIDIMAGE_EMBEDS",
"links": [
84
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoAnimateEmbeds"
},
"widgets_values": [
832,
480,
501,
false,
77,
"disabled",
1,
1,
false
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 22,
"type": "WanVideoModelLoader",
"pos": [
-1192.9228515625,
-849.8587036132812
],
"size": [
601.9249267578125,
294
],
"flags": {},
"order": 31,
"mode": 0,
"inputs": [
{
"name": "compile_args",
"shape": 7,
"type": "WANCOMPILEARGS",
"link": null
},
{
"name": "block_swap_args",
"shape": 7,
"type": "BLOCKSWAPARGS",
"link": null
},
{
"name": "lora",
"shape": 7,
"type": "WANVIDLORA",
"link": null
},
{
"name": "vram_management_args",
"shape": 7,
"type": "VRAM_MANAGEMENTARGS",
"link": null
},
{
"name": "extra_model",
"shape": 7,
"type": "VACEPATH",
"link": null
},
{
"name": "fantasytalking_model",
"shape": 7,
"type": "FANTASYTALKINGMODEL",
"link": null
},
{
"name": "multitalk_model",
"shape": 7,
"type": "MULTITALKMODEL",
"link": null
},
{
"name": "fantasyportrait_model",
"shape": 7,
"type": "FANTASYPORTRAITMODEL",
"link": null
}
],
"outputs": [
{
"name": "model",
"type": "WANVIDEOMODEL",
"slot_index": 0,
"links": [
59
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoModelLoader"
},
"widgets_values": [
"WanVideo/2_2/Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors",
"fp16",
"disabled",
"offload_device",
"sdpa"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 150,
"type": "INTConstant",
"pos": [
-1639.0865478515625,
-2431.45458984375
],
"size": [
210,
58
],
"flags": {},
"order": 25,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "value",
"type": "INT",
"links": [
257,
260,
263,
286
]
}
],
"title": "Width",
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2",
"Node name for S&R": "INTConstant"
},
"widgets_values": [
576
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 151,
"type": "INTConstant",
"pos": [
-1648.6280517578125,
-2298.50390625
],
"size": [
210,
58
],
"flags": {
"collapsed": false
},
"order": 26,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "value",
"type": "INT",
"links": [
258,
261,
264,
287
]
}
],
"title": "Height",
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2",
"Node name for S&R": "INTConstant"
},
"widgets_values": [
1024
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 51,
"type": "WanVideoBlockSwap",
"pos": [
-512.7796020507812,
-249.57748413085938
],
"size": [
281.404296875,
202
],
"flags": {},
"order": 27,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "block_swap_args",
"type": "BLOCKSWAPARGS",
"links": [
64
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoBlockSwap"
},
"widgets_values": [
25,
false,
false,
true,
0,
1,
false
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 50,
"type": "WanVideoSetBlockSwap",
"pos": [
-192.057373046875,
-363.11090087890625
],
"size": [
201.76815795898438,
46
],
"flags": {},
"order": 45,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "WANVIDEOMODEL",
"link": 62
},
{
"name": "block_swap_args",
"shape": 7,
"type": "BLOCKSWAPARGS",
"link": 64
}
],
"outputs": [
{
"name": "model",
"type": "WANVIDEOMODEL",
"links": [
63
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoSetBlockSwap"
},
"widgets_values": [],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 48,
"type": "WanVideoSetLoRAs",
"pos": [
-497.01580810546875,
-361.6855773925781
],
"size": [
174.53378295898438,
46
],
"flags": {},
"order": 39,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "WANVIDEOMODEL",
"link": 59
},
{
"name": "lora",
"shape": 7,
"type": "WANVIDLORA",
"link": 289
}
],
"outputs": [
{
"name": "model",
"type": "WANVIDEOMODEL",
"links": [
62
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoSetLoRAs"
},
"widgets_values": [],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 164,
"type": "MarkdownNote",
"pos": [
-1683.265380859375,
-454.3368835449219
],
"size": [
541.7905883789062,
240.68362426757812
],
"flags": {},
"order": 28,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "Markdown Note: Model Links",
"properties": {},
"widgets_values": [
"Model links:\n\n[https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/tree/main/Wan22Animate](https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/tree/main/Wan22Animate)\n\nLoRA:\n\n[https://huggingface.co/Kijai/WanVideo_comfy/tree/main/Lightx2v](https://huggingface.co/Kijai/WanVideo_comfy/tree/main/Lightx2v)\n\n[https://huggingface.co/Kijai/WanVideo_comfy/blob/main/WanAnimate_relight_lora_fp16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/WanAnimate_relight_lora_fp16.safetensors)\n\nText encoder:\n\n[https://huggingface.co/Kijai/WanVideo_comfy/blob/main/umt5-xxl-enc-bf16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/umt5-xxl-enc-bf16.safetensors)\n\nVAE:\n\n[https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Wan2_1_VAE_bf16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Wan2_1_VAE_bf16.safetensors)"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 171,
"type": "WanVideoLoraSelectMulti",
"pos": [
-488.4440612792969,
-873.2754516601562
],
"size": [
583.3719482421875,
342
],
"flags": {},
"order": 29,
"mode": 0,
"inputs": [
{
"name": "prev_lora",
"shape": 7,
"type": "WANVIDLORA",
"link": null
},
{
"name": "blocks",
"shape": 7,
"type": "SELECTEDBLOCKS",
"link": null
}
],
"outputs": [
{
"name": "lora",
"type": "WANVIDLORA",
"links": [
289
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoLoraSelectMulti"
},
"widgets_values": [
"WanVideo/WanAnimate_relight_lora_fp16.safetensors",
0.0,
"WanVideo/Lightx2v/lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
1.0,
"none",
1,
"none",
1,
"none",
1,
false,
false
],
"color": "#223",
"bgcolor": "#335"
}
],
"links": [
[
33,
27,
0,
28,
1,
"LATENT"
],
[
48,
28,
0,
42,
0,
"IMAGE"
],
[
59,
22,
0,
48,
0,
"WANVIDEOMODEL"
],
[
62,
48,
0,
50,
0,
"WANVIDEOMODEL"
],
[
63,
50,
0,
27,
0,
"WANVIDEOMODEL"
],
[
64,
51,
0,
50,
1,
"BLOCKSWAPARGS"
],
[
82,
57,
0,
64,
0,
"IMAGE"
],
[
84,
62,
0,
27,
1,
"WANVIDIMAGE_EMBEDS"
],
[
87,
42,
0,
66,
0,
"IMAGE"
],
[
89,
42,
0,
30,
0,
"IMAGE"
],
[
96,
70,
0,
62,
1,
"WANVIDIMAGE_CLIPEMBEDS"
],
[
97,
71,
0,
70,
0,
"CLIP_VISION"
],
[
107,
77,
0,
66,
1,
"IMAGE"
],
[
185,
102,
0,
104,
0,
"SAM2MODEL"
],
[
187,
104,
0,
100,
0,
"MASK"
],
[
198,
100,
0,
108,
0,
"MASK"
],
[
210,
107,
0,
104,
2,
"STRING"
],
[
219,
73,
1,
120,
0,
"POSE_KEYPOINT"
],
[
228,
120,
0,
96,
1,
"MASK"
],
[
231,
64,
0,
128,
0,
"*"
],
[
233,
99,
0,
130,
0,
"*"
],
[
234,
131,
0,
62,
5,
"IMAGE"
],
[
235,
133,
0,
70,
1,
"IMAGE"
],
[
236,
134,
0,
77,
0,
"IMAGE"
],
[
237,
96,
0,
135,
0,
"*"
],
[
238,
135,
0,
112,
0,
"IMAGE"
],
[
239,
137,
0,
77,
1,
"IMAGE"
],
[
240,
138,
0,
62,
4,
"IMAGE"
],
[
242,
73,
0,
139,
0,
"IMAGE"
],
[
243,
140,
0,
77,
2,
"IMAGE"
],
[
244,
141,
0,
62,
3,
"IMAGE"
],
[
245,
108,
0,
142,
0,
"*"
],
[
246,
142,
0,
99,
1,
"MASK"
],
[
247,
143,
0,
62,
6,
"MASK"
],
[
248,
63,
0,
144,
0,
"*"
],
[
249,
145,
0,
77,
3,
"IMAGE"
],
[
250,
146,
0,
99,
0,
"IMAGE"
],
[
251,
130,
0,
75,
0,
"IMAGE"
],
[
252,
63,
0,
147,
0,
"*"
],
[
253,
147,
0,
73,
0,
"IMAGE"
],
[
254,
147,
0,
96,
0,
"IMAGE"
],
[
255,
63,
2,
148,
0,
"*"
],
[
256,
149,
0,
30,
1,
"AUDIO"
],
[
257,
150,
0,
63,
2,
"INT"
],
[
258,
151,
0,
63,
3,
"INT"
],
[
260,
150,
0,
152,
1,
"INT"
],
[
261,
151,
0,
152,
2,
"INT"
],
[
262,
152,
0,
73,
1,
"INT"
],
[
263,
150,
0,
153,
0,
"*"
],
[
264,
151,
0,
154,
0,
"*"
],
[
265,
155,
0,
62,
7,
"INT"
],
[
266,
156,
0,
62,
8,
"INT"
],
[
267,
63,
1,
157,
0,
"*"
],
[
268,
158,
0,
62,
9,
"INT"
],
[
273,
144,
0,
107,
0,
"IMAGE"
],
[
274,
144,
0,
104,
1,
"IMAGE"
],
[
277,
147,
0,
152,
0,
"IMAGE"
],
[
278,
38,
0,
161,
0,
"*"
],
[
279,
162,
0,
28,
0,
"WANVAE"
],
[
280,
163,
0,
62,
0,
"WANVAE"
],
[
281,
65,
0,
27,
2,
"WANVIDEOTEXTEMBEDS"
],
[
282,
133,
0,
62,
2,
"IMAGE"
],
[
286,
150,
0,
64,
2,
"INT"
],
[
287,
151,
0,
64,
3,
"INT"
],
[
289,
171,
0,
48,
1,
"WANVIDLORA"
],
[
290,
107,
1,
104,
3,
"STRING"
]
],
"groups": [
{
"id": 1,
"title": "Reference Image",
"bounding": [
-1587.3319091796875,
-1799.568115234375,
990.079833984375,
724.450439453125
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 2,
"title": "Face Images",
"bounding": [
-434.9107666015625,
-1922.5238037109375,
1687.06396484375,
824.740478515625
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 3,
"title": "Background Masking",
"bounding": [
-1227.062744140625,
-3202.685302734375,
3011.00830078125,
1249.1099853515625
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 4,
"title": "Models",
"bounding": [
-1716.375244140625,
-996.8324584960938,
2156.392578125,
1012.5536499023438
],
"color": "#88A",
"font_size": 24,
"flags": {}
},
{
"id": 5,
"title": "Result collage",
"bounding": [
1890.0743408203125,
-1353.1484375,
629.7467041015625,
605.8086547851562
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.5730855330116865,
"offset": [
1111.237643652482,
1360.120906754177
]
},
"frontendVersion": "1.27.4",
"node_versions": {
"ComfyUI-WanVideoWrapper": "088128b224242e110d3906c6750e9a3a348a659b",
"ComfyUI-KJNodes": "00da1910634fbf314d407608efb281ae6f7f1ba2",
"ComfyUI-VideoHelperSuite": "8e4d79471bf1952154768e8435a9300077b534fa",
"comfyui_controlnet_aux": "1d7cdce8cb771fbc39a432a6338168c12a338ef4",
"ComfyUI-segment-anything-2": "c59676b008a76237002926f684d0ca3a9b29ac54"
},
"VHS_latentpreview": true,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}
{
"id": "8b7a9a57-2303-4ef5-9fc2-bf41713bd1fc",
"revision": 0,
"last_node_id": 171,
"last_link_id": 290,
"nodes": [
{
"id": 66,
"type": "ImageConcatMulti",
"pos": [
2179.510498046875,
-934.40625
],
"size": [
270,
150
],
"flags": {},
"order": 58,
"mode": 0,
"inputs": [
{
"name": "image_1",
"type": "IMAGE",
"link": 87
},
{
"name": "image_2",
"shape": 7,
"type": "IMAGE",
"link": 107
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": []
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2"
},
"widgets_values": [
2,
"left",
true,
null
]
},
{
"id": 137,
"type": "GetNode",
"pos": [
1961.2236328125,
-1158.060791015625
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
239
]
}
],
"title": "Get_face_images",
"properties": {},
"widgets_values": [
"face_images"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 73,
"type": "DWPreprocessor",
"pos": [
-82.09307098388672,
-1719.3780517578125
],
"size": [
371.1239013671875,
222
],
"flags": {},
"order": 50,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 253
},
{
"name": "resolution",
"shape": 7,
"type": "INT",
"widget": {
"name": "resolution"
},
"link": 262
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
242
]
},
{
"name": "POSE_KEYPOINT",
"type": "POSE_KEYPOINT",
"links": [
219
]
}
],
"properties": {
"cnr_id": "comfyui_controlnet_aux",
"ver": "1d7cdce8cb771fbc39a432a6338168c12a338ef4",
"Node name for S&R": "DWPreprocessor"
},
"widgets_values": [
"disable",
"enable",
"enable",
960,
"yolox_l.torchscript.pt",
"dw-ll_ucoco_384_bs5.torchscript.pt",
"disable"
]
},
{
"id": 140,
"type": "GetNode",
"pos": [
1961.2236328125,
-1108.70849609375
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
243
]
}
],
"title": "Get_pose_images",
"properties": {},
"widgets_values": [
"pose_images"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 134,
"type": "GetNode",
"pos": [
1962.9716796875,
-1211.3487548828125
],
"size": [
210,
34
],
"flags": {
"collapsed": true
},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
236
]
}
],
"title": "Get_reference_image",
"properties": {},
"widgets_values": [
"reference_image"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 148,
"type": "SetNode",
"pos": [
-548.7736206054688,
-2964.476318359375
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 43,
"mode": 0,
"inputs": [
{
"name": "AUDIO",
"type": "AUDIO",
"link": 255
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_input_audio",
"properties": {
"previousName": "input_audio"
},
"widgets_values": [
"input_audio"
]
},
{
"id": 149,
"type": "GetNode",
"pos": [
2563.26904296875,
-1141.013671875
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "AUDIO",
"type": "AUDIO",
"links": [
256
]
}
],
"title": "Get_input_audio",
"properties": {},
"widgets_values": [
"input_audio"
]
},
{
"id": 153,
"type": "SetNode",
"pos": [
-1548.88037109375,
-2490.176513671875
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 34,
"mode": 0,
"inputs": [
{
"name": "INT",
"type": "INT",
"link": 263
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_width",
"properties": {
"previousName": "width"
},
"widgets_values": [
"width"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 155,
"type": "GetNode",
"pos": [
839.2445068359375,
-151.7150421142578
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
265
]
}
],
"title": "Get_width",
"properties": {},
"widgets_values": [
"width"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 156,
"type": "GetNode",
"pos": [
839.2445068359375,
-101.90116119384766
],
"size": [
210,
50
],
"flags": {
"collapsed": true
},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
266
]
}
],
"title": "Get_height",
"properties": {},
"widgets_values": [
"height"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 154,
"type": "SetNode",
"pos": [
-1561.570556640625,
-2191.950927734375
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 36,
"mode": 0,
"inputs": [
{
"name": "INT",
"type": "INT",
"link": 264
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_height",
"properties": {
"previousName": "height"
},
"widgets_values": [
"height"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 63,
"type": "VHS_LoadVideo",
"pos": [
-876.9246826171875,
-3084.905517578125
],
"size": [
315.8014221191406,
491.6708679199219
],
"flags": {},
"order": 35,
"mode": 0,
"inputs": [
{
"name": "meta_batch",
"shape": 7,
"type": "VHS_BatchManager",
"link": null
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": null
},
{
"name": "custom_width",
"type": "INT",
"widget": {
"name": "custom_width"
},
"link": 257
},
{
"name": "custom_height",
"type": "INT",
"widget": {
"name": "custom_height"
},
"link": 258
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
248,
252
]
},
{
"name": "frame_count",
"type": "INT",
"links": [
267
]
},
{
"name": "audio",
"type": "AUDIO",
"links": [
255
]
},
{
"name": "video_info",
"type": "VHS_VIDEOINFO",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-videohelpersuite",
"ver": "8e4d79471bf1952154768e8435a9300077b534fa",
"Node name for S&R": "VHS_LoadVideo"
},
"widgets_values": {
"video": "driver_pixabay_168502_long_305f.mp4",
"force_rate": 16,
"custom_width": 960,
"custom_height": 544,
"frame_load_cap": 305,
"skip_first_frames": 0,
"select_every_nth": 1,
"format": "AnimateDiff",
"choose video to upload": "image",
"videopreview": {
"hidden": false,
"paused": false,
"params": {}
}
}
},
{
"id": 158,
"type": "GetNode",
"pos": [
839.2445068359375,
-54.97463607788086
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
268
]
}
],
"title": "Get_frame_count",
"properties": {},
"widgets_values": [
"frame_count"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 138,
"type": "GetNode",
"pos": [
839.2445068359375,
-298.4888610839844
],
"size": [
210,
34
],
"flags": {
"collapsed": true
},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
240
]
}
],
"title": "Get_face_images",
"properties": {},
"widgets_values": [
"face_images"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 131,
"type": "GetNode",
"pos": [
839.2445068359375,
-250.2536163330078
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 8,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
234
]
}
],
"title": "Get_background_image",
"properties": {},
"widgets_values": [
"background_image"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 143,
"type": "GetNode",
"pos": [
839.2445068359375,
-197.3696746826172
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 9,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": [
247
]
}
],
"title": "Get_mask",
"properties": {},
"widgets_values": [
"mask"
],
"color": "#1c5715",
"bgcolor": "#1f401b"
},
{
"id": 104,
"type": "Sam2Segmentation",
"pos": [
88.05400848388672,
-2168.088623046875
],
"size": [
272.087890625,
182
],
"flags": {},
"order": 49,
"mode": 0,
"inputs": [
{
"name": "sam2_model",
"type": "SAM2MODEL",
"link": 185
},
{
"name": "image",
"type": "IMAGE",
"link": 274
},
{
"name": "coordinates_positive",
"shape": 7,
"type": "STRING",
"link": 210
},
{
"name": "coordinates_negative",
"shape": 7,
"type": "STRING",
"link": 290
},
{
"name": "bboxes",
"shape": 7,
"type": "BBOX",
"link": null
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "mask",
"type": "MASK",
"links": [
187
]
}
],
"properties": {
"cnr_id": "ComfyUI-segment-anything-2",
"ver": "c59676b008a76237002926f684d0ca3a9b29ac54",
"Node name for S&R": "Sam2Segmentation"
},
"widgets_values": [
false,
false
]
},
{
"id": 102,
"type": "DownloadAndLoadSAM2Model",
"pos": [
-315.14263916015625,
-2171.609619140625
],
"size": [
270,
130
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "sam2_model",
"type": "SAM2MODEL",
"links": [
185
]
}
],
"properties": {
"cnr_id": "ComfyUI-segment-anything-2",
"ver": "c59676b008a76237002926f684d0ca3a9b29ac54",
"Node name for S&R": "DownloadAndLoadSAM2Model"
},
"widgets_values": [
"sam2_hiera_base_plus.safetensors",
"video",
"cuda",
"fp16"
]
},
{
"id": 157,
"type": "SetNode",
"pos": [
-528.8223266601562,
-3030.21337890625
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 42,
"mode": 0,
"inputs": [
{
"name": "INT",
"type": "INT",
"link": 267
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_frame_count",
"properties": {
"previousName": "frame_count"
},
"widgets_values": [
"frame_count"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 144,
"type": "SetNode",
"pos": [
-522.720947265625,
-3107.148681640625
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 40,
"mode": 0,
"inputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"link": 248
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
273,
274
]
}
],
"title": "Set_input_video",
"properties": {
"previousName": "input_video"
},
"widgets_values": [
"input_video"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 152,
"type": "PixelPerfectResolution",
"pos": [
-311.1593322753906,
-1577.993408203125
],
"size": [
291.71484375,
106
],
"flags": {
"collapsed": true
},
"order": 47,
"mode": 0,
"inputs": [
{
"name": "original_image",
"type": "IMAGE",
"link": 277
},
{
"name": "image_gen_width",
"type": "INT",
"widget": {
"name": "image_gen_width"
},
"link": 260
},
{
"name": "image_gen_height",
"type": "INT",
"widget": {
"name": "image_gen_height"
},
"link": 261
}
],
"outputs": [
{
"name": "RESOLUTION (INT)",
"type": "INT",
"links": [
262
]
}
],
"properties": {
"cnr_id": "comfyui_controlnet_aux",
"ver": "1d7cdce8cb771fbc39a432a6338168c12a338ef4",
"Node name for S&R": "PixelPerfectResolution"
},
"widgets_values": [
512,
512,
"Just Resize"
]
},
{
"id": 128,
"type": "SetNode",
"pos": [
-837.5716552734375,
-1617.045654296875
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 44,
"mode": 0,
"inputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"link": 231
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_reference_image",
"properties": {
"previousName": "reference_image"
},
"widgets_values": [
"reference_image"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 64,
"type": "ImageResizeKJv2",
"pos": [
-1150.337158203125,
-1641.8170166015625
],
"size": [
270,
336
],
"flags": {},
"order": 37,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 82
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": null
},
{
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": 286
},
{
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": 287
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
231
]
},
{
"name": "width",
"type": "INT",
"links": []
},
{
"name": "height",
"type": "INT",
"links": []
},
{
"name": "mask",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2",
"Node name for S&R": "ImageResizeKJv2"
},
"widgets_values": [
832,
480,
"lanczos",
"pad_edge_pixel",
"0, 0, 0",
"top",
16,
"cpu",
"<tr><td>Output: </td><td><b>1</b> x <b>832</b> x <b>480 | 4.57MB</b></td></tr>"
]
},
{
"id": 57,
"type": "LoadImage",
"pos": [
-1494.461181640625,
-1645.7747802734375
],
"size": [
274.080078125,
314
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
82
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.57",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"motion-transfer-robot-ballerina-fitted-reference-v4.png",
"image"
]
},
{
"id": 147,
"type": "Reroute",
"pos": [
-388.029296875,
-1801.8837890625
],
"size": [
75,
26
],
"flags": {},
"order": 41,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 252
}
],
"outputs": [
{
"name": "",
"type": "IMAGE",
"links": [
253,
254,
277
]
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 120,
"type": "FaceMaskFromPoseKeypoints",
"pos": [
-16.19053840637207,
-1425.648681640625
],
"size": [
306.0855407714844,
82
],
"flags": {},
"order": 54,
"mode": 0,
"inputs": [
{
"name": "pose_kps",
"type": "POSE_KEYPOINT",
"link": 219
}
],
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": [
228
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "FaceMaskFromPoseKeypoints"
},
"widgets_values": [
0
]
},
{
"id": 139,
"type": "SetNode",
"pos": [
335.95703125,
-1690.017822265625
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 53,
"mode": 0,
"inputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"link": 242
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_pose_images",
"properties": {
"previousName": "pose_images"
},
"widgets_values": [
"pose_images"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 96,
"type": "ImageCropByMaskAndResize",
"pos": [
350.61248779296875,
-1616.07763671875
],
"size": [
306.0923767089844,
170
],
"flags": {},
"order": 57,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 254
},
{
"name": "mask",
"type": "MASK",
"link": 228
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
237
]
},
{
"name": "masks",
"type": "MASK",
"links": null
},
{
"name": "bbox",
"type": "BBOX",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2",
"Node name for S&R": "ImageCropByMaskAndResize"
},
"widgets_values": [
512,
0,
128,
512
]
},
{
"id": 135,
"type": "SetNode",
"pos": [
506.7708435058594,
-1389.1231689453125
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 60,
"mode": 0,
"inputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"link": 237
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
238
]
}
],
"title": "Set_face_images",
"properties": {
"previousName": "face_images"
},
"widgets_values": [
"face_images"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 100,
"type": "GrowMask",
"pos": [
443.1268310546875,
-2160.896728515625
],
"size": [
270,
82
],
"flags": {
"collapsed": false
},
"order": 52,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 187
}
],
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": [
198
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.59",
"Node name for S&R": "GrowMask"
},
"widgets_values": [
10,
true
]
},
{
"id": 108,
"type": "BlockifyMask",
"pos": [
794.3612060546875,
-2156.6572265625
],
"size": [
270,
58
],
"flags": {},
"order": 56,
"mode": 0,
"inputs": [
{
"name": "masks",
"type": "MASK",
"link": 198
}
],
"outputs": [
{
"name": "mask",
"type": "MASK",
"links": [
245
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2",
"Node name for S&R": "BlockifyMask"
},
"widgets_values": [
32
]
},
{
"id": 142,
"type": "SetNode",
"pos": [
1086.6927490234375,
-2124.5263671875
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 59,
"mode": 0,
"inputs": [
{
"name": "MASK",
"type": "MASK",
"link": 245
}
],
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": [
246
]
}
],
"title": "Set_mask",
"properties": {
"previousName": "mask"
},
"widgets_values": [
"mask"
],
"color": "#1c5715",
"bgcolor": "#1f401b"
},
{
"id": 99,
"type": "DrawMaskOnImage",
"pos": [
1222.5340576171875,
-2132.91455078125
],
"size": [
270,
78
],
"flags": {},
"order": 62,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 250
},
{
"name": "mask",
"type": "MASK",
"link": 246
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
233
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2",
"Node name for S&R": "DrawMaskOnImage"
},
"widgets_values": [
"0, 0, 0"
]
},
{
"id": 146,
"type": "GetNode",
"pos": [
1086.932861328125,
-2184.602783203125
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 12,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
250
]
}
],
"title": "Get_input_video",
"properties": {},
"widgets_values": [
"input_video"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 127,
"type": "Note",
"pos": [
1003.365966796875,
-2048.283935546875
],
"size": [
210,
88
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"These are new nodes in KJNodes"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 130,
"type": "SetNode",
"pos": [
1294.1051025390625,
-2211.976806640625
],
"size": [
211.05747985839844,
60
],
"flags": {
"collapsed": true
},
"order": 64,
"mode": 0,
"inputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"link": 233
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
251
]
}
],
"title": "Set_background_image",
"properties": {
"previousName": "background_image"
},
"widgets_values": [
"background_image"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 112,
"type": "VHS_VideoCombine",
"pos": [
736.973388671875,
-1793.3670654296875
],
"size": [
395.6411437988281,
688.4248046875
],
"flags": {},
"order": 63,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 238
},
{
"name": "audio",
"shape": 7,
"type": "AUDIO",
"link": null
},
{
"name": "meta_batch",
"shape": 7,
"type": "VHS_BatchManager",
"link": null
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": null
}
],
"outputs": [
{
"name": "Filenames",
"type": "VHS_FILENAMES",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-videohelpersuite",
"ver": "8e4d79471bf1952154768e8435a9300077b534fa",
"Node name for S&R": "VHS_VideoCombine"
},
"widgets_values": {
"frame_rate": 16,
"loop_count": 0,
"filename_prefix": "WanVideo2_1_T2V",
"format": "video/h264-mp4",
"pix_fmt": "yuv420p",
"crf": 19,
"save_metadata": true,
"trim_to_audio": false,
"pingpong": false,
"save_output": false,
"videopreview": {
"hidden": false,
"paused": false,
"params": {}
}
}
},
{
"id": 163,
"type": "GetNode",
"pos": [
1090.755859375,
-452.4495849609375
],
"size": [
210,
34
],
"flags": {
"collapsed": true
},
"order": 14,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "WANVAE",
"type": "WANVAE",
"links": [
280
]
}
],
"title": "Get_VAE",
"properties": {},
"widgets_values": [
"VAE"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 71,
"type": "CLIPVisionLoader",
"pos": [
-1004.4947509765625,
-186.4078826904297
],
"size": [
270,
58
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP_VISION",
"type": "CLIP_VISION",
"links": [
97
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.59",
"Node name for S&R": "CLIPVisionLoader"
},
"widgets_values": [
"clip_vision_h.safetensors"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 70,
"type": "WanVideoClipVisionEncode",
"pos": [
508.54974365234375,
-290.390869140625
],
"size": [
280.9771423339844,
262
],
"flags": {},
"order": 30,
"mode": 0,
"inputs": [
{
"name": "clip_vision",
"type": "CLIP_VISION",
"link": 97
},
{
"name": "image_1",
"type": "IMAGE",
"link": 235
},
{
"name": "image_2",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "negative_image",
"shape": 7,
"type": "IMAGE",
"link": null
}
],
"outputs": [
{
"name": "image_embeds",
"type": "WANVIDIMAGE_CLIPEMBEDS",
"links": [
96
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoClipVisionEncode"
},
"widgets_values": [
1,
1,
"center",
"average",
true,
0,
0.5
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 133,
"type": "GetNode",
"pos": [
514.5181274414062,
-366.3446350097656
],
"size": [
210,
50
],
"flags": {
"collapsed": true
},
"order": 16,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
235,
282
]
}
],
"title": "Get_reference_image",
"properties": {},
"widgets_values": [
"reference_image"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 141,
"type": "GetNode",
"pos": [
840.1184692382812,
-377.10418701171875
],
"size": [
210,
34
],
"flags": {
"collapsed": true
},
"order": 17,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
244
]
}
],
"title": "Get_pose_images",
"properties": {},
"widgets_values": [
"pose_images"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 35,
"type": "WanVideoTorchCompileSettings",
"pos": [
-1638.0140380859375,
-850.6221313476562
],
"size": [
390.5999755859375,
202
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "torch_compile_args",
"type": "WANCOMPILEARGS",
"slot_index": 0,
"links": []
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoTorchCompileSettings"
},
"widgets_values": [
"inductor",
false,
"default",
false,
64,
true,
128
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 38,
"type": "WanVideoVAELoader",
"pos": [
-1061.71875,
-440.96533203125
],
"size": [
416.25482177734375,
82
],
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "compile_args",
"shape": 7,
"type": "WANCOMPILEARGS",
"link": null
}
],
"outputs": [
{
"name": "vae",
"type": "WANVAE",
"slot_index": 0,
"links": [
278
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoVAELoader"
},
"widgets_values": [
"wanvideo/Wan2_1_VAE_bf16.safetensors",
"bf16"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 161,
"type": "SetNode",
"pos": [
-751.2538452148438,
-298.3697509765625
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 32,
"mode": 0,
"inputs": [
{
"name": "WANVAE",
"type": "WANVAE",
"link": 278
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_VAE",
"properties": {
"previousName": "VAE"
},
"widgets_values": [
"VAE"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 77,
"type": "ImageConcatMulti",
"pos": [
2172.789306640625,
-1205.032470703125
],
"size": [
270,
190
],
"flags": {},
"order": 33,
"mode": 0,
"inputs": [
{
"name": "image_1",
"type": "IMAGE",
"link": 236
},
{
"name": "image_2",
"shape": 7,
"type": "IMAGE",
"link": 239
},
{
"name": "image_3",
"shape": 7,
"type": "IMAGE",
"link": 243
},
{
"name": "image_4",
"shape": 7,
"type": "IMAGE",
"link": 249
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
107
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2"
},
"widgets_values": [
4,
"down",
true,
null
]
},
{
"id": 145,
"type": "GetNode",
"pos": [
1983.325927734375,
-1057.8370361328125
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 20,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
249
]
}
],
"title": "Get_input_video",
"properties": {},
"widgets_values": [
"input_video"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 28,
"type": "WanVideoDecode",
"pos": [
2004.9820556640625,
-425.4451599121094
],
"size": [
280.3896179199219,
198
],
"flags": {},
"order": 51,
"mode": 0,
"inputs": [
{
"name": "vae",
"type": "WANVAE",
"link": 279
},
{
"name": "samples",
"type": "LATENT",
"link": 33
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"slot_index": 0,
"links": [
48
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoDecode"
},
"widgets_values": [
true,
272,
272,
144,
128,
"default"
]
},
{
"id": 162,
"type": "GetNode",
"pos": [
2003.236328125,
-507.4252014160156
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 21,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "WANVAE",
"type": "WANVAE",
"links": [
279
]
}
],
"title": "Get_VAE",
"properties": {},
"widgets_values": [
"VAE"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 42,
"type": "GetImageSizeAndCount",
"pos": [
2075.12939453125,
-676.8621826171875
],
"size": [
277.20001220703125,
86
],
"flags": {},
"order": 55,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 48
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"slot_index": 0,
"links": [
87,
89
]
},
{
"label": "832 width",
"name": "width",
"type": "INT",
"links": null
},
{
"label": "480 height",
"name": "height",
"type": "INT",
"links": null
},
{
"label": "154 count",
"name": "count",
"type": "INT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2",
"Node name for S&R": "GetImageSizeAndCount"
},
"widgets_values": []
},
{
"id": 107,
"type": "PointsEditor",
"pos": [
-152.01199340820312,
-3141.888671875
],
"size": [
877,
780
],
"flags": {},
"order": 46,
"mode": 0,
"inputs": [
{
"name": "bg_image",
"shape": 7,
"type": "IMAGE",
"link": 273
}
],
"outputs": [
{
"name": "positive_coords",
"type": "STRING",
"links": [
210
]
},
{
"name": "negative_coords",
"type": "STRING",
"links": [
290
]
},
{
"name": "bbox",
"type": "BBOX",
"links": []
},
{
"name": "bbox_mask",
"type": "MASK",
"links": null
},
{
"name": "cropped_image",
"type": "IMAGE",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2",
"Node name for S&R": "PointsEditor",
"points": "PointsEditor",
"neg_points": "PointsEditor"
},
"widgets_values": [
"{\"positive\": [{\"x\": 305.28000000000003, \"y\": 378.88}, {\"x\": 311.04, \"y\": 491.52}, {\"x\": 311.04, \"y\": 558.08}, {\"x\": 178.56, \"y\": 450.56}, {\"x\": 437.76, \"y\": 460.8}, {\"x\": 276.48, \"y\": 634.88}, {\"x\": 345.59999999999997, \"y\": 634.88}, {\"x\": 253.44, \"y\": 737.28}, {\"x\": 362.88, \"y\": 737.28}], \"negative\": [{\"x\": 28.8, \"y\": 51.2}, {\"x\": 547.1999999999999, \"y\": 51.2}, {\"x\": 28.8, \"y\": 972.8}, {\"x\": 547.1999999999999, \"y\": 972.8}]}",
"[{\"x\": 305.28000000000003, \"y\": 378.88}, {\"x\": 311.04, \"y\": 491.52}, {\"x\": 311.04, \"y\": 558.08}, {\"x\": 178.56, \"y\": 450.56}, {\"x\": 437.76, \"y\": 460.8}, {\"x\": 276.48, \"y\": 634.88}, {\"x\": 345.59999999999997, \"y\": 634.88}, {\"x\": 253.44, \"y\": 737.28}, {\"x\": 362.88, \"y\": 737.28}]",
"[{\"x\": 28.8, \"y\": 51.2}, {\"x\": 547.1999999999999, \"y\": 51.2}, {\"x\": 28.8, \"y\": 972.8}, {\"x\": 547.1999999999999, \"y\": 972.8}]",
"[{}]",
"[{}]",
"xyxy",
576,
1024,
false,
"",
null
]
},
{
"id": 110,
"type": "WanVideoContextOptions",
"pos": [
1348.4697265625,
-852.4442138671875
],
"size": [
275.783203125,
202
],
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "reference_latent",
"shape": 7,
"type": "LATENT",
"link": null
}
],
"outputs": [
{
"name": "context_options",
"type": "WANVIDCONTEXT",
"links": []
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoContextOptions"
},
"widgets_values": [
"static_standard",
81,
4,
32,
true,
false,
"linear"
]
},
{
"id": 30,
"type": "VHS_VideoCombine",
"pos": [
2567.14990234375,
-1061.8238525390625
],
"size": [
1704.5582275390625,
1145.424072265625
],
"flags": {},
"order": 61,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 89
},
{
"name": "audio",
"shape": 7,
"type": "AUDIO",
"link": 256
},
{
"name": "meta_batch",
"shape": 7,
"type": "VHS_BatchManager",
"link": null
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": null
}
],
"outputs": [
{
"name": "Filenames",
"type": "VHS_FILENAMES",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-videohelpersuite",
"ver": "8e4d79471bf1952154768e8435a9300077b534fa",
"Node name for S&R": "VHS_VideoCombine"
},
"widgets_values": {
"frame_rate": 16,
"loop_count": 0,
"filename_prefix": "Wanimate",
"format": "video/h264-mp4",
"pix_fmt": "yuv420p",
"crf": 19,
"save_metadata": true,
"trim_to_audio": false,
"pingpong": false,
"save_output": false,
"videopreview": {
"hidden": false,
"paused": false,
"params": {}
}
},
"title": "FINAL RENDER \u2014 RUN AFTER PREFLIGHT"
},
{
"id": 65,
"type": "WanVideoTextEncodeCached",
"pos": [
849.0535278320312,
84.82170104980469
],
"size": [
488.4488220214844,
362.56817626953125
],
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "extender_args",
"shape": 7,
"type": "WANVIDEOPROMPTEXTENDER_ARGS",
"link": null
}
],
"outputs": [
{
"name": "text_embeds",
"type": "WANVIDEOTEXTEMBEDS",
"links": [
281
]
},
{
"name": "negative_text_embeds",
"type": "WANVIDEOTEXTEMBEDS",
"links": null
},
{
"name": "positive_prompt",
"type": "STRING",
"links": null
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoTextEncodeCached"
},
"widgets_values": [
"umt5-xxl-enc-bf16.safetensors",
"bf16",
"Original ivory ceramic humanoid ballet android wearing a sleek opaque fitted\nwhite armored ballet leotard with a compact short rigid peplum and integrated\nmechanical hip plating, performing a graceful dance beneath a theatrical\nspotlight, fully plated robotic face, neck, arms, hands, legs and pointe\nfeet, graphite mechanical joints, circular rear helmet servos, subtle cyan\noptical accents, precise articulated hands and feet, premium cinematic\nscience-fiction character, photorealistic 35mm film, clearly visible full\nbody including both feet, locked centered camera, generous margin around the\nentire subject, fitted costume remains intact throughout the motion\n",
"human skin, flesh, organic hair, ponytail, wig, human face, bare human arms,\nbare human hands, bare human legs, bare human feet, translucent skin, wide\nskirt, long skirt, romantic tutu, flowing fabric, translucent sleeves,\ntrousers, loose pants, loincloth, exposed crotch, exposed hips, underwear,\ntoy proportions, child proportions, oversized head, short legs, extra limbs,\nmissing limbs, fused joints, mutated hands, duplicate body, cropped feet,\ncropped body, offscreen subject, camera pan, flat lighting, underexposed,\nblack silhouette, text, logo, watermark, low quality\n",
"disabled",
false,
"gpu"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 75,
"type": "VHS_VideoCombine",
"pos": [
1008.5711669921875,
-3120.213134765625
],
"size": [
743.6680297851562,
765.5007934570312
],
"flags": {},
"order": 65,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 251
},
{
"name": "audio",
"shape": 7,
"type": "AUDIO",
"link": null
},
{
"name": "meta_batch",
"shape": 7,
"type": "VHS_BatchManager",
"link": null
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": null
}
],
"outputs": [
{
"name": "Filenames",
"type": "VHS_FILENAMES",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-videohelpersuite",
"ver": "8e4d79471bf1952154768e8435a9300077b534fa",
"Node name for S&R": "VHS_VideoCombine"
},
"widgets_values": {
"frame_rate": 16,
"loop_count": 0,
"filename_prefix": "WanVideo2_1_T2V",
"format": "video/h264-mp4",
"pix_fmt": "yuv420p",
"crf": 19,
"save_metadata": true,
"trim_to_audio": false,
"pingpong": false,
"save_output": false,
"videopreview": {
"hidden": false,
"paused": false,
"params": {}
}
},
"title": "SAM2 MASK PREFLIGHT \u2014 RUN THIS FIRST"
},
{
"id": 169,
"type": "Note",
"pos": [
802.1256103515625,
-809.209228515625
],
"size": [
484.7705383300781,
194.427978515625
],
"flags": {},
"order": 24,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"For long generations you can use either context options, or the original long gen method, which is activated when frame_window_size is smaller than total frames(num_frames). When using this method the window size stays constant, extra frames are generated in the case the last window is cut short.\n\nWhen using context options, set num_frames and frame_window_size to be equal\n\nOtherwise set frame_window_size to something the model is capable of doing normally, original default is 77, 81 seems to work too.\n\nOriginal method is probably better for motion etc, and is faster, but the benefit of context windows is that it doesn't degrade over time on long clips."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 27,
"type": "WanVideoSampler",
"pos": [
1626.8492431640625,
-523.2383422851562
],
"size": [
315,
874.1923217773438
],
"flags": {},
"order": 48,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "WANVIDEOMODEL",
"link": 63
},
{
"name": "image_embeds",
"type": "WANVIDIMAGE_EMBEDS",
"link": 84
},
{
"name": "text_embeds",
"shape": 7,
"type": "WANVIDEOTEXTEMBEDS",
"link": 281
},
{
"name": "samples",
"shape": 7,
"type": "LATENT",
"link": null
},
{
"name": "feta_args",
"shape": 7,
"type": "FETAARGS",
"link": null
},
{
"name": "context_options",
"shape": 7,
"type": "WANVIDCONTEXT",
"link": null
},
{
"name": "cache_args",
"shape": 7,
"type": "CACHEARGS",
"link": null
},
{
"name": "flowedit_args",
"shape": 7,
"type": "FLOWEDITARGS",
"link": null
},
{
"name": "slg_args",
"shape": 7,
"type": "SLGARGS",
"link": null
},
{
"name": "loop_args",
"shape": 7,
"type": "LOOPARGS",
"link": null
},
{
"name": "experimental_args",
"shape": 7,
"type": "EXPERIMENTALARGS",
"link": null
},
{
"name": "sigmas",
"shape": 7,
"type": "SIGMAS",
"link": null
},
{
"name": "unianimate_poses",
"shape": 7,
"type": "UNIANIMATE_POSE",
"link": null
},
{
"name": "fantasytalking_embeds",
"shape": 7,
"type": "FANTASYTALKING_EMBEDS",
"link": null
},
{
"name": "uni3c_embeds",
"shape": 7,
"type": "UNI3C_EMBEDS",
"link": null
},
{
"name": "multitalk_embeds",
"shape": 7,
"type": "MULTITALK_EMBEDS",
"link": null
},
{
"name": "freeinit_args",
"shape": 7,
"type": "FREEINITARGS",
"link": null
}
],
"outputs": [
{
"name": "samples",
"type": "LATENT",
"slot_index": 0,
"links": [
33
]
},
{
"name": "denoised_samples",
"type": "LATENT",
"links": null
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoSampler"
},
"widgets_values": [
6,
1,
5,
42,
"fixed",
true,
"dpm++_sde",
0,
1,
"",
"comfy",
0,
-1,
false
]
},
{
"id": 62,
"type": "WanVideoAnimateEmbeds",
"pos": [
1086.8922119140625,
-380.2015380859375
],
"size": [
274.2164001464844,
370
],
"flags": {},
"order": 38,
"mode": 0,
"inputs": [
{
"name": "vae",
"type": "WANVAE",
"link": 280
},
{
"name": "clip_embeds",
"shape": 7,
"type": "WANVIDIMAGE_CLIPEMBEDS",
"link": 96
},
{
"name": "ref_images",
"shape": 7,
"type": "IMAGE",
"link": 282
},
{
"name": "pose_images",
"shape": 7,
"type": "IMAGE",
"link": 244
},
{
"name": "face_images",
"shape": 7,
"type": "IMAGE",
"link": 240
},
{
"name": "bg_images",
"shape": 7,
"type": "IMAGE",
"link": 234
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": 247
},
{
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": 265
},
{
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": 266
},
{
"name": "num_frames",
"type": "INT",
"widget": {
"name": "num_frames"
},
"link": 268
}
],
"outputs": [
{
"name": "image_embeds",
"type": "WANVIDIMAGE_EMBEDS",
"links": [
84
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoAnimateEmbeds"
},
"widgets_values": [
832,
480,
501,
false,
77,
"disabled",
1,
1,
false
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 22,
"type": "WanVideoModelLoader",
"pos": [
-1192.9228515625,
-849.8587036132812
],
"size": [
601.9249267578125,
294
],
"flags": {},
"order": 31,
"mode": 0,
"inputs": [
{
"name": "compile_args",
"shape": 7,
"type": "WANCOMPILEARGS",
"link": null
},
{
"name": "block_swap_args",
"shape": 7,
"type": "BLOCKSWAPARGS",
"link": null
},
{
"name": "lora",
"shape": 7,
"type": "WANVIDLORA",
"link": null
},
{
"name": "vram_management_args",
"shape": 7,
"type": "VRAM_MANAGEMENTARGS",
"link": null
},
{
"name": "extra_model",
"shape": 7,
"type": "VACEPATH",
"link": null
},
{
"name": "fantasytalking_model",
"shape": 7,
"type": "FANTASYTALKINGMODEL",
"link": null
},
{
"name": "multitalk_model",
"shape": 7,
"type": "MULTITALKMODEL",
"link": null
},
{
"name": "fantasyportrait_model",
"shape": 7,
"type": "FANTASYPORTRAITMODEL",
"link": null
}
],
"outputs": [
{
"name": "model",
"type": "WANVIDEOMODEL",
"slot_index": 0,
"links": [
59
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoModelLoader"
},
"widgets_values": [
"WanVideo/2_2/Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors",
"fp16",
"disabled",
"offload_device",
"sdpa"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 150,
"type": "INTConstant",
"pos": [
-1639.0865478515625,
-2431.45458984375
],
"size": [
210,
58
],
"flags": {},
"order": 25,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "value",
"type": "INT",
"links": [
257,
260,
263,
286
]
}
],
"title": "Width",
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2",
"Node name for S&R": "INTConstant"
},
"widgets_values": [
576
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 151,
"type": "INTConstant",
"pos": [
-1648.6280517578125,
-2298.50390625
],
"size": [
210,
58
],
"flags": {
"collapsed": false
},
"order": 26,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "value",
"type": "INT",
"links": [
258,
261,
264,
287
]
}
],
"title": "Height",
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "00da1910634fbf314d407608efb281ae6f7f1ba2",
"Node name for S&R": "INTConstant"
},
"widgets_values": [
1024
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 51,
"type": "WanVideoBlockSwap",
"pos": [
-512.7796020507812,
-249.57748413085938
],
"size": [
281.404296875,
202
],
"flags": {},
"order": 27,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "block_swap_args",
"type": "BLOCKSWAPARGS",
"links": [
64
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoBlockSwap"
},
"widgets_values": [
25,
false,
false,
true,
0,
1,
false
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 50,
"type": "WanVideoSetBlockSwap",
"pos": [
-192.057373046875,
-363.11090087890625
],
"size": [
201.76815795898438,
46
],
"flags": {},
"order": 45,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "WANVIDEOMODEL",
"link": 62
},
{
"name": "block_swap_args",
"shape": 7,
"type": "BLOCKSWAPARGS",
"link": 64
}
],
"outputs": [
{
"name": "model",
"type": "WANVIDEOMODEL",
"links": [
63
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoSetBlockSwap"
},
"widgets_values": [],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 48,
"type": "WanVideoSetLoRAs",
"pos": [
-497.01580810546875,
-361.6855773925781
],
"size": [
174.53378295898438,
46
],
"flags": {},
"order": 39,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "WANVIDEOMODEL",
"link": 59
},
{
"name": "lora",
"shape": 7,
"type": "WANVIDLORA",
"link": 289
}
],
"outputs": [
{
"name": "model",
"type": "WANVIDEOMODEL",
"links": [
62
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoSetLoRAs"
},
"widgets_values": [],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 164,
"type": "MarkdownNote",
"pos": [
-1683.265380859375,
-454.3368835449219
],
"size": [
541.7905883789062,
240.68362426757812
],
"flags": {},
"order": 28,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "Markdown Note: Model Links",
"properties": {},
"widgets_values": [
"Model links:\n\n[https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/tree/main/Wan22Animate](https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/tree/main/Wan22Animate)\n\nLoRA:\n\n[https://huggingface.co/Kijai/WanVideo_comfy/tree/main/Lightx2v](https://huggingface.co/Kijai/WanVideo_comfy/tree/main/Lightx2v)\n\n[https://huggingface.co/Kijai/WanVideo_comfy/blob/main/WanAnimate_relight_lora_fp16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/WanAnimate_relight_lora_fp16.safetensors)\n\nText encoder:\n\n[https://huggingface.co/Kijai/WanVideo_comfy/blob/main/umt5-xxl-enc-bf16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/umt5-xxl-enc-bf16.safetensors)\n\nVAE:\n\n[https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Wan2_1_VAE_bf16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Wan2_1_VAE_bf16.safetensors)"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 171,
"type": "WanVideoLoraSelectMulti",
"pos": [
-488.4440612792969,
-873.2754516601562
],
"size": [
583.3719482421875,
342
],
"flags": {},
"order": 29,
"mode": 0,
"inputs": [
{
"name": "prev_lora",
"shape": 7,
"type": "WANVIDLORA",
"link": null
},
{
"name": "blocks",
"shape": 7,
"type": "SELECTEDBLOCKS",
"link": null
}
],
"outputs": [
{
"name": "lora",
"type": "WANVIDLORA",
"links": [
289
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "088128b224242e110d3906c6750e9a3a348a659b",
"Node name for S&R": "WanVideoLoraSelectMulti"
},
"widgets_values": [
"WanVideo/WanAnimate_relight_lora_fp16.safetensors",
0.0,
"WanVideo/Lightx2v/lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
1.0,
"none",
1,
"none",
1,
"none",
1,
false,
false
],
"color": "#223",
"bgcolor": "#335"
}
],
"links": [
[
33,
27,
0,
28,
1,
"LATENT"
],
[
48,
28,
0,
42,
0,
"IMAGE"
],
[
59,
22,
0,
48,
0,
"WANVIDEOMODEL"
],
[
62,
48,
0,
50,
0,
"WANVIDEOMODEL"
],
[
63,
50,
0,
27,
0,
"WANVIDEOMODEL"
],
[
64,
51,
0,
50,
1,
"BLOCKSWAPARGS"
],
[
82,
57,
0,
64,
0,
"IMAGE"
],
[
84,
62,
0,
27,
1,
"WANVIDIMAGE_EMBEDS"
],
[
87,
42,
0,
66,
0,
"IMAGE"
],
[
89,
42,
0,
30,
0,
"IMAGE"
],
[
96,
70,
0,
62,
1,
"WANVIDIMAGE_CLIPEMBEDS"
],
[
97,
71,
0,
70,
0,
"CLIP_VISION"
],
[
107,
77,
0,
66,
1,
"IMAGE"
],
[
185,
102,
0,
104,
0,
"SAM2MODEL"
],
[
187,
104,
0,
100,
0,
"MASK"
],
[
198,
100,
0,
108,
0,
"MASK"
],
[
210,
107,
0,
104,
2,
"STRING"
],
[
219,
73,
1,
120,
0,
"POSE_KEYPOINT"
],
[
228,
120,
0,
96,
1,
"MASK"
],
[
231,
64,
0,
128,
0,
"*"
],
[
233,
99,
0,
130,
0,
"*"
],
[
234,
131,
0,
62,
5,
"IMAGE"
],
[
235,
133,
0,
70,
1,
"IMAGE"
],
[
236,
134,
0,
77,
0,
"IMAGE"
],
[
237,
96,
0,
135,
0,
"*"
],
[
238,
135,
0,
112,
0,
"IMAGE"
],
[
239,
137,
0,
77,
1,
"IMAGE"
],
[
240,
138,
0,
62,
4,
"IMAGE"
],
[
242,
73,
0,
139,
0,
"IMAGE"
],
[
243,
140,
0,
77,
2,
"IMAGE"
],
[
244,
141,
0,
62,
3,
"IMAGE"
],
[
245,
108,
0,
142,
0,
"*"
],
[
246,
142,
0,
99,
1,
"MASK"
],
[
247,
143,
0,
62,
6,
"MASK"
],
[
248,
63,
0,
144,
0,
"*"
],
[
249,
145,
0,
77,
3,
"IMAGE"
],
[
250,
146,
0,
99,
0,
"IMAGE"
],
[
251,
130,
0,
75,
0,
"IMAGE"
],
[
252,
63,
0,
147,
0,
"*"
],
[
253,
147,
0,
73,
0,
"IMAGE"
],
[
254,
147,
0,
96,
0,
"IMAGE"
],
[
255,
63,
2,
148,
0,
"*"
],
[
256,
149,
0,
30,
1,
"AUDIO"
],
[
257,
150,
0,
63,
2,
"INT"
],
[
258,
151,
0,
63,
3,
"INT"
],
[
260,
150,
0,
152,
1,
"INT"
],
[
261,
151,
0,
152,
2,
"INT"
],
[
262,
152,
0,
73,
1,
"INT"
],
[
263,
150,
0,
153,
0,
"*"
],
[
264,
151,
0,
154,
0,
"*"
],
[
265,
155,
0,
62,
7,
"INT"
],
[
266,
156,
0,
62,
8,
"INT"
],
[
267,
63,
1,
157,
0,
"*"
],
[
268,
158,
0,
62,
9,
"INT"
],
[
273,
144,
0,
107,
0,
"IMAGE"
],
[
274,
144,
0,
104,
1,
"IMAGE"
],
[
277,
147,
0,
152,
0,
"IMAGE"
],
[
278,
38,
0,
161,
0,
"*"
],
[
279,
162,
0,
28,
0,
"WANVAE"
],
[
280,
163,
0,
62,
0,
"WANVAE"
],
[
281,
65,
0,
27,
2,
"WANVIDEOTEXTEMBEDS"
],
[
282,
133,
0,
62,
2,
"IMAGE"
],
[
286,
150,
0,
64,
2,
"INT"
],
[
287,
151,
0,
64,
3,
"INT"
],
[
289,
171,
0,
48,
1,
"WANVIDLORA"
],
[
290,
107,
1,
104,
3,
"STRING"
]
],
"groups": [
{
"id": 1,
"title": "Reference Image",
"bounding": [
-1587.3319091796875,
-1799.568115234375,
990.079833984375,
724.450439453125
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 2,
"title": "Face Images",
"bounding": [
-434.9107666015625,
-1922.5238037109375,
1687.06396484375,
824.740478515625
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 3,
"title": "Background Masking",
"bounding": [
-1227.062744140625,
-3202.685302734375,
3011.00830078125,
1249.1099853515625
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 4,
"title": "Models",
"bounding": [
-1716.375244140625,
-996.8324584960938,
2156.392578125,
1012.5536499023438
],
"color": "#88A",
"font_size": 24,
"flags": {}
},
{
"id": 5,
"title": "Result collage",
"bounding": [
1890.0743408203125,
-1353.1484375,
629.7467041015625,
605.8086547851562
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.5730855330116865,
"offset": [
1111.237643652482,
1360.120906754177
]
},
"frontendVersion": "1.27.4",
"node_versions": {
"ComfyUI-WanVideoWrapper": "088128b224242e110d3906c6750e9a3a348a659b",
"ComfyUI-KJNodes": "00da1910634fbf314d407608efb281ae6f7f1ba2",
"ComfyUI-VideoHelperSuite": "8e4d79471bf1952154768e8435a9300077b534fa",
"comfyui_controlnet_aux": "1d7cdce8cb771fbc39a432a6338168c12a338ef4",
"ComfyUI-segment-anything-2": "c59676b008a76237002926f684d0ca3a9b29ac54"
},
"VHS_latentpreview": true,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}

Required revisions

Pin these exactly — the result was produced and verified on them.

Custom nodes (git commit)

  • ComfyUI-KJNodes: 00da1910634fbf314d407608efb281ae6f7f1ba2
  • ComfyUI-VideoHelperSuite: 8e4d79471bf1952154768e8435a9300077b534fa
  • ComfyUI-WanVideoWrapper: 088128b224242e110d3906c6750e9a3a348a659b
  • ComfyUI-segment-anything-2: c59676b008a76237002926f684d0ca3a9b29ac54
  • comfyui_controlnet_aux: 1d7cdce8cb771fbc39a432a6338168c12a338ef4

Models

  • Kijai/WanVideo_comfy_fp8_scaled: 033a4e487f60220b3d6e469599a6aebc46e13cee
  • Kijai/WanVideo_comfy: 8260d429d19fd7a72304cad059160b95d843913f
  • Comfy-Org/Wan_2.1_ComfyUI_repackaged: 06e001fc51048fb03433a6fb25334de7836704a5
  • Kijai/sam2-safetensors: f885607d88bb3f9145efa49c3e3c50a9e5bf13eb
  • hr16/yolox-onnx: a124b32c3b7c5cebda1c7cd96178f0f9d2050125
  • hr16/DWPose-TorchScript-BatchSize5: 359d662a9b33b73f6d0f21732baf8845f17bb4be

ComfyUI

  • version 0.13.0
  • frontend 1.38.13

V4.2 long-form validation (2026-07-18)

motion-transfer-v4.2-long-305f.json was rendered and verified on the SAME node commits, model revisions, and ComfyUI 0.13.0 / frontend 1.38.13 listed above — no pin changes. Differences from v4.1 are parameters only: frame cap 305 (77 + 76×3, window-aligned), driver trim start 4.9375s, tiled VAE decode enabled, reference/driver filenames. Seed 42, 6 steps, cfg 1, 576×1024 @ 16 fps unchanged.

Verified output: 305 frames, no visible seam at window boundaries 76/77, 152/153, 228/229.

10f6aa9044bfd8b37420ec9228dfd292d947e117e64b32628ba6e302dd787f7c motion-transfer-v4.1.json
505518ca8d3cac99a3ae60a675809a751374f3142120b16f567229306dc6345f motion-transfer-v4.2-long-305f.json
bc50849b043cd52b224e404441b4a1195bddfb9af2c32c3063dcb8da2577eb58 README.md
ec90a09ac78f55d873caf891c28daa612cb8eca24491d84d5823faf41b0af2b5 REVISIONS.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment