From c8a86445ec3ec1fb8b4eba95fe0c4179c5dfbe8a Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Wed, 20 Oct 2021 09:57:29 +0800 Subject: [PATCH 1/3] add install --- PTDN/docs/install.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 PTDN/docs/install.md diff --git a/PTDN/docs/install.md b/PTDN/docs/install.md new file mode 100644 index 00000000..ac215cc4 --- /dev/null +++ b/PTDN/docs/install.md @@ -0,0 +1,39 @@ + +## 环境配置 + +本教程适用于PTDN目录下基础功能测试的运行环境搭建。 + +推荐环境: +- CUDA 10.1 +- CUDNN 7.6 +- TensorRT 6.1.0.5 / 7.1 + + +推荐docker镜像安装,按照如下命令创建镜像,当前目录映射到镜像中的`/paddle`目录下 +``` +nvidia-docker run --name paddle -it -v $PWD:/paddle paddlepaddle/paddle:latest-dev-cuda10.1-cudnn7-gcc82 /bin/bash +cd /paddle + +# 安装带TRT的paddle +pip3.7 install https://paddle-wheel.bj.bcebos.com/with-trt/2.1.3/linux-gpu-cuda10.1-cudnn7-mkl-gcc8.2-trt6-avx/paddlepaddle_gpu-2.1.3.post101-cp37-cp37m-linux_x86_64.whl + +# 下载OCR代码 +git clone https://github.com/PaddlePaddle/PaddleOCR + +``` + +安装PaddleOCR依赖: +``` +cd PaddleOCR +pip3.7 install -r requirements.txt +``` + +## FAQ : +Q. You are using Paddle compiled with TensorRT, but TensorRT dynamic library is not found. Ignore this if TensorRT is not needed. + +A. 问题一般是当前安装paddle版本带TRT,但是本地环境找不到TensorRT的预测库,需要下载TensorRT库,解压后设置环境变量LD_LIBRARY_PATH; +如: +``` +export LD_LIBRARY_PATH=/usr/local/python3.7.0/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/paddle/package/TensorRT-6.0.1.5/lib +``` +或者问题是下载的TensorRT版本和当前paddle中编译的TRT版本不匹配,需要下载版本相符的TRT。 From bb64a863d09430bc5b5623009e57152515673c81 Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Wed, 20 Oct 2021 10:07:40 +0800 Subject: [PATCH 2/3] add autolog installation --- PTDN/docs/install.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PTDN/docs/install.md b/PTDN/docs/install.md index ac215cc4..76323bb2 100644 --- a/PTDN/docs/install.md +++ b/PTDN/docs/install.md @@ -17,7 +17,15 @@ cd /paddle # 安装带TRT的paddle pip3.7 install https://paddle-wheel.bj.bcebos.com/with-trt/2.1.3/linux-gpu-cuda10.1-cudnn7-mkl-gcc8.2-trt6-avx/paddlepaddle_gpu-2.1.3.post101-cp37-cp37m-linux_x86_64.whl +# 安装AutoLog +git clone https://github.com/LDOUBLEV/AutoLog +pip3.7 install -r requirements.txt +python3.7 setup.py bdist_wheel +pip3.7 install ./dist/auto_log-1.0.0-py3-none-any.whl + + # 下载OCR代码 +cd ../ git clone https://github.com/PaddlePaddle/PaddleOCR ``` From d39290df71a9f0aa729f12d9fb9fed149c7c39d0 Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Wed, 20 Oct 2021 10:08:27 +0800 Subject: [PATCH 3/3] add autolog installation --- PTDN/docs/install.md | 1 + 1 file changed, 1 insertion(+) diff --git a/PTDN/docs/install.md b/PTDN/docs/install.md index 76323bb2..28b92426 100644 --- a/PTDN/docs/install.md +++ b/PTDN/docs/install.md @@ -19,6 +19,7 @@ pip3.7 install https://paddle-wheel.bj.bcebos.com/with-trt/2.1.3/linux-gpu-cuda1 # 安装AutoLog git clone https://github.com/LDOUBLEV/AutoLog +cd AutoLog pip3.7 install -r requirements.txt python3.7 setup.py bdist_wheel pip3.7 install ./dist/auto_log-1.0.0-py3-none-any.whl