Nodes/ComfyUI-WanVaceAdvanced/WanMaskToLatentSpace
ComfyUI Node

WanMaskToLatentSpace

A ComfyUI node in WanVaceAdvanced with 8 inputs and 1 output.

By drozbay·Created about a year ago·Updated 6 months ago· 90
WanMaskToLatentSpace
  • mask
  • mask
spatial_methodmax
temporal_methodmax
first_frame_specialtrue
target_width0
target_height0
expand_spatial0
expand_temporal0
CategoryWanVaceAdvanced

Inputs (8)

NameTypeDefaultDescription
maskMASK
spatial_methodCOMBOmaxSpatial reduction: max=preserve any coverage, min=require full coverage, mean=average, area=area-based, nearest=nearest-exact
temporal_methodCOMBOmaxTemporal reduction: max/min/mean across 4-frame groups, or first/last frame only
first_frame_specialoptBOOLEANtrueTrue: first frame 1:1, rest grouped by 4. False: all frames grouped by 4 uniformly.
target_widthoptINT00–16384Target latent width. 0 = auto (mask width / 8)
target_heightoptINT00–16384Target latent height. 0 = auto (mask height / 8)
expand_spatialoptINT0-16384–16384Pixels to grow (+) or shrink (-) spatially before downscaling
expand_temporaloptINT0-1000–1000Frames to grow (+) or shrink (-) temporally before downscaling

Outputs (1)

NameTypeDescription
maskMASK