未验证 提交 c538c4cb 编写于 作者: S shaohua.zhang 提交者: GitHub

Merge pull request #10 from PaddlePaddle/develop

update-08-04
...@@ -115,8 +115,8 @@ def init_model(config, program, exe): ...@@ -115,8 +115,8 @@ def init_model(config, program, exe):
logger.info("Finish initing model from {}".format(path)) logger.info("Finish initing model from {}".format(path))
else: else:
raise ValueError( raise ValueError(
"Model checkpoints {} does not exists," "Model checkpoints {} does not exists,"
"check if you lost the file prefix .".format(checkpoints + '.pdparams')) "check if you lost the file prefix.".format(checkpoints + '.pdparams'))
pretrain_weights = config['Global'].get('pretrain_weights') pretrain_weights = config['Global'].get('pretrain_weights')
if pretrain_weights: if pretrain_weights:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册