Spaces:
Running
on
Zero
Running
on
Zero
take every second frame
Browse files
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,
|