mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 09:07:10 +08:00
@@ -16,14 +16,14 @@ WITH_GPU=${1:-ON}
|
||||
|
||||
if [ $WITH_GPU == "ON" ]; then
|
||||
|
||||
sh build_fd_vison.sh ON
|
||||
sh build_fd_runtime.sh ON
|
||||
sh build_fd_backend.sh ON
|
||||
bash scripts/build_fd_vison.sh ON
|
||||
bash scripts/build_fd_runtime.sh ON
|
||||
bash scripts/build_fd_backend.sh ON
|
||||
|
||||
else
|
||||
|
||||
sh build_fd_vison.sh OFF
|
||||
sh build_fd_runtime.sh OFF
|
||||
sh build_fd_backend.sh OFF
|
||||
bash scripts/build_fd_vison.sh OFF
|
||||
bash scripts/build_fd_runtime.sh OFF
|
||||
bash scripts/build_fd_backend.sh OFF
|
||||
|
||||
fi
|
||||
|
@@ -35,10 +35,9 @@ docker run -it --rm --name build_fd_backend \
|
||||
else
|
||||
docker run -it --rm --name build_fd_backend \
|
||||
-v`pwd`/..:/workspace/fastdeploy \
|
||||
paddlepaddle/fastdeploy:22.09-cpu-only-buildbase \
|
||||
paddlepaddle/fastdeploy:21.10-cpu-only-buildbase \
|
||||
bash -c \
|
||||
'cd /workspace/fastdeploy/serving;
|
||||
rm -rf build; mkdir build; cd build;
|
||||
apt-get update; apt-get install -y --no-install-recommends rapidjson-dev;
|
||||
cmake .. -DTRITON_ENABLE_GPU=OFF -DFASTDEPLOY_DIR=/workspace/fastdeploy/build/fastdeploy-0.0.3 -DTRITON_COMMON_REPO_TAG=r22.09 -DTRITON_CORE_REPO_TAG=r22.09 -DTRITON_BACKEND_REPO_TAG=r22.09; make -j`nproc`'
|
||||
cmake .. -DTRITON_ENABLE_GPU=OFF -DFASTDEPLOY_DIR=/workspace/fastdeploy/build/fastdeploy-0.0.3 -DTRITON_COMMON_REPO_TAG=r21.10 -DTRITON_CORE_REPO_TAG=r21.10 -DTRITON_BACKEND_REPO_TAG=r21.10; make -j`nproc`'
|
||||
fi
|
||||
|
@@ -46,10 +46,11 @@ else
|
||||
|
||||
docker run -it --rm --name build_fd_runtime \
|
||||
-v`pwd`/..:/workspace/fastdeploy \
|
||||
paddlepaddle/fastdeploy:22.09-cpu-only-buildbase \
|
||||
paddlepaddle/fastdeploy:21.10-cpu-only-buildbase \
|
||||
bash -c \
|
||||
'cd /workspace/fastdeploy;
|
||||
rm -rf build; mkdir build; cd build;
|
||||
ln -s /usr/bin/python3 /usr/bin/python;
|
||||
cmake .. -DENABLE_TRT_BACKEND=OFF -DCMAKE_INSTALL_PREFIX=${PWD}/fastdeploy-0.0.3 -DWITH_GPU=OFF -DENABLE_PADDLE_BACKEND=ON -DENABLE_ORT_BACKEND=ON -DENABLE_OPENVINO_BACKEND=ON -DENABLE_VISION=OFF -DBUILD_FASTDEPLOY_PYTHON=OFF -DENABLE_PADDLE_FRONTEND=ON -DENABLE_TEXT=OFF -DLIBRARY_NAME=fastdeploy_runtime;
|
||||
make -j`nproc`;
|
||||
make install'
|
||||
|
@@ -43,10 +43,11 @@ else
|
||||
|
||||
docker run -it --rm --name build_fd_vison \
|
||||
-v`pwd`/..:/workspace/fastdeploy \
|
||||
paddlepaddle/fastdeploy:22.09-cpu-only-buildbase \
|
||||
paddlepaddle/fastdeploy:21.10-cpu-only-buildbase \
|
||||
bash -c \
|
||||
'cd /workspace/fastdeploy/python;
|
||||
rm -rf .setuptools-cmake-build dist;
|
||||
ln -s /usr/bin/python3 /usr/bin/python;
|
||||
export WITH_GPU=OFF;
|
||||
export ENABLE_VISION=ON;
|
||||
export ENABLE_TEXT=ON;
|
||||
|
Reference in New Issue
Block a user