未验证 提交 9a2ae66d 编写于 作者: G Guanghua Yu 提交者: GitHub

fix debug log (#771)

上级 b39d5ce1
...@@ -45,7 +45,7 @@ class Compose(object): ...@@ -45,7 +45,7 @@ class Compose(object):
data = f(data, ctx) data = f(data, ctx)
except Exception as e: except Exception as e:
stack_info = traceback.format_exc() 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))) format(f, e, str(stack_info)))
raise e raise e
return data return data
......
...@@ -89,7 +89,7 @@ def check_config(cfg): ...@@ -89,7 +89,7 @@ def check_config(cfg):
actual_num_classes = int(cfg.num_classes) - int( actual_num_classes = int(cfg.num_classes) - int(
train_dataset.with_background) 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" \ "and 'with_background' in 'dataset' sets {}.\n" \
"So please note the actual number of categories is {}." "So please note the actual number of categories is {}."
.format(cfg.num_classes, train_dataset.with_background, .format(cfg.num_classes, train_dataset.with_background,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册