chiyoi commited on
Commit
b0414c0
1 Parent(s): c23be95
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def fn(video: gr.Video):
28
  detections = ([], [])
29
  for i, frame in enumerate(clip.iter_frames()):
30
  if i % config.classify_action_frame_steps == 0:
31
- frames.append(format_frame(frame))
32
  if i % config.detect_object_frame_steps == 0:
33
  print(f'Detect object: Frame {i}')
34
  detections = detect_object(detector, frame)
 
28
  detections = ([], [])
29
  for i, frame in enumerate(clip.iter_frames()):
30
  if i % config.classify_action_frame_steps == 0:
31
+ frames.append(format_frame(frame, config))
32
  if i % config.detect_object_frame_steps == 0:
33
  print(f'Detect object: Frame {i}')
34
  detections = detect_object(detector, frame)