-
Notifications
You must be signed in to change notification settings - Fork 7.1k
UCF101 Sketchy Fix #4204
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
base: main
Are you sure you want to change the base?
UCF101 Sketchy Fix #4204
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @bjuncek. Can you add a unit test as well?
@@ -55,14 +55,15 @@ class _VideoTimestampsDataset(object): | |||
pickled when forking. | |||
""" | |||
|
|||
def __init__(self, video_paths: List[str]): | |||
def __init__(self, video_paths: List[str], pts_unit: str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the class being private the reason for not having a default value for pts_unit
?
@@ -83,6 +83,8 @@ def __init__( | |||
_video_height=_video_height, | |||
_video_min_dimension=_video_min_dimension, | |||
_audio_samples=_audio_samples, | |||
_pts_unit="pts" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary new line, plus ,
at the end would be preferable.
Providing a quick-fix for #4112 by exposing
pts_unit
to videoclips object.