Skip to main content
This node renders SAM3 tracking data into colored masks that are consumed by the WanSCAILToVideo node. It processes tracking data from a driving pose video and optionally a reference image, assigning consistent colors to each tracked person across both outputs.

Inputs

ParameterDescriptionData TypeRequiredRange
driving_track_dataSAM3 track of the driving pose video. Will be rendered into the pose_video_mask output.SAM3_TRACK_DATAYes-
ref_track_dataSAM3 track of the reference image(s) (one identity per object, colored in batch order), or a plain MASK of the reference subject (rendered as a single identity).SAM3_TRACK_DATA or MASKNo-
object_indicesComma-separated list of person indices to include (e.g. ‘0,2,3’). Applied to both reference and pose video masks. Empty = all. (default: "")STRINGYes-
sort_byOrder in which palette colors are assigned to the tracked objects (applied to both reference and pose video so each identity keeps the same color). Objects that appear in earlier frames always come first; within a frame, left_to_right = leftmost object (by centroid at first appearance) gets the first color, area = biggest object (by mask area at first appearance) gets the first color; none = keep SAM3’s order. (default: “left_to_right”)COMBOYes"none"
"left_to_right"
"area"
replacement_modeFalse = Animation Mode (pose_video_mask has black background, reference_image_mask has white background). True = Replacement Mode (pose_video_mask has white background, reference_image_mask has black background). (default: False)BOOLEANYesFalse
True

Outputs

Output NameDescriptionData Type
pose_video_maskColored mask rendered from the driving pose video tracking data. Background color follows replacement_mode setting.IMAGE
reference_image_maskColored mask rendered from the reference image tracking data. Background is black in Replacement Mode, white in Animation Mode. If no reference data is provided, returns a solid fill matching the reference background color.IMAGE
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): ce0669ad0ed3c76cc18ef0ee7b620f5aa6eaa1e5b96c189941c0a5b744c3351f