From eff5b5e4b695decc85186a5c6f5254c669fe628e Mon Sep 17 00:00:00 2001 From: licx Date: Thu, 20 Aug 2020 11:30:18 +0800 Subject: [PATCH] fix parameter missing bug of hub serving --- deploy/hubserving/ocr_rec/params.py | 2 ++ deploy/hubserving/ocr_system/params.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/deploy/hubserving/ocr_rec/params.py b/deploy/hubserving/ocr_rec/params.py index fe93fc08..a6b2ee19 100644 --- a/deploy/hubserving/ocr_rec/params.py +++ b/deploy/hubserving/ocr_rec/params.py @@ -33,6 +33,8 @@ def read_params(): cfg.rec_image_shape = "3, 32, 320" cfg.rec_char_type = 'ch' cfg.rec_batch_num = 30 + cfg.max_text_length = 25 + cfg.rec_char_dict_path = "./ppocr/utils/ppocr_keys_v1.txt" cfg.use_space_char = True diff --git a/deploy/hubserving/ocr_system/params.py b/deploy/hubserving/ocr_system/params.py index 5b3bb1ea..6ece2d6f 100644 --- a/deploy/hubserving/ocr_system/params.py +++ b/deploy/hubserving/ocr_system/params.py @@ -33,6 +33,8 @@ def read_params(): cfg.rec_image_shape = "3, 32, 320" cfg.rec_char_type = 'ch' cfg.rec_batch_num = 30 + cfg.max_text_length = 25 + cfg.rec_char_dict_path = "./ppocr/utils/ppocr_keys_v1.txt" cfg.use_space_char = True -- GitLab