Giter VIP home page Giter VIP logo

gmmformer's Introduction

GMMFormer: Gaussian-Mixture-Model Based Transformer for Efficient Partially Relevant Video Retrieval

This repository is the official PyTorch implementation of our AAAI 2024 paper GMMFormer: Gaussian-Mixture-Model Based Transformer for Efficient Partially Relevant Video Retrieval.

Catalogue

Getting Started

1. Clone this repository:

git clone https://github.com/huangmozhi9527/GMMFormer.git
cd GMMFormer

2. Create a conda environment and install the dependencies:

conda create -n prvr python=3.9
conda activate prvr
conda install pytorch==1.9.0 cudatoolkit=11.3 -c pytorch -c conda-forge
pip install -r requirements.txt

3. Download Datasets: All features of TVR, ActivityNet Captions and Charades-STA are kindly provided by the authors of MS-SL.

4. Set root and data_root in config files (e.g., ./Configs/tvr.py).

Run

To train GMMFormer on TVR:

cd src
python main.py -d tvr --gpu 0

To train GMMFormer on ActivityNet Captions:

cd src
python main.py -d act --gpu 0

To train GMMFormer on Charades-STA:

cd src
python main.py -d cha --gpu 0

Trained Models

We provide trained GMMFormer checkpoints. You can download them from Baiduyun disk.

Dataset ckpt
TVR Baidu disk
ActivityNet Captions Baidu disk
Charades-STA Baidu disk

Results

Quantitative Results

For this repository, the expected performance is:

Dataset R@1 R@5 R@10 R@100 SumR
TVR 13.9 33.3 44.5 84.9 176.6
ActivityNet Captions 8.3 24.9 36.7 76.1 146.0
Charades-STA 2.1 7.8 12.5 50.6 72.9

Citation

If you find this repository useful, please consider citing our work:

@inproceedings{wang2023gmmformer,
  title={GMMFormer: Gaussian-Mixture-Model Based Transformer for Efficient Partially Relevant Video Retrieval},
  author={Wang, Yuting and Wang, Jinpeng and Chen, Bin and Zeng, Ziyun and Xia, Shu-Tao},
  booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
  year={2024}
}

gmmformer's People

Contributors

huangmozhi9527 avatar

Stargazers

Lucas avatar  avatar  avatar  avatar Cheol-Ho Cho avatar Peipei Song avatar  avatar Zmu avatar Huy Lê avatar Hongyu Qu avatar Jinpeng Wang avatar  avatar

Watchers

Kostas Georgiou avatar  avatar

Forkers

gimpong

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.