Update app.py
Browse files
app.py
CHANGED
@@ -28,13 +28,13 @@ def process_video(video_path, target, progress=gr.Progress()):
|
|
28 |
|
29 |
frame_count = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
|
30 |
original_fps = int(cap.get(cv2.CAP_PROP_FPS))
|
31 |
-
output_fps =
|
32 |
frame_duration = 1 / output_fps
|
33 |
video_duration = frame_count / original_fps
|
34 |
|
35 |
processed_frames = []
|
36 |
frame_scores = []
|
37 |
-
batch_size =
|
38 |
batch_frames = []
|
39 |
batch_times = []
|
40 |
|
|
|
28 |
|
29 |
frame_count = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
|
30 |
original_fps = int(cap.get(cv2.CAP_PROP_FPS))
|
31 |
+
output_fps = 1
|
32 |
frame_duration = 1 / output_fps
|
33 |
video_duration = frame_count / original_fps
|
34 |
|
35 |
processed_frames = []
|
36 |
frame_scores = []
|
37 |
+
batch_size = 2
|
38 |
batch_frames = []
|
39 |
batch_times = []
|
40 |
|