mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-06-26 21:24:27 +00:00
Bump paddlex version to >= 3.0.3 (#15842)
* Bump paddlex version to >= 3.0.3 * Polish docs
This commit is contained in:
parent
86076a3746
commit
046a41dbad
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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 PaddleX’s optional dependency installation feature, **installing the PaddleOCR inference package does not include all of PaddleX’s 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
|
||||
|
||||
|
@ -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 产线注册名的对应关系
|
||||
|
||||
|
@ -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",
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user