Unverified Commit 7c9d9ede authored by freezestudio's avatar freezestudio Committed by GitHub
Browse files

Update anchor.py (#9646)

Fix hard-coded parameter values
parent 2b566593
...@@ -203,7 +203,7 @@ class RpnAnchorLabeler(AnchorLabeler): ...@@ -203,7 +203,7 @@ class RpnAnchorLabeler(AnchorLabeler):
unmatched_threshold=0.3, unmatched_threshold=0.3,
rpn_batch_size_per_im=256, rpn_batch_size_per_im=256,
rpn_fg_fraction=0.5): rpn_fg_fraction=0.5):
AnchorLabeler.__init__(self, match_threshold=0.7, unmatched_threshold=0.3) AnchorLabeler.__init__(self, match_threshold=match_threshold, unmatched_threshold=unmatched_threshold)
self._rpn_batch_size_per_im = rpn_batch_size_per_im self._rpn_batch_size_per_im = rpn_batch_size_per_im
self._rpn_fg_fraction = rpn_fg_fraction self._rpn_fg_fraction = rpn_fg_fraction
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment