Rethinking RAFT for Efficient Optical Flow

Navid Eslami, Farnoosh Arefi, Amir M. Mansourian, Shohreh Kasaei
1/1/2024
cs.CV

Official code: n3slami/Ef-RAFT (46 stars, BSD-3-Clause, PyTorch, last commit 2025-03-05).

Abstract

Despite significant progress in deep learning-based optical flow methods, accurately estimating large displacements and repetitive patterns remains a challenge. The limitations of local features and similarity search patterns used in these algorithms contribute to this issue. Additionally, some existing methods suffer from slow runtime and excessive graphic memory consumption. To address these problems, this paper proposes a novel approach based on the RAFT framework. The proposed Attention-based Feature Localization (AFL) approach incorporates the attention mechanism to handle global feature extraction and address repetitive patterns. It introduces an operator for matching pixels with corresponding counterparts in the second frame and assigning accurate flow values. Furthermore, an Amorphous Lookup Operator (ALO) is proposed to enhance convergence speed and improve RAFTs ability to handle large displacements by reducing data redundancy in its search operator and expanding the search space for similarity extraction. The proposed method, Efficient RAFT (Ef-RAFT),achieves significant improvements of 10% on the Sintel dataset and 5% on the KITTI dataset over RAFT. Remarkably, these enhancements are attained with a modest 33% reduction in speed and a mere 13% increase in memory usage. The code is available at: https://github.com/n3slami/Ef-RAFT

View on arXivView PDF

Code Implementations(1)

n3slami/Ef-RAFTOfficial100%
PyTorchBSD-3-Clause

Ef-RAFT: Rethinking RAFT for Efficient Optical Flow (MVIP 2024)

466C++, CudaFeb 14, 20231 years agoBSD-3-Clause
computer-visioncudaoptical-flowpytorch

Similar Papers

Cite this paper

@article{eslami2024rethinking,
  title  = {Rethinking RAFT for Efficient Optical Flow},
  author = {Navid Eslami and Farnoosh Arefi and Amir M. Mansourian and Shohreh Kasaei},
  year   = {2024},
  eprint = {2401.00833},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.00833v1}
}

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

Discussion