From 4512c03f4390402262ff5fbc6d99da7eb3ac4853 Mon Sep 17 00:00:00 2001 From: Tong Gao Date: Sun, 2 Jun 2024 11:16:43 +0800 Subject: [PATCH] Update tools/test.py --- tools/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test.py b/tools/test.py index 411f47fe4..f213b3794 100755 --- a/tools/test.py +++ b/tools/test.py @@ -122,7 +122,7 @@ def main(): cfg.test_evaluator = list(cfg.test_evaluator) cfg.test_evaluator.append(dump_metric) elif isinstance(cfg.test_evaluator, dict): - if 'metrics' in cfg.test_evaluator.keys(): + if 'metrics' in cfg.test_evaluator: cfg.test_evaluator['metrics'].append(dump_metric) else: cfg.test_evaluator['metrics'] = [dump_metric]