Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -67,8 +67,8 @@ def yolov8_img_inference(
|
|
67 |
# object_counts[c] = 1
|
68 |
clist = results[0].boxes.cls
|
69 |
cls = set()
|
70 |
-
for
|
71 |
-
cls.add(names[int(
|
72 |
if c in names:
|
73 |
object_counts[c] += 1
|
74 |
elif c not in names:
|
|
|
67 |
# object_counts[c] = 1
|
68 |
clist = results[0].boxes.cls
|
69 |
cls = set()
|
70 |
+
for cno in clist:
|
71 |
+
cls.add(model.names[int(cno)])
|
72 |
if c in names:
|
73 |
object_counts[c] += 1
|
74 |
elif c not in names:
|