diff --git a/ppdet/data/reader.py b/ppdet/data/reader.py index dd923506ffc8170b543c450cce29d94029ae5ca8..5ed4a3f3da5ff7477efcb0a569b1164e0b56d79d 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 31f8bc205b49dbcf4746c2cbadb3b0b07bd4f2ba..2b3283585c490edff5821eb7230e6d3bc756c5eb 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,