Bump paddlex version to >= 3.0.3 (#15842)

* Bump paddlex version to >= 3.0.3

* Polish docs
This commit is contained in:
Lin Manhui 2025-06-25 00:37:04 +08:00 committed by GitHub
parent 86076a3746
commit 046a41dbad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 20 additions and 14 deletions

View File

@ -22,6 +22,8 @@ Since GPU installation requires specific CUDA versions, the following example is
python -m pip install paddlepaddle-gpu==3.0.0 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/
```
**Please note that PaddleOCR depends on PaddlePaddle version `3.0` or above.**
#### 2. Install `paddleocr`
```bash linenums="1"

View File

@ -14,12 +14,14 @@ CPU端安装
python -m pip install paddlepaddle==3.0.0 -i https://www.paddlepaddle.org.cn/packages/stable/cpu/
```
GPU端安装由于GPU端需要根据具体CUDA版本来对应安装使用以下仅以Linux平台pip安装英伟达GPU CUDA11.8为例,其他平台,请参考[飞桨官网安装文档](https://www.paddlepaddle.org.cn/install/quick)中的说明进行操作。
GPU端安装由于GPU端需要根据具体CUDA版本来对应安装使用以下仅以Linux平台pip安装英伟达GPU CUDA 11.8为例,其他平台,请参考[飞桨官网安装文档](https://www.paddlepaddle.org.cn/install/quick)中的说明进行操作。
```bash
python -m pip install paddlepaddle-gpu==3.0.0 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/
```
**请注意PaddleOCR 依赖于 `3.0` 及以上版本的飞桨框架。**
#### 2. 安装`paddleocr`
```bash

View File

@ -18,13 +18,14 @@ PaddleOCR fully reuses the capabilities of PaddleX in the inference deployment p
It is important to note that although PaddleOCR uses PaddleX at the underlying level, thanks to PaddleXs optional dependency installation feature, **installing the PaddleOCR inference package does not include all of PaddleXs dependencies—only those required for OCR-related tasks are installed**. Therefore, users generally do not need to worry about excessive expansion of dependency size. Tested in May 2025, in an x86-64 + Linux + Python 3.10 environment, the total size of required dependencies increased only from 717 MB to 738 MB.
The version correspondence between PaddleOCR and PaddleX is as follows:
The version correspondence between PaddleOCR, PaddleX, and the PaddlePaddle framework is as follows:
| PaddleOCR Version | PaddleX Version |
| --- | --- |
| `3.0.0` | `3.0.0` |
| `3.0.1` | `3.0.1` |
| `3.0.2` | `3.0.2` |
| PaddleOCR Version | PaddleX Version | PaddlePaddle Version |
| --- | --- | --- |
| `3.0.0` | `3.0.0` | `>= 3.0.0` |
| `3.0.1` | `3.0.1` | `>= 3.0.0` |
| `3.0.2` | `3.0.2` | `>= 3.0.0` |
| `3.0.3` | `>= 3.0.3, < 3.1.0` | `>= 3.0.0` |
## 2. Correspondence Between PaddleOCR Pipelines and PaddleX Pipeline Registration Names

View File

@ -18,13 +18,14 @@ PaddleOCR 在推理部署环节充分复用了 PaddleX 的能力,具体包括
需要特别说明的是,尽管 PaddleOCR 在底层使用了 PaddleX但得益于 PaddleX 的可选依赖安装功能,**安装 PaddleOCR 推理包时并不会安装 PaddleX 的全部依赖,而只会安装 OCR 类任务需要使用到的依赖**用户通常无需关心依赖体积的过度膨胀问题。2025 年 5 月测试,在 x86-64 + Linux + Python 3.10 环境中,需要安装的依赖总体积仅仅从 717 MB 增加到 738 MB。
PaddleOCR 和 PaddleX 的版本存在如下对应关系:
PaddleOCR、PaddleX 和飞桨框架的版本存在如下对应关系:
| PaddleOCR 版本 | PaddleX 版本 |
| --- | --- |
| `3.0.0` | `3.0.0` |
| `3.0.1` | `3.0.1` |
| `3.0.2` | `3.0.2` |
| PaddleOCR 版本 | PaddleX 版本 | 飞桨版本 |
| --- | --- | --- |
| `3.0.0` | `3.0.0` | `>= 3.0.0` |
| `3.0.1` | `3.0.1` | `>= 3.0.0` |
| `3.0.2` | `3.0.2` | `>= 3.0.0` |
| `3.0.3` | `>= 3.0.3` | `>= 3.0.0` |
## 2. PaddleOCR 产线与 PaddleX 产线注册名的对应关系

View File

@ -39,7 +39,7 @@ classifiers = [
"Topic :: Utilities",
]
dependencies = [
"paddlex[ocr,ie,multimodal]==3.0.2",
"paddlex[ocr,ie,multimodal]>=3.0.3",
"PyYAML>=6",
"typing-extensions>=4.12",
]