提交 52e0e343 编写于 作者: M michaelowenliu

change a str

上级 5977ae40
......@@ -50,8 +50,8 @@ def load_entire_model(model, pretrained):
if os.path.exists(pretrained):
load_pretrained_model(model, pretrained)
else:
raise Exception('Pretrained model is not found: {}'.format(
pretrained))
raise Exception(
'Pretrained model is not found: {}'.format(pretrained))
else:
logger.warning('Not all pretrained params of {} to load, '\
'training from scratch or a pretrained backbone'.format(model.__class__.__name__))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册