6. Running Mask Propagation¶
After creating point or box prompts, paint edits, or another trusted mask seed on one or more anchor frames:
- Click Run Propagation in the right dock panel.
- The SAM-2 model propagates the mask from your anchor frames across all frames in the event range.
- Propagation progress is displayed in real-time as a blue (
#1b75bc) loading band on the timeline. - If you notice inaccuracies on other frames, pause or wait for propagation to complete, add prompts or paint edits on the earliest credible divergence, and re-run propagation. If a corrected, nonempty mask must remain protected on later runs, lock that frame as ground truth first.
The Mask Threshold slider is in the propagation panel because it applies across the workspace. Releasing it updates all prompted frames. Propagated frames created at an older threshold are shown with amber hatching and amber timeline bands; rerun propagation to bring those frames to the current threshold.
Propagation Demo¶
The mask starts on a single anchor frame (the purple marker on the timeline). Press Run Propagation to carry it across the range. This simulated run deliberately drifts into white matter on the later frames. Scrub to a drifted frame and click Add manual correction — this mimics placing manual point prompts: a green positive point on the cortical tissue the mask should cover and a red negative point in the white matter it should avoid. Re-run to see the downstream frames refine.
Preparing the propagation demo...
Simulated propagation preview — no model inference. This demonstration approximates how an anchor mask propagates and how a correction anchor refines it. It does not run SAM 2.1.