Paddle2ONNX icon indicating copy to clipboard operation
Paddle2ONNX copied to clipboard

PaddleOCR的模型能通过Paddle2ONNX转为ONNX吗?

Open YJLCV opened this issue 4 years ago • 6 comments

我想把PaddleOCR的模型,例如ch_ppocr_mobile_v2.0_det_infer,转化为ONNX,然后再转为NCNN。所以能通过Paddle2ONNX能将其转化为ONNX,若可以,请问要怎么操作?

YJLCV avatar Apr 06 '21 02:04 YJLCV

参考这个教程 https://aistudio.baidu.com/aistudio/projectdetail/1479970?channelType=0&channel=0

jiangjiajun avatar Apr 06 '21 03:04 jiangjiajun

参考这个教程 https://aistudio.baidu.com/aistudio/projectdetail/1479970?channelType=0&channel=0

好的感谢 我先研究下

YJLCV avatar Apr 06 '21 03:04 YJLCV

@jiangjiajun 您好,感谢你的链接,现在我已成功将PaddleOCR的模型,ch_ppocr_mobile_v2.0_det_infer,转化为ONNX,然后再转为NCNN了。再想请教下,如何测试自己转的NCNN模型是否正确?例如能跑个demo啥的吗,如果用ncnn的模型也能做OCR,那么应该就是转换成功了?感谢您的回复!

YJLCV avatar Apr 08 '21 02:04 YJLCV

目前转成ncnn有问题,只有部分模型工作, 参见 : https://github.com/RapidOCR/RapidOCRNcnnCpp/tree/main/models

znsoftm avatar Apr 08 '21 22:04 znsoftm

目前转成ncnn有问题,只有部分模型工作, 参见 : https://github.com/RapidOCR/RapidOCRNcnnCpp/tree/main/models

根据你这里的反馈,是目前ch_ppocr_mobile_v2.0_rec, ch_ppocr_mobile_v2.0_cls这两个不行,其余都是可以的是么

jiangjiajun avatar Apr 09 '21 02:04 jiangjiajun

PaddleOCR2ONNX,用https://aistudio.baidu.com/aistudio/projectdetail/1479970?channelType=0&channel=0就行了, 然后ONNX转NCNN用这个不就行了https://convertmodel.com/

YJLCV avatar Apr 09 '21 02:04 YJLCV

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jun 24 '25 02:06 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jul 08 '25 02:07 github-actions[bot]