UnSAMFlow: Unsupervised Optical Flow Guided by Segment Anything Model

Shuai Yuan, Lei Luo, Zhuo Hui, Can Pu, Xiaoyu Xiang +2 more
2/9/2026

No official code found. Best implementation: facebookresearch/UnSAMFlow (117 stars, last commit 2024-05-04).

Abstract

Traditional unsupervised optical flow methods are vul-nerable to occlusions and motion boundaries due to lack of object-level information. Therefore, we propose UnSAM-Flow, an unsupervised flow network that also leverages object information from the latest foundation model Segment Anything Model (SAM). We first include a self-supervised semantic augmentation module tailored to SAM masks. We also analyze the poor gradient landscapes of traditional smoothness losses and propose a new smoothness definition based on homography instead. A simple yet effective mask feature module has also been added to further ag-gregate features on the object level. With all these adaptations, our method produces clear optical flow estimation with sharp boundaries around objects, which outperforms state-of-the-art methods on both KITTI and Sintel datasets. Our method also generalizes well across domains and runs very efficiently.

View on arXivView PDF

Code Implementations(1)

Source code for CVPR 2024 paper UnSAMFlow Unsupervised Optical Flow Guided by Segment Anything Model.

1178C++, CudaMay 3, 20242 years agoNOASSERTION

Similar Papers

Cite this paper

@article{yuan2026unsamflow,
  title  = {UnSAMFlow: Unsupervised Optical Flow Guided by Segment Anything Model},
  author = {Shuai Yuan and Lei Luo and Zhuo Hui and Can Pu and Xiaoyu Xiang and Rakesh Ranjan and D. Demandolx},
  year   = {2026},
  eprint = {2405.02608},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2405.02608},
  journal = {CVPR 2024 2024}
}

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/2405.02608.svg)](https://codeofpaper.com/paper/2405.02608)

Discussion