From f3f2b38efb925fca3fb05fa46688b8bc1ea8731a Mon Sep 17 00:00:00 2001 From: WenmuZhou Date: Tue, 15 Sep 2020 16:31:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B9=E5=90=91=E5=88=86=E7=B1=BB=E5=99=A8?= =?UTF-8?q?=E8=AE=BE=E4=B8=BA=E9=BB=98=E8=AE=A4=E4=B8=8D=E5=90=AF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/cpp_infer/tools/config.txt | 2 +- tools/infer/utility.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/cpp_infer/tools/config.txt b/deploy/cpp_infer/tools/config.txt index 18360086..17b50779 100644 --- a/deploy/cpp_infer/tools/config.txt +++ b/deploy/cpp_infer/tools/config.txt @@ -14,7 +14,7 @@ det_db_unclip_ratio 2.0 det_model_dir ../model/det # cls config -use_angle_cls 1 +use_angle_cls 0 cls_model_dir ../model/cls cls_thresh 0.9 diff --git a/tools/infer/utility.py b/tools/infer/utility.py index 9e2c2910..ac04c2bd 100755 --- a/tools/infer/utility.py +++ b/tools/infer/utility.py @@ -73,7 +73,7 @@ def parse_args(): parser.add_argument("--use_space_char", type=bool, default=True) # params for text classifier - parser.add_argument("--use_angle_cls", type=str2bool, default=True) + parser.add_argument("--use_angle_cls", type=str2bool, default=False) parser.add_argument("--cls_model_dir", type=str) parser.add_argument("--cls_image_shape", type=str, default="3, 48, 192") parser.add_argument("--label_list", type=list, default=['0', '180'])