Browse Source

docs(README): update installation instructions for paddle2onnx

- Added commands for installing the latest version, a specific version (2.0.2), and the development version of paddle2onnx from GitHub.
- Enhanced clarity and accessibility of installation steps for users.
zhch158_admin 10 hours ago
parent
commit
3cd0dc8776
1 changed files with 9 additions and 0 deletions
  1. 9 0
      ocr_tools/pytorch_models/README.md

+ 9 - 0
ocr_tools/pytorch_models/README.md

@@ -49,6 +49,15 @@ pytorch_models/
 
 ```bash
 pip install torch torchvision opencv-python onnx onnx2pytorch onnxruntime numpy pyyaml shapely pyclipper loguru python-dotenv
+
+# 安装最新版本
+pip install paddle2onnx --upgrade
+
+# 安装特定版本(例如 2.0.2)
+pip install paddle2onnx==2.0.2
+
+# 安装开发版本(从 GitHub)
+pip install git+https://github.com/PaddlePaddle/Paddle2ONNX.git
 ```
 
 ### 2. 准备模型文件