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 map the video name in csv to file path in unzipped files? #17

Open
I-E-E-E opened this issue Nov 18, 2024 · 2 comments
Open

How to map the video name in csv to file path in unzipped files? #17

I-E-E-E opened this issue Nov 18, 2024 · 2 comments

Comments

@I-E-E-E
Copy link

I-E-E-E commented Nov 18, 2024

e.g. how to translate ---_iRTHryQ_13_0to241.mp4 in OpenVidHD.csv to a valid file path?

@nankepan
Copy link
Collaborator

---_iRTHryQ_13_0to241.mp4 is the name of the video. For example, you can read the video by:
video_path = os.path.join(dataset_path, video_name)
vframes, aframes, info = torchvision.io.read_video(filename=video_path, pts_unit="sec", output_format="TCHW")

@nunu0214
Copy link

nunu0214 commented Jan 7, 2025

But how do I know which part this file belongs to? If I only want to use part of the dataset and don't want to download all of it,

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