Spaces:
Sleeping
Sleeping
fix
Browse files
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)
|