From e53c42733047e442f7c900851191eb0a4d6aa9a8 Mon Sep 17 00:00:00 2001 From: wangjiawei04 Date: Wed, 23 Sep 2020 00:12:23 +0800 Subject: [PATCH] fix rec local --- deploy/pdserving/rec_local_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/pdserving/rec_local_server.py b/deploy/pdserving/rec_local_server.py index 58df5b32..90f4a0e5 100644 --- a/deploy/pdserving/rec_local_server.py +++ b/deploy/pdserving/rec_local_server.py @@ -163,7 +163,7 @@ class OCRService(WebService): if __name__ == "__main__": ocr_service = OCRService(name="ocr") - ocr_service.load_model_config("ocr_rec_model") + ocr_service.load_model_config(global_args.rec_model_dir) ocr_service.init_rec() if global_args.use_gpu: ocr_service.prepare_server( -- GitLab