From 9bba1f72a75356663bd7cbefcb93c0ce7e8ea954 Mon Sep 17 00:00:00 2001 From: HexToString <506181616@qq.com> Date: Tue, 13 Apr 2021 09:51:06 +0000 Subject: [PATCH] fix doc --- python/examples/encryption/README.md | 3 ++- python/examples/encryption/README_CN.md | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/python/examples/encryption/README.md b/python/examples/encryption/README.md index d8a04e29..a08b8b84 100644 --- a/python/examples/encryption/README.md +++ b/python/examples/encryption/README.md @@ -31,6 +31,7 @@ dirname is the folder path where the model is located. If the parameter is discr The key is stored in the `key` file, and the encrypted model file and server-side configuration file are stored in the `encrypt_server` directory. client-side configuration file are stored in the `encrypt_client` directory. +**Notice:** When encryption prediction is used, the model configuration and parameter folder loaded by server and client should be encrypt_server/ and encrypt_client/ ## Start Encryption Service CPU Service ``` @@ -43,5 +44,5 @@ python -m paddle_serving_server.serve --model encrypt_server/ --port 9300 --use_ ## Prediction ``` -python test_client.py uci_housing_client/serving_client_conf.prototxt +python test_client.py encrypt_client/serving_client_conf.prototxt ``` diff --git a/python/examples/encryption/README_CN.md b/python/examples/encryption/README_CN.md index bb853ff3..f950796e 100644 --- a/python/examples/encryption/README_CN.md +++ b/python/examples/encryption/README_CN.md @@ -31,6 +31,8 @@ def serving_encryption(): 密钥保存在`key`文件中,加密模型文件以及server端配置文件保存在`encrypt_server`目录下,client端配置文件保存在`encrypt_client`目录下。 +**注意:** 当使用加密预测时,服务端和客户端启动加载的模型配置和参数文件夹是encrypt_server/和encrypt_client/ + ## 启动加密预测服务 CPU预测服务 ``` @@ -43,5 +45,5 @@ python -m paddle_serving_server.serve --model encrypt_server/ --port 9300 --use_ ## 预测 ``` -python test_client.py uci_housing_client/serving_client_conf.prototxt +python test_client.py encrypt_client/ ``` -- GitLab