-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1996scarlet
committed
Oct 25, 2020
1 parent
a355c1d
commit b2064a0
Showing
2 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,6 @@ def find_biggest_box(dets): | |
@staticmethod | ||
def non_maximum_suppression(dets, threshold): | ||
''' ##### Author [email protected] | ||
merged_non_maximum_suppression | ||
Greedily select boxes with high confidence and overlap with threshold. | ||
If the boxes' overlap > threshold, we consider they are the same one. | ||
|
@@ -82,7 +81,7 @@ def non_maximum_suppression(dets, threshold): | |
while order.size > 0: | ||
keep, others = order[0], order[1:] | ||
|
||
yield dets[keep] | ||
yield np.copy(dets[keep]) | ||
|
||
xx1 = maximum(x1[keep], x1[others]) | ||
yy1 = maximum(y1[keep], y1[others]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters