Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
8824d1cd
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看板
未验证
提交
8824d1cd
编写于
9月 03, 2021
作者:
T
TeslaZhao
提交者:
GitHub
9月 03, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1373 from ZhangYulongg/ci-test
Add asyn server CI case
上级
a87dbb97
b8647b8f
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
27 addition
and
8 deletion
+27
-8
tools/scripts/ipipe_py3.sh
tools/scripts/ipipe_py3.sh
+27
-8
未找到文件。
tools/scripts/ipipe_py3.sh
浏览文件 @
8824d1cd
...
@@ -40,9 +40,9 @@ go env -w GO111MODULE=auto
...
@@ -40,9 +40,9 @@ go env -w GO111MODULE=auto
build_whl_list
=(
build_cpu_server build_gpu_server build_client build_app
)
build_whl_list
=(
build_cpu_server build_gpu_server build_client build_app
)
rpc_model_list
=(
grpc_fit_a_line grpc_yolov4 pipeline_imagenet bert_rpc_gpu bert_rpc_cpu ResNet50_rpc
\
rpc_model_list
=(
grpc_fit_a_line grpc_yolov4 pipeline_imagenet bert_rpc_gpu bert_rpc_cpu ResNet50_rpc
\
lac_rpc
cnn_rpc
bow_rpc lstm_rpc fit_a_line_rpc deeplabv3_rpc mobilenet_rpc unet_rpc resnetv2_rpc
\
lac_rpc
_asyn cnn_rpc_asyn
bow_rpc lstm_rpc fit_a_line_rpc deeplabv3_rpc mobilenet_rpc unet_rpc resnetv2_rpc
\
criteo_ctr_rpc_cpu criteo_ctr_rpc_gpu ocr_rpc yolov4_rpc_gpu faster_rcnn_hrnetv2p_w18_1x_encrypt
\
criteo_ctr_rpc_cpu criteo_ctr_rpc_gpu ocr_rpc yolov4_rpc_gpu faster_rcnn_hrnetv2p_w18_1x_encrypt
\
faster_rcnn_model_rpc low_precision_resnet50_int8 ocr_c++_service
)
faster_rcnn_model_rpc low_precision_resnet50_int8 ocr_c++_service
ocr_c++_service_asyn
)
http_model_list
=(
fit_a_line_http lac_http imdb_http_proto imdb_http_json imdb_grpc ResNet50_http bert_http
\
http_model_list
=(
fit_a_line_http lac_http imdb_http_proto imdb_http_json imdb_grpc ResNet50_http bert_http
\
pipeline_ocr_cpu_http
)
pipeline_ocr_cpu_http
)
...
@@ -492,7 +492,7 @@ function ResNet101_rpc() {
...
@@ -492,7 +492,7 @@ function ResNet101_rpc() {
kill_server_process
kill_server_process
}
}
function
cnn_rpc
()
{
function
cnn_rpc
_asyn
()
{
dir
=
${
log_dir
}
rpc_model/cnn_rpc/
dir
=
${
log_dir
}
rpc_model/cnn_rpc/
check_dir
${
dir
}
check_dir
${
dir
}
unsetproxy
unsetproxy
...
@@ -500,8 +500,9 @@ function cnn_rpc() {
...
@@ -500,8 +500,9 @@ function cnn_rpc() {
data_dir
=
${
data
}
imdb/
data_dir
=
${
data
}
imdb/
link_data
${
data_dir
}
link_data
${
data_dir
}
sed
-i
's/9292/8865/g'
test_client.py
sed
-i
's/9292/8865/g'
test_client.py
${
py_version
}
-m
paddle_serving_server.serve
--model
imdb_cnn_model/
--port
8865
>
${
dir
}
server_log.txt 2>&1 &
${
py_version
}
-m
paddle_serving_server.serve
--model
imdb_cnn_model/
--port
8865
--op_num
4
--thread
10
--gpu_ids
0
>
${
dir
}
server_log.txt 2>&1 &
check_result server 5
check_result server 8
check_gpu_memory 0
head
test_data/part-0 |
${
py_version
}
test_client.py imdb_cnn_client_conf/serving_client_conf.prototxt imdb.vocab
>
${
dir
}
client_log.txt 2>&1
head
test_data/part-0 |
${
py_version
}
test_client.py imdb_cnn_client_conf/serving_client_conf.prototxt imdb.vocab
>
${
dir
}
client_log.txt 2>&1
check_result client
"cnn_CPU_RPC server test completed"
check_result client
"cnn_CPU_RPC server test completed"
kill_server_process
kill_server_process
...
@@ -537,7 +538,7 @@ function lstm_rpc() {
...
@@ -537,7 +538,7 @@ function lstm_rpc() {
kill_server_process
kill_server_process
}
}
function
lac_rpc
()
{
function
lac_rpc
_asyn
()
{
dir
=
${
log_dir
}
rpc_model/lac_rpc/
dir
=
${
log_dir
}
rpc_model/lac_rpc/
check_dir
${
dir
}
check_dir
${
dir
}
unsetproxy
unsetproxy
...
@@ -545,8 +546,9 @@ function lac_rpc() {
...
@@ -545,8 +546,9 @@ function lac_rpc() {
data_dir
=
${
data
}
lac/
data_dir
=
${
data
}
lac/
link_data
${
data_dir
}
link_data
${
data_dir
}
sed
-i
's/9292/8868/g'
lac_client.py
sed
-i
's/9292/8868/g'
lac_client.py
${
py_version
}
-m
paddle_serving_server.serve
--model
lac_model/
--port
8868
>
${
dir
}
server_log.txt 2>&1 &
${
py_version
}
-m
paddle_serving_server.serve
--model
lac_model/
--port
8868
--gpu_ids
0
--op_num
2
>
${
dir
}
server_log.txt 2>&1 &
check_result server 5
check_result server 8
check_gpu_memory 0
echo
"我爱北京天安门"
|
${
py_version
}
lac_client.py lac_client/serving_client_conf.prototxt lac_dict/
>
${
dir
}
client_log.txt 2>&1
echo
"我爱北京天安门"
|
${
py_version
}
lac_client.py lac_client/serving_client_conf.prototxt lac_dict/
>
${
dir
}
client_log.txt 2>&1
check_result client
"lac_CPU_RPC server test completed"
check_result client
"lac_CPU_RPC server test completed"
kill_server_process
kill_server_process
...
@@ -923,6 +925,23 @@ function ocr_c++_service() {
...
@@ -923,6 +925,23 @@ function ocr_c++_service() {
kill_server_process
kill_server_process
}
}
function
ocr_c++_service_asyn
()
{
dir
=
${
log_dir
}
rpc_model/ocr_c++_serving/
cd
${
build_path
}
/python/examples/ocr
check_dir
${
dir
}
echo
-e
"
${
GREEN_COLOR
}
OCR_C++_Service_GPU_RPC asyn_server started
${
RES
}
"
$py_version
-m
paddle_serving_server.serve
--model
ocr_det_model ocr_rec_model
--port
9293
--gpu_id
0
--op_num
4
>
${
dir
}
server_log.txt 2>&1 &
check_result server 8
check_gpu_memory 0
echo
-e
"
${
GREEN_COLOR
}
OCR_C++_Service_GPU_RPC client started
${
RES
}
"
echo
"------------------first:"
$py_version
ocr_cpp_client.py ocr_det_client ocr_rec_client
echo
"------------------second:"
$py_version
ocr_cpp_client.py ocr_det_client ocr_rec_client
>
${
dir
}
client_log.txt 2>&1
check_result client
"OCR_C++_Service_GPU_RPC server test completed"
kill_server_process
}
function
build_all_whl
()
{
function
build_all_whl
()
{
for
whl
in
${
build_whl_list
[@]
}
for
whl
in
${
build_whl_list
[@]
}
do
do
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录