Segment Any Motion in Videos

Nan Huang, Wenzhao Zheng, Chenfeng Xu, Kurt Keutzer, Shanghang Zhang +2 more
2/10/2026

No official code found. Best implementation: nnanhuang/SegAnyMo (475 stars, MIT, last commit 2025-06-10).

Abstract

Moving object segmentation is a crucial task for achieving a high-level understanding of visual scenes and has numerous downstream applications. Humans can effortlessly segment moving objects in videos. Previous work has largely relied on optical flow to provide motion cues; however, this approach often results in imperfect predictions due to challenges such as partial motion, complex deformations, motion blur and background distractions. We propose a novel approach for moving object segmentation that combines long-range trajectory motion cues with DINO-based semantic features and leverages SAM2 for pixel-level mask densification through an iterative prompting strategy. Our model employs Spatio-Temporal Trajectory Attention and Motion-Semantic Decoupled Embedding to prioritize motion while integrating semantic support. Extensive testing on diverse datasets demonstrates state-of-the-art performance, excelling in challenging scenarios and fine-grained segmentation of multiple objects. Our code is available at https://motion-seg.github.io/.

View on arXivView PDF

Code Implementations(1)

nnanhuang/SegAnyMoCommunity66%
MIT

[CVPR 2025] Code for Segment Any Motion in Videos

47539C, C++Dec 25, 20241 years agoMIT
moving-object-segmentationsam2trackingvideovideo-processing

Similar Papers

Cite this paper

@article{huang2026segment,
  title  = {Segment Any Motion in Videos},
  author = {Nan Huang and Wenzhao Zheng and Chenfeng Xu and Kurt Keutzer and Shanghang Zhang and Angjoo Kanazawa and Qianqian Wang},
  year   = {2026},
  eprint = {2503.22268},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2503.22268},
  journal = {CVPR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.22268.svg)](https://codeofpaper.com/paper/2503.22268)

Discussion