Spaces:
Runtime error
Runtime error
Bhaskar Saranga
commited on
Commit
•
c983071
1
Parent(s):
5e262d5
Fixed exception
Browse files
app.py
CHANGED
@@ -113,7 +113,7 @@ def detect(img,model,device,iou_threshold=0.45,confidence_threshold=0.25):
|
|
113 |
# Write results
|
114 |
for *xyxy, conf, cls in reversed(det):
|
115 |
label = f'{names[int(cls)]} {conf:.2f}'
|
116 |
-
plot_one_box(xyxy, imgs, label=label, color=colors[int(cls)], line_thickness=2)
|
117 |
|
118 |
return imgs,fps_inference
|
119 |
|
|
|
113 |
# Write results
|
114 |
for *xyxy, conf, cls in reversed(det):
|
115 |
label = f'{names[int(cls)]} {conf:.2f}'
|
116 |
+
plot_one_box(xyxy, imgs, label=label, color=colors[names[int(cls)]], line_thickness=2)
|
117 |
|
118 |
return imgs,fps_inference
|
119 |
|