Closed zhiweizhong closed 2 years ago
@zhiweizhong 感谢关注。torch>=1.2.0即可,推荐>=1.8.0。如果要和PaddleOCR对齐,请使用和PaddleOCR一样的参数即可:
python ./tools/infer/predict_rec.py --rec_algorithm SVTR_lcnet --rec_model_path ./ch_ptocr_v3_rec_infer.pth --rec_image_shape 3,48,320 --image_dir test.jpg
或去掉--rec_algorithm参数)
python ./tools/infer/predict_rec.py --rec_model_path ./ch_ptocr_v3_rec_infer.pth --rec_image_shape 3,48,320 --image_dir test.jpg
感谢大佬,结果现在一致了
请问下对pytorch版本有要求吗?我使用ch_ptocr_v3_rec_infer.pth的识别结果:
以下是paddleocr的识别结果: