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

How to prepare pretrain data for LF-VILA? #18

Closed
yliu-cs opened this issue Apr 22, 2023 · 2 comments
Closed

How to prepare pretrain data for LF-VILA? #18

yliu-cs opened this issue Apr 22, 2023 · 2 comments

Comments

@yliu-cs
Copy link

yliu-cs commented Apr 22, 2023

What is the data format in datasets/hdvila100m/video_clip_3fps, datasets/lfvila_data/pretrain/train_db and datasets/lfvila_data/pretrain/val.jsonl mentioned in src/configs/pretrain_stage1.yaml ?
Can you provide specific reference examples or processes (for long-form video and annotations respectively) ?

@ycsun1972
Copy link
Contributor

ycsun1972 commented Apr 25, 2023

Hi, thank you for your interest in our work.
(1) Our videos are a subset of hdvila100m, please refer to the instruction of hdvila100m and download the original videos and cut them into clips. In order to reduce the data reading overhead, we have compressed the raw video clips to 3fps and 240p.
(2) For datasets/lfvila_data/pretrain/train_db and datasets/lfvila_data/pretrain/val.jsonl, it consists of lists of [clip_id, text] pairs built from the metadata of hdvila100m. We combine pairs that are contiguous in time to form long videos. We provide the clipids of LF-VILA-8M, the text can be found in the metadata of hdvila100m. Here is an example:

[
    'tS3XvuOhbNo.14.mp4': text1,
    'tS3XvuOhbNo.15.mp4': text2,
     ...,
    'tS3XvuOhbNo.21.mp4': text3,
]

@bei21
Copy link
Collaborator

bei21 commented Apr 25, 2023

Also, please refer to #7 for transcripts of HD-VILA-100M.

@bei21 bei21 closed this as completed Apr 25, 2023
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

3 participants