"src/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "24d6876762caa5583e66b08f0f30ce20769c70c8"
Unverified Commit 4af8bd06 authored by Double_V's avatar Double_V Committed by GitHub
Browse files

Merge pull request #70 from tink2123/check_gpu

update check_gpu
parents b34c1b37 6de43fbb
......@@ -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:
......
......@@ -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']
......
......@@ -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']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment