Skip to content

Commit

Permalink
Enable decord for faster random frame access if installed
Browse files Browse the repository at this point in the history
  • Loading branch information
healthonrails committed Dec 20, 2024
1 parent ebf1013 commit 6d7205b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion annolid/data/videos.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def video_loader(video_file=None):
class CV2Video:
def __init__(self, video_file, use_decord=False):
self.video_file = Path(video_file).resolve()
if use_decord and IS_DECORD_INSTALLED:
if IS_DECORD_INSTALLED:
self.reader = de.VideoReader(str(self.video_file))
else:
self.reader = None
Expand Down

0 comments on commit 6d7205b

Please sign in to comment.