tree3po commited on
Commit
becce92
·
verified ·
1 Parent(s): 2d673aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -12,6 +12,7 @@ model = YOLO("yolov8s.pt")
12
 
13
  @spaces.GPU
14
  def stream_object_detection(video):
 
15
  cap = cv2.VideoCapture(video)
16
  # This means we will output mp4 videos
17
  video_codec = cv2.VideoWriter_fourcc(*"mp4v") # type: ignore
 
12
 
13
  @spaces.GPU
14
  def stream_object_detection(video):
15
+ SUBSAMPLE=1
16
  cap = cv2.VideoCapture(video)
17
  # This means we will output mp4 videos
18
  video_codec = cv2.VideoWriter_fourcc(*"mp4v") # type: ignore