Skip to content

Commit

Permalink
remove an unused list in postprocess (#1002)
Browse files Browse the repository at this point in the history
Co-authored-by: fatih cagatay akyon <[email protected]>
  • Loading branch information
developer0hye and fcakyon authored Apr 8, 2024
1 parent b366b6c commit 8b1660f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions sahi/postprocess/combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,19 +217,12 @@ def greedy_nmm(
# according to their confidence scores
order = scores.argsort()

# initialise an empty list for
# filtered prediction boxes
keep = []

while len(order) > 0:
# extract the index of the
# prediction with highest score
# we call this prediction S
idx = order[-1]

# push S in filtered predictions list
keep.append(idx.tolist())

# remove S from P
order = order[:-1]

Expand Down

0 comments on commit 8b1660f

Please sign in to comment.