Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
08c15f6c
S
Serving
项目概览
PaddlePaddle
/
Serving
大约 1 年 前同步成功
通知
185
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
08c15f6c
编写于
4月 23, 2021
作者:
Z
Zhang Yulong
提交者:
GitHub
4月 23, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update ipipe_py3.sh
适应部分机器
上级
d8852342
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
13 addition
and
13 deletion
+13
-13
tools/scripts/ipipe_py3.sh
tools/scripts/ipipe_py3.sh
+13
-13
未找到文件。
tools/scripts/ipipe_py3.sh
浏览文件 @
08c15f6c
...
@@ -323,7 +323,7 @@ function bert_rpc_cpu() {
...
@@ -323,7 +323,7 @@ function bert_rpc_cpu() {
link_data
${
data_dir
}
link_data
${
data_dir
}
sed
-i
's/8860/8861/g'
bert_client.py
sed
-i
's/8860/8861/g'
bert_client.py
python3.6
-m
paddle_serving_server.serve
--model
bert_seq128_model/
--port
8861
>
${
dir
}
server_log.txt 2>&1 &
python3.6
-m
paddle_serving_server.serve
--model
bert_seq128_model/
--port
8861
>
${
dir
}
server_log.txt 2>&1 &
check_result server
3
check_result server
5
cp
data-c.txt.1 data-c.txt
cp
data-c.txt.1 data-c.txt
head
data-c.txt | python3.6 bert_client.py
--model
bert_seq128_client/serving_client_conf.prototxt
>
${
dir
}
client_log.txt 2>&1
head
data-c.txt | python3.6 bert_client.py
--model
bert_seq128_client/serving_client_conf.prototxt
>
${
dir
}
client_log.txt 2>&1
check_result client
"bert_CPU_RPC server test completed"
check_result client
"bert_CPU_RPC server test completed"
...
@@ -338,7 +338,7 @@ function pipeline_imagenet() {
...
@@ -338,7 +338,7 @@ function pipeline_imagenet() {
data_dir
=
${
data
}
imagenet/
data_dir
=
${
data
}
imagenet/
link_data
${
data_dir
}
link_data
${
data_dir
}
python3.6 resnet50_web_service.py
>
${
dir
}
server_log.txt 2>&1 &
python3.6 resnet50_web_service.py
>
${
dir
}
server_log.txt 2>&1 &
check_result server
5
check_result server
8
nvidia-smi
nvidia-smi
python3.6 pipeline_rpc_client.py
>
${
dir
}
client_log.txt 2>&1
python3.6 pipeline_rpc_client.py
>
${
dir
}
client_log.txt 2>&1
check_result client
"pipeline_imagenet_GPU_RPC server test completed"
check_result client
"pipeline_imagenet_GPU_RPC server test completed"
...
@@ -355,7 +355,7 @@ function ResNet50_rpc() {
...
@@ -355,7 +355,7 @@ function ResNet50_rpc() {
link_data
${
data_dir
}
link_data
${
data_dir
}
sed
-i
's/9696/8863/g'
resnet50_rpc_client.py
sed
-i
's/9696/8863/g'
resnet50_rpc_client.py
python3.6
-m
paddle_serving_server.serve
--model
ResNet50_vd_model
--port
8863
--gpu_ids
0
>
${
dir
}
server_log.txt 2>&1 &
python3.6
-m
paddle_serving_server.serve
--model
ResNet50_vd_model
--port
8863
--gpu_ids
0
>
${
dir
}
server_log.txt 2>&1 &
check_result server
5
check_result server
8
nvidia-smi
nvidia-smi
python3.6 resnet50_rpc_client.py ResNet50_vd_client_config/serving_client_conf.prototxt
>
${
dir
}
client_log.txt 2>&1
python3.6 resnet50_rpc_client.py ResNet50_vd_client_config/serving_client_conf.prototxt
>
${
dir
}
client_log.txt 2>&1
check_result client
"ResNet50_GPU_RPC server test completed"
check_result client
"ResNet50_GPU_RPC server test completed"
...
@@ -372,7 +372,7 @@ function ResNet101_rpc() {
...
@@ -372,7 +372,7 @@ function ResNet101_rpc() {
link_data
${
data_dir
}
link_data
${
data_dir
}
sed
-i
"22cclient.connect(['127.0.0.1:8864'])"
image_rpc_client.py
sed
-i
"22cclient.connect(['127.0.0.1:8864'])"
image_rpc_client.py
python3.6
-m
paddle_serving_server.serve
--model
ResNet101_vd_model
--port
8864
--gpu_ids
0
>
${
dir
}
server_log.txt 2>&1 &
python3.6
-m
paddle_serving_server.serve
--model
ResNet101_vd_model
--port
8864
--gpu_ids
0
>
${
dir
}
server_log.txt 2>&1 &
check_result server
5
check_result server
8
nvidia-smi
nvidia-smi
python3.6 image_rpc_client.py ResNet101_vd_client_config/serving_client_conf.prototxt
>
${
dir
}
client_log.txt 2>&1
python3.6 image_rpc_client.py ResNet101_vd_client_config/serving_client_conf.prototxt
>
${
dir
}
client_log.txt 2>&1
check_result client
"ResNet101_GPU_RPC server test completed"
check_result client
"ResNet101_GPU_RPC server test completed"
...
@@ -482,7 +482,7 @@ function cascade_rcnn_rpc() {
...
@@ -482,7 +482,7 @@ function cascade_rcnn_rpc() {
link_data
${
data_dir
}
link_data
${
data_dir
}
sed
-i
"s/9292/8879/g"
test_client.py
sed
-i
"s/9292/8879/g"
test_client.py
python3.6
-m
paddle_serving_server.serve
--model
serving_server
--port
8879
--gpu_ids
0
--thread
2
>
${
dir
}
server_log.txt 2>&1 &
python3.6
-m
paddle_serving_server.serve
--model
serving_server
--port
8879
--gpu_ids
0
--thread
2
>
${
dir
}
server_log.txt 2>&1 &
check_result server
5
check_result server
8
nvidia-smi
nvidia-smi
python3.6 test_client.py
>
${
dir
}
client_log.txt 2>&1
python3.6 test_client.py
>
${
dir
}
client_log.txt 2>&1
nvidia-smi
nvidia-smi
...
@@ -499,7 +499,7 @@ function deeplabv3_rpc() {
...
@@ -499,7 +499,7 @@ function deeplabv3_rpc() {
link_data
${
data_dir
}
link_data
${
data_dir
}
sed
-i
"s/9494/8880/g"
deeplabv3_client.py
sed
-i
"s/9494/8880/g"
deeplabv3_client.py
python3.6
-m
paddle_serving_server.serve
--model
deeplabv3_server
--gpu_ids
0
--port
8880
--thread
2
>
${
dir
}
server_log.txt 2>&1 &
python3.6
-m
paddle_serving_server.serve
--model
deeplabv3_server
--gpu_ids
0
--port
8880
--thread
2
>
${
dir
}
server_log.txt 2>&1 &
check_result server
5
check_result server
10
nvidia-smi
nvidia-smi
python3.6 deeplabv3_client.py
>
${
dir
}
client_log.txt 2>&1
python3.6 deeplabv3_client.py
>
${
dir
}
client_log.txt 2>&1
nvidia-smi
nvidia-smi
...
@@ -516,7 +516,7 @@ function mobilenet_rpc() {
...
@@ -516,7 +516,7 @@ function mobilenet_rpc() {
tar
xf mobilenet_v2_imagenet.tar.gz
tar
xf mobilenet_v2_imagenet.tar.gz
sed
-i
"s/9393/8881/g"
mobilenet_tutorial.py
sed
-i
"s/9393/8881/g"
mobilenet_tutorial.py
python3.6
-m
paddle_serving_server.serve
--model
mobilenet_v2_imagenet_model
--gpu_ids
0
--port
8881
>
${
dir
}
server_log.txt 2>&1 &
python3.6
-m
paddle_serving_server.serve
--model
mobilenet_v2_imagenet_model
--gpu_ids
0
--port
8881
>
${
dir
}
server_log.txt 2>&1 &
check_result server
5
check_result server
8
nvidia-smi
nvidia-smi
python3.6 mobilenet_tutorial.py
>
${
dir
}
client_log.txt 2>&1
python3.6 mobilenet_tutorial.py
>
${
dir
}
client_log.txt 2>&1
nvidia-smi
nvidia-smi
...
@@ -533,7 +533,7 @@ function unet_rpc() {
...
@@ -533,7 +533,7 @@ function unet_rpc() {
link_data
${
data_dir
}
link_data
${
data_dir
}
sed
-i
"s/9494/8882/g"
seg_client.py
sed
-i
"s/9494/8882/g"
seg_client.py
python3.6
-m
paddle_serving_server.serve
--model
unet_model
--gpu_ids
0
--port
8882
>
${
dir
}
server_log.txt 2>&1 &
python3.6
-m
paddle_serving_server.serve
--model
unet_model
--gpu_ids
0
--port
8882
>
${
dir
}
server_log.txt 2>&1 &
check_result server
5
check_result server
8
nvidia-smi
nvidia-smi
python3.6 seg_client.py
>
${
dir
}
client_log.txt 2>&1
python3.6 seg_client.py
>
${
dir
}
client_log.txt 2>&1
nvidia-smi
nvidia-smi
...
@@ -599,7 +599,7 @@ function criteo_ctr_rpc_gpu() {
...
@@ -599,7 +599,7 @@ function criteo_ctr_rpc_gpu() {
link_data
${
data_dir
}
link_data
${
data_dir
}
sed
-i
"s/8885/8886/g"
test_client.py
sed
-i
"s/8885/8886/g"
test_client.py
python3.6
-m
paddle_serving_server.serve
--model
ctr_serving_model/
--port
8886
--gpu_ids
0
>
${
dir
}
server_log.txt 2>&1 &
python3.6
-m
paddle_serving_server.serve
--model
ctr_serving_model/
--port
8886
--gpu_ids
0
>
${
dir
}
server_log.txt 2>&1 &
check_result server
5
check_result server
8
nvidia-smi
nvidia-smi
python3.6 test_client.py ctr_client_conf/serving_client_conf.prototxt raw_data/part-0
>
${
dir
}
client_log.txt 2>&1
python3.6 test_client.py ctr_client_conf/serving_client_conf.prototxt raw_data/part-0
>
${
dir
}
client_log.txt 2>&1
nvidia-smi
nvidia-smi
...
@@ -617,7 +617,7 @@ function yolov4_rpc_gpu() {
...
@@ -617,7 +617,7 @@ function yolov4_rpc_gpu() {
sed
-i
"s/9393/8887/g"
test_client.py
sed
-i
"s/9393/8887/g"
test_client.py
python3.6
-m
paddle_serving_server.serve
--model
yolov4_model
--port
8887
--gpu_ids
0
>
${
dir
}
server_log.txt 2>&1 &
python3.6
-m
paddle_serving_server.serve
--model
yolov4_model
--port
8887
--gpu_ids
0
>
${
dir
}
server_log.txt 2>&1 &
nvidia-smi
nvidia-smi
check_result server
5
check_result server
8
python3.6 test_client.py 000000570688.jpg
>
${
dir
}
client_log.txt 2>&1
python3.6 test_client.py 000000570688.jpg
>
${
dir
}
client_log.txt 2>&1
nvidia-smi
nvidia-smi
check_result client
"yolov4_GPU_RPC server test completed"
check_result client
"yolov4_GPU_RPC server test completed"
...
@@ -634,7 +634,7 @@ function senta_rpc_cpu() {
...
@@ -634,7 +634,7 @@ function senta_rpc_cpu() {
sed
-i
"s/9393/8887/g"
test_client.py
sed
-i
"s/9393/8887/g"
test_client.py
python3.6
-m
paddle_serving_server.serve
--model
yolov4_model
--port
8887
--gpu_ids
0
>
${
dir
}
server_log.txt 2>&1 &
python3.6
-m
paddle_serving_server.serve
--model
yolov4_model
--port
8887
--gpu_ids
0
>
${
dir
}
server_log.txt 2>&1 &
nvidia-smi
nvidia-smi
check_result server
5
check_result server
8
python3.6 test_client.py 000000570688.jpg
>
${
dir
}
client_log.txt 2>&1
python3.6 test_client.py 000000570688.jpg
>
${
dir
}
client_log.txt 2>&1
nvidia-smi
nvidia-smi
check_result client
"senta_GPU_RPC server test completed"
check_result client
"senta_GPU_RPC server test completed"
...
@@ -724,7 +724,7 @@ function bert_http() {
...
@@ -724,7 +724,7 @@ function bert_http() {
cp
vocab.txt.1 vocab.txt
cp
vocab.txt.1 vocab.txt
export
CUDA_VISIBLE_DEVICES
=
0
export
CUDA_VISIBLE_DEVICES
=
0
python3.6 bert_web_service.py bert_seq128_model/ 8878
>
${
dir
}
server_log.txt 2>&1 &
python3.6 bert_web_service.py bert_seq128_model/ 8878
>
${
dir
}
server_log.txt 2>&1 &
check_result server
5
check_result server
8
curl
-H
"Content-Type:application/json"
-X
POST
-d
'{"feed":[{"words": "hello"}], "fetch":["pooled_output"]}'
http://127.0.0.1:8878/bert/prediction
>
${
dir
}
client_log.txt 2>&1
curl
-H
"Content-Type:application/json"
-X
POST
-d
'{"feed":[{"words": "hello"}], "fetch":["pooled_output"]}'
http://127.0.0.1:8878/bert/prediction
>
${
dir
}
client_log.txt 2>&1
check_result client
"bert_GPU_HTTP server test completed"
check_result client
"bert_GPU_HTTP server test completed"
kill_server_process
kill_server_process
...
@@ -762,7 +762,7 @@ function grpc_yolov4() {
...
@@ -762,7 +762,7 @@ function grpc_yolov4() {
link_data
${
data_dir
}
link_data
${
data_dir
}
echo
-e
"
${
GREEN_COLOR
}
grpc_impl_example_yolov4_GPU_gRPC server started
${
RES
}
"
echo
-e
"
${
GREEN_COLOR
}
grpc_impl_example_yolov4_GPU_gRPC server started
${
RES
}
"
python3.6
-m
paddle_serving_server.serve
--model
yolov4_model
--port
9393
--gpu_ids
0
--use_multilang
>
${
dir
}
server_log.txt 2>&1 &
python3.6
-m
paddle_serving_server.serve
--model
yolov4_model
--port
9393
--gpu_ids
0
--use_multilang
>
${
dir
}
server_log.txt 2>&1 &
check_result server
5
check_result server
10
echo
-e
"
${
GREEN_COLOR
}
grpc_impl_example_yolov4_GPU_gRPC client started
${
RES
}
"
echo
-e
"
${
GREEN_COLOR
}
grpc_impl_example_yolov4_GPU_gRPC client started
${
RES
}
"
python3.6 test_client.py 000000570688.jpg
>
${
dir
}
client_log.txt 2>&1
python3.6 test_client.py 000000570688.jpg
>
${
dir
}
client_log.txt 2>&1
check_result client
"grpc_yolov4_GPU_GRPC server test completed"
check_result client
"grpc_yolov4_GPU_GRPC server test completed"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录