From d27ae42a450b53bdec004eed78b8422d8f6f262c Mon Sep 17 00:00:00 2001 From: tink2123 Date: Mon, 11 May 2020 18:05:57 +0800 Subject: [PATCH] fix typo --- configs/rec/rec_chinese_lite_train.yml | 2 +- tools/infer_rec.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/configs/rec/rec_chinese_lite_train.yml b/configs/rec/rec_chinese_lite_train.yml index 16b71480..738aaa81 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: best_accuracy + pretrain_weights: infer_img: ./infer_img Architecture: diff --git a/tools/infer_rec.py b/tools/infer_rec.py index 927a4ca6..70e75517 100755 --- a/tools/infer_rec.py +++ b/tools/infer_rec.py @@ -20,7 +20,6 @@ import os import time import multiprocessing import numpy as np -import glob def set_paddle_flags(**kwargs): for key, value in kwargs.items():