diff --git a/torchvision/datasets/video_utils.py b/torchvision/datasets/video_utils.py index df55518de37..33a63cb22f8 100644 --- a/torchvision/datasets/video_utils.py +++ b/torchvision/datasets/video_utils.py @@ -136,7 +136,7 @@ def __init__( def _compute_frame_pts(self) -> None: self.video_pts = [] - self.video_fps = [] + self.video_fps: List[int] = [] # strategy: use a DataLoader to parallelize read_video_timestamps # so need to create a dummy dataset first