PaddleOCR2Pytorch icon indicating copy to clipboard operation
PaddleOCR2Pytorch copied to clipboard

cls方向分类模型推理有问题,好像是预处理缺失ClsResizeImg

Open williamlzw opened this issue 3 years ago • 6 comments

cls方向分类模型推理有问题,好像是预处理缺失,ClsResizeImg

williamlzw avatar Dec 04 '22 13:12 williamlzw

ch_ptocr_mobile_v2.0_cls_infer.pth python ./tools/infer/predict_cls.py --cls_model_path D:/paddleocr/ch_ptocr_mobile_v2.0_cls_infer.pth --image_dir ./doc/imgs_words/ch/word_1.jpg --use_angle_cls 1

williamlzw avatar Dec 04 '22 13:12 williamlzw

@williamlzw 请问报什么错误?

frotms avatar Dec 04 '22 14:12 frotms

不同方向图片传进去推理结果只有一个0方向

williamlzw avatar Dec 05 '22 12:12 williamlzw

对比下paddleOCR是否也是一样的吗

frotms avatar Dec 05 '22 12:12 frotms

paddleocr结果也都是0,难道是paddleocr出错了?

williamlzw avatar Dec 06 '22 12:12 williamlzw

可以贴一下测试图看下

frotms avatar Dec 07 '22 03:12 frotms