1.Paddle FastDeploy 在cmake 时的命令执行报错处理
命令是参考官网的,如下:
git clone https://github.com/PaddlePaddle/FastDeploy.git
cd FastDeploy
mkdir build && cd build
cmake .. -G "Visual Studio 16 2019" -A x64 \
-DENABLE_ORT_BACKEND=ON \
-DENABLE_PADDLE_BACKEND=ON \
-DENABLE_OPENVINO_BACKEND=ON \
-DENABLE_TRT_BACKEND=ON
-DENABLE_VISION=ON \
-DWITH_GPU=ON \
-DTRT_DIRECTORY="D:\Paddle\TensorRT-8.4.1.5" \
-DCUDA_DIRECTORY="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2" \
-DCMAKE_INSTALL_PREFIX="D:\Paddle\compiled_fastdeploy"
% nuget restore (please execute it when WITH_CSHARPAPI=ON to prepare dependencies in C#)
msbuild fastdeploy.sln /m /p:Configuration=Release /p:Platform=x64
msbuild INSTALL.vcxproj /m /p:Configuration=Release /p:Platform=x64
发现这段Cmake指令在cmd中是无法执行的,经过更改如下可以执行了。主要是处理多行识别问题。一个比较死板的办法把"\" 去掉。中间有段文字加了""处理。
cmake .. -G "Visual Studio 16 2019" -A x64 -DENABLE_ORT_BACKEND=ON -DENABLE_PADDLE_BACKEND=ON -DENABLE_OPENVINO_BACKEND=ON -DENABLE_TRT_BACKEND=ON -DENABLE_VISION=ON -DWITH_GPU=ON -DTRT_DIRECTORY="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4\TensorRT-8.4.1.5" -DCUDA_DIRECTORY="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4" -DCMAKE_INSTALL_PREFIX="D:\deep\paddle\compiled_fastdeploy" % nuget restore ("please execute it when WITH_CSHARPAPI=ON to prepare dependencies in C#") msbuild fastdeploy.sln /m /p:Configuration=Release /p:Platform=x64 msbuild INSTALL.vcxproj /m /p:Configuration=Release /p:Platform=x64
2.经过处理后的运行结果如下: