mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-11-02 20:54:03 +08:00
@@ -5,7 +5,7 @@
|
||||
- cmake >= 3.12
|
||||
- g++ >= 8.2
|
||||
- cuda >= 11.2 (当WITH_GPU=ON)
|
||||
- cudnn >= 11.2 (当WITH_GPU=ON)
|
||||
- cudnn >= 8.0 (当WITH_GPU=ON)
|
||||
- TensorRT >= 8.4 (当ENABLE_TRT_BACKEND=ON)
|
||||
|
||||
## 编译C++
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
- cmake >= 3.12
|
||||
- Visual Studio 16 2019
|
||||
- cuda >= 11.2 (当WITH_GPU=ON)
|
||||
- cudnn >= 11.2 (当WITH_GPU=ON)
|
||||
- cudnn >= 8.0 (当WITH_GPU=ON)
|
||||
- TensorRT >= 8.4 (当ENABLE_TRT_BACKEND=ON)
|
||||
|
||||
## 编译CPU版本 C++ SDK
|
||||
@@ -39,7 +39,7 @@ msbuild INSTALL.vcxproj /m /p:Configuration=Release /p:Platform=x64
|
||||
% 附加说明:%
|
||||
% (1) -DCUDA_DIRECTORY指定CUDA所在的目录 %
|
||||
% (2) 若编译Paddle后端,设置-DENABLE_PADDLE_BACKEND=ON %
|
||||
% (3) 若编译TensorRT后端,需要设置-DENABLE_TRT_BACKEND=ON,并指定TRT_DIRECTORY %
|
||||
% (3) 若编译TensorRT后端,需要设置-DENABLE_TRT_BACKEND=ON,并指定TRT_DIRECTORY %
|
||||
% (4) 如-DTRT_DIRECTORY=D:\x64\third_party\TensorRT-8.4.1.5 %
|
||||
```
|
||||
编译后,FastDeploy GPU C++ SDK即在`D:\Paddle\FastDeploy\build\fastdeploy-win-x64-gpu-0.2.0`目录下
|
||||
@@ -55,7 +55,7 @@ set ENABLE_ORT_BACKEND=ON
|
||||
set ENABLE_VISION=ON
|
||||
|
||||
% 这里指定用户自己的python解释器 以ptyhon3.8为例 %
|
||||
C:\Python38\python.exe setup.py build
|
||||
C:\Python38\python.exe setup.py build
|
||||
C:\Python38\python.exe setup.py bdist_wheel
|
||||
```
|
||||
编译好的wheel文件在dist目录下,pip安装编译好的wheel包,命令如下
|
||||
@@ -68,7 +68,7 @@ Windows菜单打开x64 Native Tools Command Prompt for VS 2019命令工具。Pyt
|
||||
```bat
|
||||
% 说明:CUDA_DIRECTORY 为用户自己的CUDA目录 以下为示例 %
|
||||
set CUDA_DIRECTORY=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2
|
||||
% 说明:TRT_DIRECTORY 为下载的TensorRT库所在的目录 以下为示例 如果不编译TensorRT后端 可以不设置 %
|
||||
% 说明:TRT_DIRECTORY 为下载的TensorRT库所在的目录 以下为示例 如果不编译TensorRT后端 可以不设置 %
|
||||
set TRT_DIRECTORY=D:\x64\third_party\TensorRT-8.4.1.5
|
||||
set WITH_GPU=ON
|
||||
set ENABLE_ORT_BACKEND=ON
|
||||
@@ -79,11 +79,11 @@ set ENABLE_PADDLE_FRONTEND=ON
|
||||
set ENABLE_VISION=ON
|
||||
set ENABLE_VISION_VISUALIZE=ON
|
||||
|
||||
git clone https://github.com/PaddlePaddle/FastDeploy.git
|
||||
git clone https://github.com/PaddlePaddle/FastDeploy.git
|
||||
cd FastDeploy && git checkout develop
|
||||
|
||||
% 说明:这里指定用户自己的python解释器 以ptyhon3.8为例 %
|
||||
C:\Python38\python.exe setup.py build
|
||||
C:\Python38\python.exe setup.py build
|
||||
C:\Python38\python.exe setup.py bdist_wheel
|
||||
```
|
||||
编译好的wheel文件在dist目录下,pip安装编译好的wheel包,命令如下
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
- cmake >= 3.12
|
||||
- Visual Studio 16 2019
|
||||
- cuda >= 11.2 (当WITH_GPU=ON)
|
||||
- cudnn >= 11.2 (当WITH_GPU=ON)
|
||||
- cudnn >= 8.0 (当WITH_GPU=ON)
|
||||
- TensorRT >= 8.4 (当ENABLE_TRT_BACKEND=ON)
|
||||
|
||||
## 下载 FastDeploy Windows 10 C++ SDK
|
||||
|
||||
Reference in New Issue
Block a user