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

January 4, 2024 ยท View on GitHub

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/haungmozhi9527/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.

Datasetckpt
TVRBaidu disk
ActivityNet CaptionsBaidu disk
Charades-STABaidu disk

Results

Quantitative Results

For this repository, the expected performance is:

DatasetR@1R@5R@10R@100SumR
TVR13.933.344.584.9176.6
ActivityNet Captions8.324.936.776.1146.0
Charades-STA2.17.812.550.672.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}
}