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'])