whwu95 / Cap4Video

【CVPR'2023 Highlight & TPAMI】Cap4Video: What Can Auxiliary Captions Do for Text-Video Retrieval?
https://arxiv.org/abs/2301.00184
MIT License
225 stars 16 forks source link

Preprocess for other datasets #25

Closed battlezzq closed 8 months ago

battlezzq commented 8 months ago

Hi, it's a good work! I want to run the code on other video retrieval datasets, therefore I wonder know that how to convert the raw video into frame. Such as the sample rate, size of every frames in your code.

whwu95 commented 8 months ago

Please refer to the script for extracting frames from video at video2image.py, with an FPS of 30.