ComfyUI Node
IAMCCS_GrayTracker
Keep actor pixels and replace the original environment with gray plus tracked background markers.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | Original video frames, in chronological order. Keep the original background for tracking. | |
| foreground_masks | MASK | SAM foreground masks: white=actor. One matching mask per frame. | |
| mode | COMBO | 2 options: tracked_markers, gray_only | |
| marker_style | COMBO | 4 options: cross, dot, ring, square | |
| background_gray | INT | 1270–255 | — |
| marker_contrast | INT | 90-255–255 | Positive=lighter markers, negative=darker markers. |
| marker_opacity | FLOAT | 1.000–1 | — |
| max_markers | INT | 341–512 | — |
| min_distance | INT | 701–2048 | Minimum spacing in video pixels. |
| marker_size | INT | 173–129 | — |
| stroke_width | INT | 21–16 | — |
| mask_margin | INT | 120–256 | Exclude background tracks this many pixels around the actor. |
| feather_sigma | FLOAT | 0.650–3 | — |
| max_fb_error | FLOAT | 1.50.1–20 | Maximum forward/backward tracking discrepancy in pixels. |
| fade_in_frames | INT | 50–120 | — |
| depth_mode | COMBO | 3 options: off, external_depth, vertical_perspective | |
| depth_strength | FLOAT | 1.000–1 | — |
| far_scale | FLOAT | 0.600.1–4 | — |
| near_scale | FLOAT | 1.500.1–4 | — |
| invert_depth | BOOLEAN | false | — |
| depth_imagesopt | IMAGE | Optional 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)
| Name | Type | Description |
|---|---|---|
| guide_images | IMAGE | — |
| tracks_json | STRING | — |
| report | STRING | — |