diff --git a/configs/rec/rec_chinese_lite_train.yml b/configs/rec/rec_chinese_lite_train.yml index 76f7f2c05693950ec9f3f33bd14578c3f494b098..ec1b7a697d95d12f884fb8e1080a1493b9a30ad3 100755 --- a/configs/rec/rec_chinese_lite_train.yml +++ b/configs/rec/rec_chinese_lite_train.yml @@ -15,7 +15,7 @@ Global: character_dict_path: ./ppocr/utils/ppocr_keys_v1.txt loss_type: ctc reader_yml: ./configs/rec/rec_chinese_reader.yml - pretrain_weights: ./pretrain_models/CRNN/best_accuracy + pretrain_weights: checkpoints: save_inference_dir: Architecture: diff --git a/tools/eval.py b/tools/eval.py index 304a13401d619fad65984f956357e02581383e18..fcb572c65271270bd2b06a8d731b317b99dde6ed 100755 --- a/tools/eval.py +++ b/tools/eval.py @@ -51,7 +51,7 @@ def main(): # check if set use_gpu=True in paddlepaddle cpu version use_gpu = config['Global']['use_gpu'] - program.check_gpu(True) + program.check_gpu(use_gpu) alg = config['Global']['algorithm'] assert alg in ['EAST', 'DB', 'Rosetta', 'CRNN', 'STARNet', 'RARE'] diff --git a/tools/train.py b/tools/train.py index 08c5a641c6e00d60a66a4d580ad9c20322eaed7f..4f69d40f5f19705ce3d75992ee63c188d7fdf944 100755 --- a/tools/train.py +++ b/tools/train.py @@ -31,7 +31,7 @@ def set_paddle_flags(**kwargs): # NOTE(paddle-dev): All of these flags should be # set before `import paddle`. Otherwise, it would -# not take any effect. +# not take any effect. set_paddle_flags( FLAGS_eager_delete_tensor_gb=0, # enable GC to save memory ) @@ -52,7 +52,7 @@ def main(): # check if set use_gpu=True in paddlepaddle cpu version use_gpu = config['Global']['use_gpu'] - program.check_gpu(True) + program.check_gpu(use_gpu) alg = config['Global']['algorithm'] assert alg in ['EAST', 'DB', 'Rosetta', 'CRNN', 'STARNet', 'RARE']