This article is a mirror article of machine translation, please click here to jump to the original article.

View: 1691|Reply: 1

Convert the paddle model to the ONNX model format

[Copy link]
Posted on 2025-1-22 08:51:14 | | | |
Requirements: Convert the Paddle model to the onnx model format and use onnxruntime for inference, using paddleocr as an example.

Baidu officially provides the Paddle2ONNX conversion tool, address:The hyperlink login is visible.

The official tool is not very easy to use and lacks some features, which is used in this articlePaddleOCRModelConverttool to convert. For example, write the dictionary file corresponding to the text recognition model to the onnx model, as shown in the following figure:



Model download:The hyperlink login is visible.

First, create an environment using conda with the following commands:


The conversion command is as follows:


As shown below:



PaddleOCRModelConvert address:The hyperlink login is visible.

Reference:
The hyperlink login is visible.
The hyperlink login is visible.




Previous:The basic principles of deep learning DBNet
Next:Two front-end image (picture) comparators
 Landlord| Posted on 2025-1-23 10:48:48 |
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com