Nodes/ComfyUI/Create SCAIL-2 Colored Mask
ComfyUI Node Runs on cloud

Create SCAIL-2 Colored Mask

A ComfyUI node in model/conditioning/wan/scail with 5 inputs and 2 outputs.

By Comfy-Org·Created 4 years ago·Updated 20 days ago· 121,575
Create SCAIL-2 Colored Mask
  • driving_track_data
  • ref_track_data
  • pose_video_mask
  • reference_image_mask
object_indices
sort_byleft_to_right
replacement_modefalse
Categorymodel/conditioning/wan/scail

Inputs (5)

NameTypeDefaultDescription
driving_track_dataSAM3_TRACK_DATASAM3 track of the driving pose video. Will be rendered into the pose_video_mask output.
object_indicesSTRINGComma-separated list of person indices to include (e.g. '0,2,3'). Applied to both reference and pose video masks. Empty = all.
sort_byCOMBOleft_to_rightOrder 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.
replacement_modeBOOLEANfalseFalse = 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).
ref_track_dataoptSAM3_TRACK_DATA,MASKSAM3 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).

Outputs (2)

NameTypeDescription
pose_video_maskIMAGE
reference_image_maskIMAGE