SkalskiP commited on
Commit
1f3abe5
·
1 Parent(s): b03c819

take every second frame

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -89,7 +89,7 @@ def process_video(
89
  result_file_path = os.path.join(RESULTS, result_file_name)
90
  TRACKER.reset()
91
  with sv.VideoSink(result_file_path, video_info=video_info) as sink:
92
- for _ in tqdm(range(total), desc="Processing video..."):
93
  frame = next(frame_generator)
94
  caption = run_captioning(
95
  model=MODEL,
 
89
  result_file_path = os.path.join(RESULTS, result_file_name)
90
  TRACKER.reset()
91
  with sv.VideoSink(result_file_path, video_info=video_info) as sink:
92
+ for _ in tqdm(range(total // 2), desc="Processing video..."):
93
  frame = next(frame_generator)
94
  caption = run_captioning(
95
  model=MODEL,