change bash to source in prepare.sh, make 'SERVING_BIN' effective in global context

pull/2057/head
HydrogenSulfate 2022-06-15 11:32:26 +08:00
parent 3569d12656
commit ed69e5bc13
3 changed files with 40 additions and 40 deletions

View File

@ -1,6 +1,6 @@
# Linux GPU/CPU PYTHON 服务化部署测试 # Linux GPU/CPU C++ 服务化部署测试
Linux GPU/CPU PYTHON 服务化部署测试的主程序为`test_serving_infer_cpp.sh`可以测试基于Python的模型服务化部署功能。 Linux GPU/CPU C++ 服务化部署测试的主程序为`test_serving_infer_cpp.sh`可以测试基于C++的模型服务化部署功能。
## 1. 测试结论汇总 ## 1. 测试结论汇总
@ -8,7 +8,7 @@ Linux GPU/CPU PYTHON 服务化部署测试的主程序为`test_serving_infer_cp
- 推理相关: - 推理相关:
| 算法名称 | 模型名称 | device_CPU | device_GPU | | 算法名称 | 模型名称 | device_CPU | device_GPU |
| :----: | :----: | :----: | :----: | | :-------------: | :---------------------------------------: | :--------: | :--------: |
| MobileNetV3 | MobileNetV3_large_x1_0 | 支持 | 支持 | | MobileNetV3 | MobileNetV3_large_x1_0 | 支持 | 支持 |
| PP-ShiTu | PPShiTu_general_rec、PPShiTu_mainbody_det | 支持 | 支持 | | PP-ShiTu | PPShiTu_general_rec、PPShiTu_mainbody_det | 支持 | 支持 |
| PPHGNet | PPHGNet_small | 支持 | 支持 | | PPHGNet | PPHGNet_small | 支持 | 支持 |

View File

@ -8,7 +8,7 @@ Linux GPU/CPU PYTHON 服务化部署测试的主程序为`test_serving_infer_py
- 推理相关: - 推理相关:
| 算法名称 | 模型名称 | device_CPU | device_GPU | | 算法名称 | 模型名称 | device_CPU | device_GPU |
| :----: | :----: | :----: | :----: | | :-------------: | :---------------------------------------: | :--------: | :--------: |
| MobileNetV3 | MobileNetV3_large_x1_0 | 支持 | 支持 | | MobileNetV3 | MobileNetV3_large_x1_0 | 支持 | 支持 |
| PP-ShiTu | PPShiTu_general_rec、PPShiTu_mainbody_det | 支持 | 支持 | | PP-ShiTu | PPShiTu_general_rec、PPShiTu_mainbody_det | 支持 | 支持 |
| PPHGNet | PPHGNet_small | 支持 | 支持 | | PPHGNet | PPHGNet_small | 支持 | 支持 |

View File

@ -205,7 +205,7 @@ if [[ ${MODE} = "serving_infer" ]]; then
python_name=$(func_parser_value "${lines[2]}") python_name=$(func_parser_value "${lines[2]}")
if [[ ${FILENAME} =~ "cpp" ]]; then if [[ ${FILENAME} =~ "cpp" ]]; then
pushd ./deploy/paddleserving pushd ./deploy/paddleserving
bash build_server.sh ${python_name} source build_server.sh ${python_name}
popd popd
else else
${python_name} -m pip install install paddle-serving-server-gpu==0.9.0.post101 -i https://pypi.tuna.tsinghua.edu.cn/simple ${python_name} -m pip install install paddle-serving-server-gpu==0.9.0.post101 -i https://pypi.tuna.tsinghua.edu.cn/simple