AZIIIIIIIIZ's picture
Upload 1039 files
d670799 verified

A newer version of the Gradio SDK is available: 6.2.0

Upgrade

Preparing Video Retrieval Datasets

Introduction

@inproceedings{xu2016msr,
      title={Msr-vtt: A large video description dataset for bridging video and language},
      author={Xu, Jun and Mei, Tao and Yao, Ting and Rui, Yong},
      booktitle={CVPR},
      pages={5288--5296},
      year={2016}
}
@inproceedings{chen2011collecting,
  title={Collecting highly parallel data for paraphrase evaluation},
  author={Chen, David and Dolan, William B},
  booktitle={ACL},
  pages={190--200},
  year={2011}
}

Before we start, please make sure that the directory is located at $MMACTION2/tools/data/video_retrieval/.

Preparing MSRVTT dataset

For basic dataset information, you can refer to the MSRVTT dataset website. Run the following command to prepare the MSRVTT dataset:

bash prepare_msrvtt.sh

After preparation, the folder structure will look like:

mmaction2
β”œβ”€β”€ mmaction
β”œβ”€β”€ tools
β”œβ”€β”€ configs
β”œβ”€β”€ data
β”‚   β”œβ”€β”€ video_retrieval
β”‚   β”‚   └── msrvtt
β”‚   β”‚       β”œβ”€β”€ train_9k.json
β”‚   β”‚       β”œβ”€β”€ train_7k.json
β”‚   β”‚       β”œβ”€β”€ test_JSFUSION.json
β”‚   β”‚       └─── videos
β”‚   β”‚           β”œβ”€β”€ video0.mp4
β”‚   β”‚           β”œβ”€β”€ video1.mp4
β”‚   β”‚           β”œβ”€β”€ ...
β”‚   β”‚           └── video9999.mp4

Preparing MSVD dataset

For basic dataset information, you can refer to the MSVD dataset website. Run the following command to prepare the MSVD dataset:

bash prepare_msvd.sh

After preparation, the folder structure will look like:

mmaction2
β”œβ”€β”€ mmaction
β”œβ”€β”€ tools
β”œβ”€β”€ configs
β”œβ”€β”€ data
β”‚   β”œβ”€β”€ video_retrieval
β”‚   β”‚   └── msrvd
β”‚   β”‚       β”œβ”€β”€ train.json
β”‚   β”‚       β”œβ”€β”€ test.json
β”‚   β”‚       β”œβ”€β”€ val.json
β”‚   β”‚       └─── videos
β”‚   β”‚           β”œβ”€β”€ xxx.avi
β”‚   β”‚           β”œβ”€β”€ xxx.avi
β”‚   β”‚           β”œβ”€β”€ ...
β”‚   β”‚           └── xxx.avi