From 07d56e5bbeb20686a85ae362763b0cb661387b1c Mon Sep 17 00:00:00 2001 From: ly015 Date: Thu, 10 Jun 2021 04:52:13 +0800 Subject: [PATCH] fix comments and remove debug code --- mmcv/runner/hooks/evaluation.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mmcv/runner/hooks/evaluation.py b/mmcv/runner/hooks/evaluation.py index 8ed6833480..0e8aea95fb 100644 --- a/mmcv/runner/hooks/evaluation.py +++ b/mmcv/runner/hooks/evaluation.py @@ -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: