f4a7292cde
Allows per-frame or static segmentation masks to be applied before CLIP and sync encoding, zeroing background pixels. Useful when multiple objects compete for the same sound and text prompting alone is insufficient. - _apply_mask(): resizes mask spatially (nearest-exact), samples temporally to match sampled frame count, multiplies into frames - _hash_inputs(): includes mask bytes in cache key (begin/mid/end sampling) - INPUT_TYPES: mask added to optional inputs with tooltip - extract_features(): mask=None parameter, applied after _resize_frames for both CLIP (384px) and sync (224px) paths, before normalization - Log line notes when masking is active Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>