Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def process_video(video_path):
|
|
71 |
total_time += inference_time
|
72 |
total_frames += 1
|
73 |
|
74 |
-
detections = results.
|
75 |
|
76 |
for *xyxy, conf, cls in detections:
|
77 |
x1, y1, x2, y2 = map(int, xyxy)
|
|
|
71 |
total_time += inference_time
|
72 |
total_frames += 1
|
73 |
|
74 |
+
detections = results.xyxy[0].cpu().numpy()
|
75 |
|
76 |
for *xyxy, conf, cls in detections:
|
77 |
x1, y1, x2, y2 = map(int, xyxy)
|