GithubHelp home page GithubHelp logo

biubiuisacat / video-mamba-suite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opengvlab/video-mamba-suite

0.0 0.0 0.0 115.73 MB

License: MIT License

Shell 2.06% C++ 3.18% Python 84.17% C 0.29% Cuda 10.29%

video-mamba-suite's Introduction

Introduction

teaser Understanding videos is one of the fundamental directions in computer vision research, with extensive efforts dedicated to exploring various architectures such as RNN, 3D CNN, and Transformers. The newly proposed architecture of state space model, e.g, Mamba, shows promising traits to extend its success in long sequence modeling to video modeling. To assess whether Mamba can be a viable alternative to Transformers in the video understanding domain, in this work, we conduct a comprehensive set of studies, probing different roles Mamba can play in modeling videos, while investigating diverse tasks where Mamba could exhibit superiority. We categorize Mamba into four roles for modeling videos, deriving a Video Mamba Suite composed of 14 models/modules, and evaluating them on 12 video understanding tasks. Our extensive experiments reveal the strong potential of Mamba on both video-only and video-language tasks while showing promising efficiency-performance trade-offs. We hope this work could provide valuable data points and insights for future research on video understanding.

πŸ“’ NOTICE

The code is being sorted out and will be released gradually in the next few days.

πŸ“’ News

(2024/03/15) πŸ”„The repository is public.

(2024/03/12) πŸ”„The repository is created.

Preliminary Installation

  1. Install the preliminary requirements.
# create environment
conda create -n video-mamba-suite python=3.9
pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cu118

# install requirements
conda activate video-mamba-suite
pip install requirement.txt

# install mamba
cd causal-conv1d
python setup.py develop
cd ..
cd mamba
python setup.py develop
cd ..
  1. For each tasks, enter their folders to follow installation instructions.

  2. If requirement.txt is missing some libraries, please propose an issue as soon as possible.

Mamba for Video Temporal Modeling

Supported tasks:

Temporal Action Localization

Temporal Action Segmentation

Video dense captioning

Video paragraph captioning

Action Anticipation

Mamba for Cross-modal Interaction

Supported tasks:

Video Temporal Grounding

Highlight Detection

Mamba as Video Temporal Adapter

Supported tasks:

Multi-instance Retrieval

Action Recognition

Long-form Video Question-Answer

Mamba for Spatial-temporal Modeling

Supported tasks:

Multi-instance Retrieval

Action Recognition

Long-form Video Question-Answer

Related dataset resources:

THUMOS-14 ActivityNet HACS Segment FineAction GTEA
YouCook2 Breakfast FineAction Epic-kitchen-100 Ego4D
EgoSchema QvHighlight Charade-STA

Cite

If you find this repository useful, please use the following BibTeX entry for citation.

@misc{2024videomambasuite,
      title={Video Mamba Suite: State Space Model as a Versatile Alternative for Video Understanding}, 
      author={Guo Chen, Yifei Huang, Jilan Xu, Baoqi Pei, Zhe Chen, Zhiqi Li, Jiahao Wang, Kunchang Li, Tong Lu, Limin Wang},
      year={2024},
      eprint={2403.09626},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

License

This project is released under the MIT License

Acknowledgement

This repository is built based on ActionFormer, UniVTG, ASFormer, PDVC, Testra, MAT, AVION, InternVideo, EgoSchema, ViM and Mamba repository.

video-mamba-suite's People

Contributors

cg1177 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.