Skip to content

Video Propagation ​

SUMMARY

Annotate an object once and let Lens track it through the frames that follow. Lens propagates masks with CUTIE by default, and keypoints with TAPNext++. Propagated frames are predictions until you review and save them.

Propagate masks ​

  1. Annotate the objects on a starting frame.
  2. Open Video propagation in the annotation editor, or press T.
  3. Under Masks to propagate, check the objects to track. You can also use All or None.
  4. Set Frames ahead, then choose Propagate masks. You can cancel a running propagation.
  5. Review the results, then choose Save predicted frames.

Only the checked objects are tracked, and existing annotations on later frames are kept.

The Masks and Keypoints toggles are independent, so you can propagate masks, keypoints, or both in one run.

Propagate keypoints ​

When Keypoints is on, Lens tracks the keypoints of the selected instances with TAPNext++, and the keypoints stay attached to their instance.

  • Only visible (v=2) seed points are tracked. Occluded and unlabeled seed points stay unlabeled in the predictions.
  • Predicted points are v=2 while visible and v=1 while occluded.
  • A keypoints-only run updates instances by their track ID. If the later frames don't have those instances yet, propagate and save the masks first.

INFO

Keypoint propagation needs the tapnextpp extra, a CUDA build of PyTorch, and a TAPNet installation with a TAPNext++ checkpoint. Contact support@telekinesis.ai for setup access.

Performance ​

Lens downloads the CUTIE tracker model the first time you use it and reuses it after that. With GPU tracking enabled, the tracking overlay shows the device that is actually in use. The first GPU frame takes longer while the GPU warms up.

For interactive work, keep the internal resolution limit at its default:

bash
CUTIE_MAX_INTERNAL_SIZE=480

This limits the shorter side used for tracking while keeping the aspect ratio, and output masks still match the original frame size. Setting it to -1 tracks at full resolution, which can be very slow and use a lot of memory on large images, especially on CPU.

SAM3 (experimental) ​

To use SAM3 instead of CUTIE, choose SAM3 (experimental) under Video propagation. Lens prompts the SAM3 tracker with each selected mask and can propagate forward or backward. You review and save the results the same way.

  1. Install the extra:

    bash
    python -m pip install "telekinesis-lens[sam3]"
  2. Accept the model's access conditions on Hugging Face, then download the model once:

    bash
    hf auth login
    hf download facebook/sam3 --exclude "*.pt" --local-dir sam3
  3. Point Lens to the model and start it:

    powershell
    $env:SAM3_MODEL = (Resolve-Path sam3).Path
    lens
    bash
    export SAM3_MODEL="$(pwd)/sam3"
    lens

SAM3 only loads local files and never downloads during tracking. Without SAM3_MODEL, Lens looks for facebook/sam3 in the Hugging Face cache. Lens uses CUDA when PyTorch supports it. To choose the device yourself, set SAM3_DEVICE=cpu or SAM3_DEVICE=cuda:0.

WARNING

SAM3 loads the whole selected clip into RAM. Start with short frame ranges, especially on CPU.