Description
Paddle2ONNX is a model exporter that converts PaddlePaddle models into the ONNX format. Once a model is in ONNX, it can be deployed on many inference engines and hardware targets, including TensorRT, OpenVINO, MNN, TNN and NCNN, along with any other engine or hardware that supports ONNX. The project expects PaddlePaddle 3.0 and onnxruntime 1.10 or later, and the README specifically recommends PaddlePaddle 3.0.0. A conversion starts from a deployment model made of two files: a .json file that describes the model structure and a .pdiparams file with its parameters. The command-line tool takes options such as the model directory, the output path, the ONNX opset version (default 9, with several versions from 7 to 19 supported), automatic opset upgrading when a lower version cannot convert the model, an ONNX checker, a choice of optimizer, and verbose logging. For optimizing an exported model, the README recommends onnxslim, and the converter uses onnxoptimizer by default. Paddle2ONNX is open source and hosted on GitHub, where a contribution guide explains how to help.…
Highlights
- Converts PaddlePaddle models to ONNX
- Targets TensorRT, OpenVINO, MNN, TNN and NCNN
- Command-line conversion with opset options
- Optional ONNX checker and optimizers
- Open source with a contribution guide
Ratings & Reviews
No ratings yet
Be the first to rate Paddle2ONNX.
People also visit

tao-port-huggingface-model
Integrate a HuggingFace Computer Vision model into the NVIDIA TAO Toolkit
Paddle2ONNX FAQ
What does Paddle2ONNX do?
It converts PaddlePaddle models into ONNX models, so they can run on ONNX-compatible inference engines and hardware.
What do I need to run it?
PaddlePaddle 3.0 (the README recommends 3.0.0) and onnxruntime 1.10 or later.
Which files does an export need?
A deployment model made of a model structure file (.json) and a parameters file (.pdiparams).
Can I optimize the exported model?
The README recommends onnxslim for optimizing an exported ONNX model. The converter uses onnxoptimizer by default.
Is it free?
It is open source and hosted on GitHub.
What are the best Paddle2ONNX alternatives?
Popular alternatives to Paddle2ONNX include PaddleOCR2Pytorch and Convert to ONNX. See all Paddle2ONNX alternatives




