Skip to content

Commit

Permalink
fixfilter_invalid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MendelXu committed Oct 20, 2021
1 parent e72c59c commit f95ed89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssod/models/utils/bbox_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def transform_image(img, M, out_shape):


def filter_invalid(bbox, label=None, score=None, mask=None, thr=0.0, min_size=0):
if (score is not None) and (thr > 0):
if score is not None:
valid = score > thr
bbox = bbox[valid]
if label is not None:
Expand Down

0 comments on commit f95ed89

Please sign in to comment.