Skip to content

Commit

Permalink
[fbsync] Avoid segfault in VideoClip test (#8148)
Browse files Browse the repository at this point in the history
Reviewed By: vmoens

Differential Revision: D52538996

fbshipit-source-id: cc4fa314a1b12390b9b4c5094d35fa942ef79147
  • Loading branch information
NicolasHug authored and facebook-github-bot committed Jan 16, 2024
1 parent efcb395 commit e59dc0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_datasets_video_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_video_clips_custom_fps(self, tmpdir):
video_list = get_list_of_videos(tmpdir, num_videos=3, sizes=[12, 12, 12], fps=[3, 4, 6])
num_frames = 4
for fps in [1, 3, 4, 10]:
video_clips = VideoClips(video_list, num_frames, num_frames, fps, num_workers=2)
video_clips = VideoClips(video_list, num_frames, num_frames, fps)
for i in range(video_clips.num_clips()):
video, audio, info, video_idx = video_clips.get_clip(i)
assert video.shape[0] == num_frames
Expand Down

0 comments on commit e59dc0f

Please sign in to comment.