Skip to content

Commit

Permalink
Adding total frames to tqdm
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogenesAnalytics committed Feb 3, 2024
1 parent b7d69f8 commit 996d244
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/frame_sampling/strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def _create_stream(
enumerate(
tqdm(
container.decode(stream),
total=stream.frames,
desc=f"Sampling {video_name}",
leave=False,
delay=self.iter_frames_progress_delay,
Expand Down

0 comments on commit 996d244

Please sign in to comment.