Skip to content

Commit

Permalink
Merge pull request #252 from OpenTrafficCam/bug/2546-nms-is-not-perfo…
Browse files Browse the repository at this point in the history
…rmed-across-classes

Added parameter "agnostic_nms=True" to allow for NMS across classes
  • Loading branch information
briemla authored Aug 4, 2023
2 parents 593ac8f + f44080b commit e02fead
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OTVision/detect/yolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def _predict(self, video: Path) -> Generator[Results, None, None]:
stream=True,
verbose=False,
batch=-1,
agnostic_nms=True
)

def _parse_detections(self, detection_result: Boxes) -> list[Detection]:
Expand Down

0 comments on commit e02fead

Please sign in to comment.