Skip to content

Commit

Permalink
Merge pull request #62 from tralfamadude/master
Browse files Browse the repository at this point in the history
fix n_max_boxes off by one
  • Loading branch information
SeguinBe committed Dec 17, 2020
2 parents 823b6b4 + 037f222 commit cca94e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dh_segment/post_processing/boxes_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ def validate_box(box: np.array) -> (np.array, float):
else:
return None
else:
return [fb[0] for i, fb in enumerate(found_boxes) if i <= n_max_boxes]
return [fb[0] for i, fb in enumerate(found_boxes) if i < n_max_boxes]

0 comments on commit cca94e9

Please sign in to comment.