Skip to content

Commit

Permalink
PR with benchmark results (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadsharif1 authored Nov 23, 2024
1 parent 08236be commit 567243d
Show file tree
Hide file tree
Showing 4 changed files with 348 additions and 156 deletions.
4 changes: 2 additions & 2 deletions benchmarks/decoders/benchmark_decoders_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def __init__(self, backend):

def get_frames_from_video(self, video_file, pts_list):
self.torchvision.set_video_backend(self._backend)
reader = self.torchvision.io.VideoReader(video_file, "video")
reader = self.torchvision.io.VideoReader(video_file, "video", num_threads=0)
frames = []
for pts in pts_list:
reader.seek(pts)
Expand All @@ -114,7 +114,7 @@ def get_frames_from_video(self, video_file, pts_list):

def get_consecutive_frames_from_video(self, video_file, numFramesToDecode):
self.torchvision.set_video_backend(self._backend)
reader = self.torchvision.io.VideoReader(video_file, "video")
reader = self.torchvision.io.VideoReader(video_file, "video", num_threads=0)
frames = []
for _ in range(numFramesToDecode):
frame = next(reader)
Expand Down
Binary file modified benchmarks/decoders/benchmark_readme_chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 567243d

Please sign in to comment.