Skip to content

Commit

Permalink
allow all classes to be detected
Browse files Browse the repository at this point in the history
  • Loading branch information
SkalskiP committed Feb 14, 2023
1 parent 123b8b1 commit f19a38f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def main():

result = model(frame, agnostic_nms=True)[0]
detections = sv.Detections.from_yolov8(result)
detections = detections[detections.class_id == 47]
labels = [
f"{model.model.names[class_id]} {confidence:0.2f}"
for _, confidence, class_id, _
Expand Down

0 comments on commit f19a38f

Please sign in to comment.