TiledWan Video VACE Pipeline
TiledWanVideoVACEpipe
Wan2.1 VACE video processing node that applies WanVideo VACE pipeline to large videos through tiling. Enables processing of arbitrarily large videos that would otherwise exceed memory or models limits. Uses dimension-wise tiling with temporal and spatial overlap to maintain quality and consistency. The complete WanVideo VACE pipeline is applied to each tile with overwriting on overlapping regions for consistency. Processing Algorithm: 1. Temporal tiling: Split video into chunks with overlap (default: 81 frames, 10-frame overlap) 2. Spatial tiling: Split each chunk into tiles with overlap (default: 832×480, 20-pixel overlap) 3. Temporal consistency: Previous chunks provide reference frames for upcoming chunks 4. Spatial consistency: Already-processed neighboring tiles overwrite overlapping regions 5. WanVideo VACE processing: Each tile processed through complete pipeline 6. Dimension-wise stitching: Column-wise → Line-wise → Temporal stitching 7. Final cropping: Output matches exact input dimensions Key Features: - Handles any video size through tiling - Temporal consistency across chunks via frame reference chaining - Spatial consistency through neighbor tile overwriting - Memory-efficient with model offloading between tiles - Complete WanVideo VACE pipeline integration - Fade blending for seamless stitching - Tensor safety with hard copies to prevent data contamination Consistency Mechanisms: - Temporal: Last frames from previous chunks overwrite first frames of current chunks - Spatial: Left/top neighbors overwrite overlapping edges in current tiles - All overwritten regions have masks zeroed for proper processing - Reference frames are used to maintain temporal coherence across temporal chunks
Pack: comfyUI-TiledWan
custom_nodes.comfyUI-TiledWan
Inputs (47)
| Name | Type | Required |
|---|---|---|
| video | IMAGE | required |
| mask | MASK | required |
| model | WANVIDEOMODEL | required |
| vae | WANVAE | required |
| target_frames | INT | required |
| target_width | INT | required |
| target_height | INT | required |
| frame_overlap | INT | required |
| spatial_overlap | INT | required |
| steps | INT | required |
| cfg | FLOAT | required |
| shift | FLOAT | required |
| seed | INT | required |
| scheduler | COMBO | required |
| vace_strength | FLOAT | required |
| vace_start_percent | FLOAT | required |
| vace_end_percent | FLOAT | required |
| decode_enable_vae_tiling | BOOLEAN | required |
| decode_tile_x | INT | required |
| decode_tile_y | INT | required |
| decode_tile_stride_x | INT | required |
| decode_tile_stride_y | INT | required |
| debug_mode | BOOLEAN | required |
| debug_color_shift | BOOLEAN | required |
| force_offload_between_tiles | BOOLEAN | required |
| text_embeds | WANVIDEOTEXTEMBEDS | optional |
| samples | LATENT | optional |
| riflex_freq_index | INT | optional |
| denoise_strength | FLOAT | optional |
| force_offload | BOOLEAN | optional |
| batched_cfg | BOOLEAN | optional |
| rope_function | COMBO | optional |
| feta_args | FETAARGS | optional |
| context_options | CONTEXTOPTIONS | optional |
| loop_args | LOOPARGS | optional |
| sigmas | SIGMAS | optional |
| unianimate_poses | UNIANIMATE_POSES | optional |
| fantasytalking_embeds | FANTASYTALKING_EMBEDS | optional |
| uni3c_embeds | UNI3C_EMBEDS | optional |
| multitalk_embeds | MULTITALK_EMBEDS | optional |
| freeinit_args | FREEINIT_ARGS | optional |
| cache_args | CACHEARGS | optional |
| slg_args | SLGARGS | optional |
| experimental_args | EXPERIMENTALARGS | optional |
| vace_ref_images | IMAGE | optional |
| vace_tiled_vae | BOOLEAN | optional |
| decode_normalization | COMBO | optional |