chiyoi commited on
Commit
a777d3a
1 Parent(s): 59a6809
Files changed (2) hide show
  1. app.py +1 -1
  2. inference.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ def fn(video: gr.Video, actions: list[int]):
65
  time.sleep(2)
66
  toggle = False
67
  if i % config.classify_action_frame_step != 0 and i % config.detect_object_frame_step != 0:
68
- time.sleep(0.3)
69
  processed_clip = ImageSequenceClip(processed_frames, clip.fps)
70
  processed_clip.audio = clip.audio
71
  processed_clip.write_videofile(output, fps=clip.fps, audio_codec='aac', logger=None)
 
65
  time.sleep(2)
66
  toggle = False
67
  if i % config.classify_action_frame_step != 0 and i % config.detect_object_frame_step != 0:
68
+ time.sleep(0.2)
69
  processed_clip = ImageSequenceClip(processed_frames, clip.fps)
70
  processed_clip.audio = clip.audio
71
  processed_clip.write_videofile(output, fps=clip.fps, audio_codec='aac', logger=None)
inference.py CHANGED
@@ -72,7 +72,7 @@ def draw_classes(frame, actions):
72
  label=labels,
73
  image=frame,
74
  label_names=label_names,
75
- font_size=10,
76
  alpha=0)
77
  return frame
78
 
 
72
  label=labels,
73
  image=frame,
74
  label_names=label_names,
75
+ font_size=20,
76
  alpha=0)
77
  return frame
78