# Switch to the working directorycd/home/Projects
# You need to create a docker container for the first run, and do not need to run the current command when you run it again# 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 dockersudodockerrun--nameppocr-v$PWD:/paddle--network=host-itpaddlepaddle/paddle:latest-dev-cuda10.1-cudnn7-gcc82/bin/bash
With CUDA10, please run the following command to create a container.
It is recommended to set a shared memory greater than or equal to 32G through the --shm-size parameter:
pip3install--upgradepip
# If you have cuda9 or cuda10 installed on your machine, please run the following command to installpython3-mpipinstallpaddlepaddle-gpu==2.0.0-ihttps://mirror.baidu.com/pypi/simple
# If you only have cpu on your machine, please run the following command to installpython3-mpipinstallpaddlepaddle==2.0.0-ihttps://mirror.baidu.com/pypi/simple
For more software version requirements, please refer to the instructions in Installation Document for operation.
# Recommendgitclonehttps://github.com/PaddlePaddle/PaddleOCR
# If you cannot pull successfully due to network problems, you can switch to the mirror hosted on Gitee:gitclonehttps://gitee.com/paddlepaddle/PaddleOCR
# Note: The mirror on Gitee may not keep in synchronization with the latest update with the project on GitHub. There might be a delay of 3-5 days. Please try GitHub at first.