GranularFireplace commited on
Commit
23d2242
·
verified ·
1 Parent(s): 11f6027

Fix device='cpu'

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -53,8 +53,7 @@ def predict_video(video_input):
53
  success, frame = video_reader.read()
54
 
55
  if success:
56
- # Run YOLO inference on the frame on GPU Device 0
57
- results = detection_model(frame, device=0)
58
 
59
  # Visualize the results on the frame
60
  annotated_frame = results[0].plot()
 
53
  success, frame = video_reader.read()
54
 
55
  if success:
56
+ results = detection_model(frame, device='cpu')
 
57
 
58
  # Visualize the results on the frame
59
  annotated_frame = results[0].plot()