From 433952306050cb15f635eb21b9619fc4d51e54e1 Mon Sep 17 00:00:00 2001 From: MRXLT Date: Tue, 10 Mar 2020 16:14:59 +0800 Subject: [PATCH] update readme --- python/examples/imagenet/READEMR.md | 31 ----------------------------- python/examples/imagenet/README.md | 17 ++++++++++++---- 2 files changed, 13 insertions(+), 35 deletions(-) delete mode 100644 python/examples/imagenet/READEMR.md diff --git a/python/examples/imagenet/READEMR.md b/python/examples/imagenet/READEMR.md deleted file mode 100644 index 4dde20b1..00000000 --- a/python/examples/imagenet/READEMR.md +++ /dev/null @@ -1,31 +0,0 @@ -# Image Classification Service - -model : ResNet50_vd - - -## Prepare model - -``` -sh get_model.sh -``` - -## Start web service -``` -python image_classification_service.py serving_server_model/ workdir/ 9393 -``` - -## Prediction -``` -python image_http_client.py -``` - -## Start rpc service - -``` -python image_server.py serving_server_model/ 9393 -``` - -## Prediction -``` -python image_rpc_client.py serving_client_conf/serving_client_conf.prototxt -``` diff --git a/python/examples/imagenet/README.md b/python/examples/imagenet/README.md index d2960da8..bfe9db5e 100644 --- a/python/examples/imagenet/README.md +++ b/python/examples/imagenet/README.md @@ -4,19 +4,28 @@ ### 模型及配置文件获取 ``` -wget https://paddle-serving.bj.bcebos.com/imagenet-example/conf_and_model.tar.gz -tar -xzvf conf_and_model.tar.gz +sh get_model.sh ``` -### 执行预测服务 +### 执行wb service预测服务 启动server端 ``` -python image_classification_service.py conf_and_model/serving_server_model workdir +python image_classification_service.py conf_and_model/serving_server_model workdir 9393 ``` client端进行预测 ``` python image_http_client.py ``` +### 执行rpc service预测服务 +启动server端 +``` +python image_server.py conf_and_model/serving_server_model workdir 9393 +``` + +client端进行预测 +``` +python image_rpc_client.py conf_and_model/serving_client_conf/serving_client_conf.prototxt +``` *server端示例中服务端口为9393端口,client端示例中数据来自./data文件夹,server端地址为本地9393端口,可根据实际情况更改脚本。* -- GitLab