# Installation and Usage of the Paddle2ONNX Plugin The Paddle2ONNX plugin for PaddleX provides the ability to convert PaddlePaddle format models to ONNX format models, leveraging the underlying [Paddle2ONNX](https://github.com/PaddlePaddle/Paddle2ONNX). ## 1. Installation ```bash paddlex --install paddle2onnx ``` ## 2. Usage ### 2.1 Parameter Introduction
| Parameter | Type | Description |
|---|---|---|
| paddle_model_dir | str | Directory containing the Paddle model. |
| onnx_model_dir | str | Output directory for the ONNX model, which can be the same as the Paddle model directory. Defaults to onnx. |
| opset_version | int | The ONNX opset version to use. Defaults to 19 for .json format Paddle models and 7 for .pdmodel format Paddle models. |