Skip to content

Commit

Permalink
Update threshold to fix failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
datumbox committed Jan 6, 2021
1 parent 550f05e commit 217350a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _test_detection_model(self, name, dev):
kwargs = {}
if "retinanet" in name:
# Reduce the default threshold to ensure the returned boxes are not empty.
kwargs["score_thresh"] = 0.0099999
kwargs["score_thresh"] = 0.009
model = models.detection.__dict__[name](num_classes=50, pretrained_backbone=False, **kwargs)
model.eval().to(device=dev)
input_shape = (3, 300, 300)
Expand Down

0 comments on commit 217350a

Please sign in to comment.