Skip to content

Commit

Permalink
fix comments and remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
ly015 committed Jun 9, 2021
1 parent 67db34d commit 07d56e5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mmcv/runner/hooks/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,12 @@ def _init_rule(self, rule, key_indicator):

if rule is None:
if key_indicator != 'auto':
# use case-insensitive key indicator to infer the rule
# `_lc` here means we use the lower case of keys for
# case-insensitive matching
key_indicator_lc = key_indicator.lower()
greater_keys = [key.lower() for key in self.greater_keys]
less_keys = [key.lower() for key in self.less_keys]

print(key_indicator)
print(greater_keys)
print(less_keys)
if key_indicator_lc in greater_keys:
rule = 'greater'
elif key_indicator_lc in less_keys:
Expand Down

0 comments on commit 07d56e5

Please sign in to comment.