commit
e7b2327cdb
|
@ -1,6 +1,13 @@
|
||||||
# 运行环境准备
|
# 运行环境准备
|
||||||
|
|
||||||
Windows和Mac用户推荐使用Anaconda搭建Python环境,Linux用户建议使用docker搭建PyThon环境。
|
Windows和Mac用户推荐使用Anaconda搭建Python环境,Linux用户建议使用docker搭建PyThon环境。
|
||||||
|
|
||||||
|
推荐环境:
|
||||||
|
- PaddlePaddle >= 2.0.0 (2.1.2)
|
||||||
|
- python3.7
|
||||||
|
- CUDA10.1 / CUDA10.2
|
||||||
|
- CUDNN 7.6
|
||||||
|
|
||||||
如果对于Python环境熟悉的用户可以直接跳到第2步安装PaddlePaddle。
|
如果对于Python环境熟悉的用户可以直接跳到第2步安装PaddlePaddle。
|
||||||
|
|
||||||
* [1. Python环境搭建](#1)
|
* [1. Python环境搭建](#1)
|
||||||
|
@ -294,11 +301,12 @@ cd /home/Projects
|
||||||
# 首次运行需创建一个docker容器,再次运行时不需要运行当前命令
|
# 首次运行需创建一个docker容器,再次运行时不需要运行当前命令
|
||||||
# 创建一个名字为ppocr的docker容器,并将当前目录映射到容器的/paddle目录下
|
# 创建一个名字为ppocr的docker容器,并将当前目录映射到容器的/paddle目录下
|
||||||
|
|
||||||
如果您希望在CPU环境下使用docker,使用docker而不是nvidia-docker创建docker
|
#如果您希望在CPU环境下使用docker,使用docker而不是nvidia-docker创建docker
|
||||||
sudo docker run --name ppocr -v $PWD:/paddle --network=host -it paddlepaddle/paddle:latest-dev-cuda10.1-cudnn7-gcc82 /bin/bash
|
sudo docker run --name ppocr -v $PWD:/paddle --network=host -it registry.baidubce.com/paddlepaddle/paddle:2.1.3-gpu-cuda10.2-cudnn7 /bin/bash
|
||||||
|
|
||||||
如果使用CUDA10,请运行以下命令创建容器,设置docker容器共享内存shm-size为64G,建议设置32G以上
|
#如果使用CUDA10,请运行以下命令创建容器,设置docker容器共享内存shm-size为64G,建议设置32G以上
|
||||||
sudo nvidia-docker run --name ppocr -v $PWD:/paddle --shm-size=64G --network=host -it paddlepaddle/paddle:latest-dev-cuda10.1-cudnn7-gcc82 /bin/bash
|
# 如果是CUDA11+CUDNN8,推荐使用镜像registry.baidubce.com/paddlepaddle/paddle:2.1.3-gpu-cuda11.2-cudnn8
|
||||||
|
sudo nvidia-docker run --name ppocr -v $PWD:/paddle --shm-size=64G --network=host -it registry.baidubce.com/paddlepaddle/paddle:2.1.3-gpu-cuda10.2-cudnn7 /bin/bash
|
||||||
|
|
||||||
# ctrl+P+Q可退出docker 容器,重新进入docker 容器使用如下命令
|
# ctrl+P+Q可退出docker 容器,重新进入docker 容器使用如下命令
|
||||||
sudo docker container exec -it ppocr /bin/bash
|
sudo docker container exec -it ppocr /bin/bash
|
||||||
|
@ -321,8 +329,3 @@ python3 -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple
|
||||||
```
|
```
|
||||||
|
|
||||||
更多的版本需求,请参照[飞桨官网安装文档](https://www.paddlepaddle.org.cn/install/quick)中的说明进行操作。
|
更多的版本需求,请参照[飞桨官网安装文档](https://www.paddlepaddle.org.cn/install/quick)中的说明进行操作。
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,18 @@
|
||||||
# Environment Preparation
|
# Environment Preparation
|
||||||
|
|
||||||
|
Recommended working environment:
|
||||||
|
- PaddlePaddle >= 2.0.0 (2.1.2)
|
||||||
|
- python3.7
|
||||||
|
- CUDA10.1 / CUDA10.2
|
||||||
|
- CUDNN 7.6
|
||||||
|
|
||||||
* [1. Python Environment Setup](#1)
|
* [1. Python Environment Setup](#1)
|
||||||
+ [1.1 Windows](#1.1)
|
+ [1.1 Windows](#1.1)
|
||||||
+ [1.2 Mac](#1.2)
|
+ [1.2 Mac](#1.2)
|
||||||
+ [1.3 Linux](#1.3)
|
+ [1.3 Linux](#1.3)
|
||||||
* [2. Install PaddlePaddle 2.0](#2)
|
* [2. Install PaddlePaddle 2.0](#2)
|
||||||
|
|
||||||
|
|
||||||
<a name="1"></a>
|
<a name="1"></a>
|
||||||
|
|
||||||
## 1. Python Environment Setup
|
## 1. Python Environment Setup
|
||||||
|
@ -202,7 +209,6 @@ Linux users can choose to run either Anaconda or Docker. If you are familiar wit
|
||||||
<img src="../install/linux/anaconda_download.png" akt="anaconda download" width="800" align="center"/>
|
<img src="../install/linux/anaconda_download.png" akt="anaconda download" width="800" align="center"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- Select the appropriate version for your operating system
|
- Select the appropriate version for your operating system
|
||||||
- Type `uname -m` in the terminal to check the command set used by your system
|
- Type `uname -m` in the terminal to check the command set used by your system
|
||||||
|
|
||||||
|
@ -309,7 +315,18 @@ cd /home/Projects
|
||||||
# Create a docker container named ppocr and map the current directory to the /paddle directory of the container
|
# Create a docker container named ppocr and map the current directory to the /paddle directory of the container
|
||||||
|
|
||||||
# If using CPU, use docker instead of nvidia-docker to create docker
|
# If using CPU, use docker instead of nvidia-docker to create docker
|
||||||
sudo docker run --name ppocr -v $PWD:/paddle --network=host -it paddlepaddle/paddle:latest-dev-cuda10.1-cudnn7-gcc82 /bin/bash
|
sudo docker run --name ppocr -v $PWD:/paddle --network=host -it registry.baidubce.com/paddlepaddle/paddle:2.1.3-gpu-cuda10.2-cudnn7 /bin/bash
|
||||||
|
|
||||||
|
# If using GPU, use nvidia-docker to create docker
|
||||||
|
# docker image registry.baidubce.com/paddlepaddle/paddle:2.1.3-gpu-cuda11.2-cudnn8 is recommended for CUDA11.2 + CUDNN8.
|
||||||
|
sudo nvidia-docker run --name ppocr -v $PWD:/paddle --shm-size=64G --network=host -it registry.baidubce.com/paddlepaddle/paddle:2.1.3-gpu-cuda10.2-cudnn7 /bin/bash
|
||||||
|
|
||||||
|
```
|
||||||
|
You can also visit [DockerHub](https://hub.docker.com/r/paddlepaddle/paddle/tags/) to get the image that fits your machine.
|
||||||
|
|
||||||
|
```
|
||||||
|
# ctrl+P+Q to exit docker, to re-enter docker using the following command:
|
||||||
|
sudo docker container exec -it ppocr /bin/bash
|
||||||
```
|
```
|
||||||
|
|
||||||
<a name="2"></a>
|
<a name="2"></a>
|
||||||
|
@ -329,4 +346,3 @@ python3 -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple
|
||||||
```
|
```
|
||||||
|
|
||||||
For more software version requirements, please refer to the instructions in [Installation Document](https://www.paddlepaddle.org.cn/install/quick) for operation.
|
For more software version requirements, please refer to the instructions in [Installation Document](https://www.paddlepaddle.org.cn/install/quick) for operation.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue