docs: add installation documentation of paddle (#14117)

pull/14118/head^2
SWHL 2024-10-29 21:34:25 +08:00 committed by GitHub
parent 7cecf0ad1f
commit 5430e433db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 42 additions and 3 deletions

View File

@ -6,8 +6,22 @@ hide:
### Install
#### 1. Install PaddlePaddle
> If you don't have a basic Python runtime environment, please refer to [Running environment preparation](./ppocr/environment.en.md).
=== "CPU installation"
```bash linenums="1"
pip install paddleocr
pip install paddlepaddle
```
=== "GPU installation"
Since the GPU needs to be installed and used according to the specific CUDA version, the following only takes the Linux platform, pip installation of NVIDIA GPU, CUDA11.8 as an example. For other platforms, please refer to the instructions in [PaddlePaddle official website installation document](https://www.paddlepaddle.org.cn/en).
```bash linenums="1"
python -m pip install paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/
```
### Use by code
@ -264,6 +278,8 @@ paddleocr -h
['0', 0.99999964]
```
For more detailed documentation, please go to: [PaddleOCR Quick Start](./ppocr/quick_start.en.md)
### Online Demo
- PP-OCRv4 online experience<https://aistudio.baidu.com/aistudio/projectdetail/6611435>

View File

@ -6,6 +6,27 @@ hide:
### 安装
#### 1. 安装PaddlePaddle
> 如果您没有基础的Python运行环境请参考[运行环境准备](./ppocr/environment.md)。
=== "CPU端安装"
```bash linenums="1"
pip install paddlepaddle
```
=== "GPU端安装"
由于GPU端需要根据具体CUDA版本来对应安装使用以下仅以Linux平台pip安装英伟达GPU CUDA11.8为例,其他平台,请参考[飞桨官网安装文档](https://www.paddlepaddle.org.cn/install/quick)中的说明进行操作。
```bash linenums="1"
python -m pip install paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/
```
#### 2. 安装`paddleocr`
```bash linenums="1"
pip install paddleocr
```
@ -264,6 +285,8 @@ paddleocr -h
['0', 0.99999964]
```
更加详细的文档,请移步:[PaddleOCR快速开始](./ppocr/quick_start.md)
### 在线demo
- PP-OCRv4 在线体验地址:<https://aistudio.baidu.com/community/app/91660>