ValueError: invalid literal for int() with base 10: "'3"
Created by: fupingren
移动端模型可以预测出结果python tools/infer/predict_rec.py --image_dir=c:\isay\mi.png --rec_model_dir=C:\isay\PaddleOCRdev\inference\en_ppocr_mobile_v1.1_rec_infer --use_gpu=False --rec_char_type=en server模型预测时候报错 python tools/infer/predict_rec.py --image_dir=c:\isay\mi.png --rec_model_dir=C:\isay\PaddleOCRdev\inference\ch_ppocr_server_v1.1_rec_infer --use_angle_cls=False --use_gpu=False --rec_char_type=en --rec_image_shape='3,32,100'
报错提示: Traceback (most recent call last): File "tools/infer/predict_rec.py", line 335, in main(utility.parse_args()) File "tools/infer/predict_rec.py", line 304, in main text_recognizer = TextRecognizer(args) File "tools/infer/predict_rec.py", line 39, in init self.rec_image_shape = [int(v) for v in args.rec_image_shape.split(",")] File "tools/infer/predict_rec.py", line 39, in self.rec_image_shape = [int(v) for v in args.rec_image_shape.split(",")] ValueError: invalid literal for int() with base 10: "'3"