如何用python调用自己本地路径下的onnx模型 #55
Replies: 4 comments 4 replies
-
这个需要使用rapidocr_onnxruntime库,并且自己的模型要与PaddleOCR中 文本检测和识别一样。 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
我用https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.7/doc/doc_ch/models_list.md里的ch_PP-OCRv4_server_det和ch_PP-OCRv4_server_rec高精度模型经过Paddle2ONNX命令成功转换后,替换rapidocr_onnxruntime库models文件夹下的原检测和推理模型并使用相同的命名,但是运行原来Work的代码报如下错哦: 模型转换用到了如下的命令,但不清楚怎么将字典文件写到onnx模型里面(或许这就是报错的原因)? |
Beta Was this translation helpful? Give feedback.
-
要用我们写的那个转换工具,才能将字典写到里面去。你这里用的 详情参见:https://rapidai.github.io/RapidOCRDocs/docs/blog/06_custom_different_model/ |
Beta Was this translation helpful? Give feedback.
-
如何用python调用自己本地路径下的onnx模型?,3Q!
Beta Was this translation helpful? Give feedback.
All reactions