Nodes/IAMCCS-nodes/IAMCCS_GrayTracker
ComfyUI Node

IAMCCS_GrayTracker

Keep actor pixels and replace the original environment with gray plus tracked background markers.

By IAMCCS·Created about a year ago·Updated 5 days ago· 123
IAMCCS_GrayTracker
  • images
  • foreground_masks
  • depth_images
  • guide_images
  • tracks_json
  • report
◄mode▾►
◄marker_style▾►
◄background_gray127►
◄marker_contrast90►
◄marker_opacity1.00►
◄max_markers34►
◄min_distance70►
◄marker_size17►
◄stroke_width2►
◄mask_margin12►
◄feather_sigma0.65►
◄max_fb_error1.5►
◄fade_in_frames5►
◄depth_mode▾►
◄depth_strength1.00►
◄far_scale0.60►
◄near_scale1.50►
◄invert_depthfalse►
CategoryIAMCCS/Video/Motion

Inputs (21)

NameTypeDefaultDescription
imagesIMAGEOriginal video frames, in chronological order. Keep the original background for tracking.
foreground_masksMASKSAM foreground masks: white=actor. One matching mask per frame.
modeCOMBO2 options: tracked_markers, gray_only
marker_styleCOMBO4 options: cross, dot, ring, square
background_grayINT1270–255—
marker_contrastINT90-255–255Positive=lighter markers, negative=darker markers.
marker_opacityFLOAT1.000–1—
max_markersINT341–512—
min_distanceINT701–2048Minimum spacing in video pixels.
marker_sizeINT173–129—
stroke_widthINT21–16—
mask_marginINT120–256Exclude background tracks this many pixels around the actor.
feather_sigmaFLOAT0.650–3—
max_fb_errorFLOAT1.50.1–20Maximum forward/backward tracking discrepancy in pixels.
fade_in_framesINT50–120—
depth_modeCOMBO3 options: off, external_depth, vertical_perspective
depth_strengthFLOAT1.000–1—
far_scaleFLOAT0.600.1–4—
near_scaleFLOAT1.500.1–4—
invert_depthBOOLEANfalse—
depth_imagesoptIMAGEOptional grayscale relative depth, normalized 0=far, 1=near. One map reused or one per frame; matching resolution required. Use invert_depth for opposite conventions.

Outputs (3)

NameTypeDescription
guide_imagesIMAGE—
tracks_jsonSTRING—
reportSTRING—