From 9a2ae66d3d04f67c277f5e4cad59571f4551580f Mon Sep 17 00:00:00 2001 From: Guanghua Yu <742925032@qq.com> Date: Wed, 27 May 2020 10:51:34 +0800 Subject: [PATCH] fix debug log (#771) --- ppdet/data/reader.py | 2 +- ppdet/utils/check.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ppdet/data/reader.py b/ppdet/data/reader.py index dd923506f..5ed4a3f3d 100644 --- a/ppdet/data/reader.py +++ b/ppdet/data/reader.py @@ -45,7 +45,7 @@ class Compose(object): data = f(data, ctx) except Exception as e: stack_info = traceback.format_exc() - logger.info("fail to map op [{}] with error: {} and stack:\n{}". + logger.warn("fail to map op [{}] with error: {} and stack:\n{}". format(f, e, str(stack_info))) raise e return data diff --git a/ppdet/utils/check.py b/ppdet/utils/check.py index 31f8bc205..2b3283585 100644 --- a/ppdet/utils/check.py +++ b/ppdet/utils/check.py @@ -89,7 +89,7 @@ def check_config(cfg): actual_num_classes = int(cfg.num_classes) - int( train_dataset.with_background) - logger.info("The 'num_classes'(number of classes) you set is {}, " \ + logger.debug("The 'num_classes'(number of classes) you set is {}, " \ "and 'with_background' in 'dataset' sets {}.\n" \ "So please note the actual number of categories is {}." .format(cfg.num_classes, train_dataset.with_background, -- GitLab