-
Notifications
You must be signed in to change notification settings - Fork 7.1k
torchvision.io.video.read_video pts units for video only #1931
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
Comments
@tmabraham yeah - all the models were trained using We trained all benchmark models using the I believe @fmassa was planning to make |
@bjuncek Thanks for the clarification. To confirm, the 'pts' option will not be removed in a future release? |
My understanding is that it will remain as is, the only thing to change will be the default option. |
@bjuncek Sounds good. Thanks! |
If the
pts_unit='pts'
for the functiontorchvision.io.video.read_video
we get a warning:Looking through an earlier issue regarding this, the usage of
pts
is only wrong if accurate AV sync is needed. So does that mean if I only care about the video content and not the audio (which is the case for many problems like video classification), then will it be fine to usepts
? I ask because often we are concerned about only taking a certain number of frames, and usingpts
allows us to do that without loading in the whole video first.If the usage of
pts
is only wrong if AV sync is desired, then should that be made clear in the documentation and in the warnings? Also, shouldn't thepts
option still be available in future versions, whilesec
could be the new default?The text was updated successfully, but these errors were encountered: