mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-11-11 23:54:28 +00:00
commit
c538c4cba9
@ -116,7 +116,7 @@ def init_model(config, program, exe):
|
|||||||
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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user