Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key mapping of videos in h5 files #28

Closed
ashryaagr opened this issue Jan 7, 2021 · 3 comments
Closed

Key mapping of videos in h5 files #28

ashryaagr opened this issue Jan 7, 2021 · 3 comments

Comments

@ashryaagr
Copy link

The code generates h5 files for which each video has some wierd keys (corresponding to their urls like "HzYtvOYOEoU_21_32"). But SAAT expects keys to be of integer form like 0, 1, 2 and so on.
The easiest mapping would have been obtained by replacing vid with cnt here, which means keys (as expected by SAAT) is the index of video while enumerating.

Could you please confirm if this was the actual mapping that is supposed to be used? It is a bit risky to assume anything on my own for key mappings,

@SydCaption
Copy link
Owner

Hi, for videos msrvtt dataset, the index can be read from their filename, i.e., 'video'+str(index)+'.mp4'. For those in the msvd dataset, I generate the indices by going through all the video files. I can upload the mapping file if you need it.

@ashryaagr
Copy link
Author

It would be great if you can upload the mapping file.

@SydCaption
Copy link
Owner

Hi, I checked the link I provided in 'Data' README and found I've uploaded the files. You can see the mapping file in input->msvd, and the maskrcnn_code.zip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants