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

Video Reader sequence start and end #5200

Open
1 task done
Pedrexus opened this issue Nov 27, 2023 · 3 comments
Open
1 task done

Video Reader sequence start and end #5200

Pedrexus opened this issue Nov 27, 2023 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@Pedrexus
Copy link

Describe the question.

Hello all,

The video reader has a sequence_length and stride parameters, but is there any way to identify which part of the video I am getting in a batch? It happens that I have long videos with one label for each frame, and using the get_property functions gives me repeated filepaths per batch, but no way to identify each frame.

Is there a way to retrieve this kind of info with DALI's video reader?

I found this issue using external_source, but it doesn't seem to have a solution.

Check for duplicates

  • I have searched the open bugs/issues and have found no duplicates for this bug report
@Pedrexus Pedrexus added the question Further information is requested label Nov 27, 2023
@JanuszL
Copy link
Contributor

JanuszL commented Nov 27, 2023

Hi @Pedrexus,

Thank you for reaching out. Please check the enable_frame_num parameter so you get the frame number of the first frame in the returned sequence. Then you can write custom code to map the number to the label.

@Pedrexus
Copy link
Author

Pedrexus commented Nov 28, 2023

Hello @JanuszL,

thank you for the help. I was trying to use the experimental video reader, which does not seem to support it.

I was able to get it working with the regular reader.

@JanuszL
Copy link
Contributor

JanuszL commented Nov 28, 2023

Yes, indeed this is one of the functionalities that miss the parity compared to the old reader.

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

No branches or pull requests

2 participants