reab5555 commited on
Commit
ac7c798
·
verified ·
1 Parent(s): d795f35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = 3
32
  frame_duration = 1 / output_fps
33
  video_duration = frame_count / original_fps
34
 
35
  processed_frames = []
36
  frame_scores = []
37
- batch_size = 1
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