Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

SAMFlow: Eliminating Any Fragmentation in Optical Flow with Segment Anything Model

About

Optical Flow Estimation aims to find the 2D dense motion field between two frames. Due to the limitation of model structures and training datasets, existing methods often rely too much on local clues and ignore the integrity of objects, resulting in fragmented motion estimation. Through theoretical analysis, we find the pre-trained large vision models are helpful in optical flow estimation, and we notice that the recently famous Segment Anything Model (SAM) demonstrates a strong ability to segment complete objects, which is suitable for solving the fragmentation problem. We thus propose a solution to embed the frozen SAM image encoder into FlowFormer to enhance object perception. To address the challenge of in-depth utilizing SAM in non-segmentation tasks like optical flow estimation, we propose an Optical Flow Task-Specific Adaption scheme, including a Context Fusion Module to fuse the SAM encoder with the optical flow context encoder, and a Context Adaption Module to adapt the SAM features for optical flow task with Learned Task-Specific Embedding. Our proposed SAMFlow model reaches 0.86/2.10 clean/final EPE and 3.55/12.32 EPE/F1-all on Sintel and KITTI-15 training set, surpassing Flowformer by 8.5%/9.9% and 13.2%/16.3%. Furthermore, our model achieves state-of-the-art performance on the Sintel and KITTI-15 benchmarks, ranking #1 among all two-frame methods on Sintel clean pass.

Shili Zhou, Ruian He, Weimin Tan, Bo Yan• 2023

Related benchmarks

TaskDatasetResultRank
Optical Flow EstimationKITTI 2015 (train)
Fl-epe3.44
431
Optical FlowSintel (train)
AEPE (Clean)0.87
179
Optical Flow EstimationSintel clean (test)
EPE1
103
Optical Flow EstimationSintel Final (test)
EPE2.08
101
Optical FlowKITTI 2015 (test)
Fl Error (All)4.49
95
Optical Flow EstimationKITTI-15 (test)
Fl-all Error4.49
53
Optical Flow EstimationMPI Sintel (test)
EPE (Clean, all)1
16
Showing 7 of 7 rows

Other info

Follow for update