Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
91c34b79
S
Serving
项目概览
PaddlePaddle
/
Serving
1 年多 前同步成功
通知
186
Star
833
Fork
253
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
105
列表
看板
标记
里程碑
合并请求
10
Wiki
2
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Serving
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
105
Issue
105
列表
看板
标记
里程碑
合并请求
10
合并请求
10
Pages
分析
分析
仓库分析
DevOps
Wiki
2
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
91c34b79
编写于
8月 04, 2021
作者:
H
HexToString
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop-p' of github.com:HexToString/Serving into develop-p
上级
cd06e915
f961850b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
36 addition
and
34 deletion
+36
-34
tools/scripts/ipipe_py3.sh
tools/scripts/ipipe_py3.sh
+36
-34
未找到文件。
tools/scripts/ipipe_py3.sh
浏览文件 @
91c34b79
...
...
@@ -852,43 +852,45 @@ function bert_http() {
}
function
grpc_fit_a_line
()
{
dir
=
${
log_dir
}
rpc_model/grpc_fit_a_line/
check_dir
${
dir
}
unsetproxy
cd
${
build_path
}
/python/examples/grpc_impl_example/fit_a_line
data_dir
=
${
data
}
fit_a_line/
link_data
${
data_dir
}
${
py_version
}
test_server.py uci_housing_model/
>
${
dir
}
server_log.txt 2>&1 &
check_result server 5
echo
"sync predict"
>
${
dir
}
client_log.txt 2>&1
${
py_version
}
test_sync_client.py
>>
${
dir
}
client_log.txt 2>&1
check_result client
"grpc_impl_example_fit_a_line_sync_CPU_gRPC server sync test completed"
echo
"async predict"
>>
${
dir
}
client_log.txt 2>&1
${
py_version
}
test_asyn_client.py
>>
${
dir
}
client_log.txt 2>&1
check_result client
"grpc_impl_example_fit_a_line_asyn_CPU_gRPC server asyn test completed"
echo
"batch predict"
>>
${
dir
}
client_log.txt 2>&1
${
py_version
}
test_batch_client.py
>>
${
dir
}
client_log.txt 2>&1
check_result client
"grpc_impl_example_fit_a_line_batch_CPU_gRPC server batch test completed"
echo
"timeout predict"
>>
${
dir
}
client_log.txt 2>&1
${
py_version
}
test_timeout_client.py
>>
${
dir
}
client_log.txt 2>&1
check_result client
"grpc_impl_example_fit_a_line_timeout_CPU_gRPC server timeout test completed"
kill_server_process
echo
"pass"
# dir=${log_dir}rpc_model/grpc_fit_a_line/
# check_dir ${dir}
# unsetproxy
# cd ${build_path}/python/examples/grpc_impl_example/fit_a_line
# data_dir=${data}fit_a_line/
# link_data ${data_dir}
# ${py_version} test_server.py uci_housing_model/ > ${dir}server_log.txt 2>&1 &
# check_result server 5
# echo "sync predict" > ${dir}client_log.txt 2>&1
# ${py_version} test_sync_client.py >> ${dir}client_log.txt 2>&1
# check_result client "grpc_impl_example_fit_a_line_sync_CPU_gRPC server sync test completed"
# echo "async predict" >> ${dir}client_log.txt 2>&1
# ${py_version} test_asyn_client.py >> ${dir}client_log.txt 2>&1
# check_result client "grpc_impl_example_fit_a_line_asyn_CPU_gRPC server asyn test completed"
# echo "batch predict" >> ${dir}client_log.txt 2>&1
# ${py_version} test_batch_client.py >> ${dir}client_log.txt 2>&1
# check_result client "grpc_impl_example_fit_a_line_batch_CPU_gRPC server batch test completed"
# echo "timeout predict" >> ${dir}client_log.txt 2>&1
# ${py_version} test_timeout_client.py >> ${dir}client_log.txt 2>&1
# check_result client "grpc_impl_example_fit_a_line_timeout_CPU_gRPC server timeout test completed"
# kill_server_process
}
function
grpc_yolov4
()
{
dir
=
${
log_dir
}
rpc_model/grpc_yolov4/
cd
${
build_path
}
/python/examples/grpc_impl_example/yolov4
check_dir
${
dir
}
data_dir
=
${
data
}
yolov4/
link_data
${
data_dir
}
echo
-e
"
${
GREEN_COLOR
}
grpc_impl_example_yolov4_GPU_gRPC server started
${
RES
}
"
${
py_version
}
-m
paddle_serving_server.serve
--model
yolov4_model
--port
9393
--gpu_ids
0
--use_multilang
>
${
dir
}
server_log.txt 2>&1 &
check_result server 15
check_gpu_memory 0
echo
-e
"
${
GREEN_COLOR
}
grpc_impl_example_yolov4_GPU_gRPC client started
${
RES
}
"
${
py_version
}
test_client.py 000000570688.jpg
>
${
dir
}
client_log.txt 2>&1
check_result client
"grpc_yolov4_GPU_GRPC server test completed"
kill_server_process
echo
"pass"
# dir=${log_dir}rpc_model/grpc_yolov4/
# cd ${build_path}/python/examples/grpc_impl_example/yolov4
# check_dir ${dir}
# data_dir=${data}yolov4/
# link_data ${data_dir}
# echo -e "${GREEN_COLOR}grpc_impl_example_yolov4_GPU_gRPC server started${RES}"
# ${py_version} -m paddle_serving_server.serve --model yolov4_model --port 9393 --gpu_ids 0 --use_multilang > ${dir}server_log.txt 2>&1 &
# check_result server 15
# check_gpu_memory 0
# echo -e "${GREEN_COLOR}grpc_impl_example_yolov4_GPU_gRPC client started${RES}"
# ${py_version} test_client.py 000000570688.jpg > ${dir}client_log.txt 2>&1
# check_result client "grpc_yolov4_GPU_GRPC server test completed"
# kill_server_process
}
function
ocr_c++_service
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录