TiledWan Video VACE Pipeline

TiledWanVideoVACEpipe

TiledWanoutput node

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)

NameTypeRequired
videoIMAGErequired
maskMASKrequired
modelWANVIDEOMODELrequired
vaeWANVAErequired
target_framesINTrequired
target_widthINTrequired
target_heightINTrequired
frame_overlapINTrequired
spatial_overlapINTrequired
stepsINTrequired
cfgFLOATrequired
shiftFLOATrequired
seedINTrequired
schedulerCOMBOrequired
vace_strengthFLOATrequired
vace_start_percentFLOATrequired
vace_end_percentFLOATrequired
decode_enable_vae_tilingBOOLEANrequired
decode_tile_xINTrequired
decode_tile_yINTrequired
decode_tile_stride_xINTrequired
decode_tile_stride_yINTrequired
debug_modeBOOLEANrequired
debug_color_shiftBOOLEANrequired
force_offload_between_tilesBOOLEANrequired
text_embedsWANVIDEOTEXTEMBEDSoptional
samplesLATENToptional
riflex_freq_indexINToptional
denoise_strengthFLOAToptional
force_offloadBOOLEANoptional
batched_cfgBOOLEANoptional
rope_functionCOMBOoptional
feta_argsFETAARGSoptional
context_optionsCONTEXTOPTIONSoptional
loop_argsLOOPARGSoptional
sigmasSIGMASoptional
unianimate_posesUNIANIMATE_POSESoptional
fantasytalking_embedsFANTASYTALKING_EMBEDSoptional
uni3c_embedsUNI3C_EMBEDSoptional
multitalk_embedsMULTITALK_EMBEDSoptional
freeinit_argsFREEINIT_ARGSoptional
cache_argsCACHEARGSoptional
slg_argsSLGARGSoptional
experimental_argsEXPERIMENTALARGSoptional
vace_ref_imagesIMAGEoptional
vace_tiled_vaeBOOLEANoptional
decode_normalizationCOMBOoptional

Outputs (2)

NameType
processed_videoIMAGE
processing_infoSTRING