diff --git a/python/examples/encryption/README.md b/python/examples/encryption/README.md index 4e95e69160a69b7ea0807e2347326342bf4ea4cc..d8a04e29bf56439a24db7dadfdfe3ab5d9626e14 100644 --- a/python/examples/encryption/README.md +++ b/python/examples/encryption/README.md @@ -26,7 +26,7 @@ def serving_encryption(): serving_client="encrypt_client", encryption=True) ``` -dirname is the folder path where the model is located. If the parameter is discrete, it is unnecessary to specify params_filename, else you need to set params_filename='__params__'. +dirname is the folder path where the model is located. If the parameter is discrete, it is unnecessary to specify params_filename, else you need to set `params_filename="__params__"`. 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. diff --git a/python/examples/encryption/README_CN.md b/python/examples/encryption/README_CN.md index 3b199953e5014a95334523f09fa10133b4184071..bb853ff37f914a5e2cfe1c6bbb097d17eb99a29a 100644 --- a/python/examples/encryption/README_CN.md +++ b/python/examples/encryption/README_CN.md @@ -13,7 +13,7 @@ sh get_data.sh ## 模型加密 本示例中使用了`paddlepaddle`包中的模块,需要进行下载(`pip install paddlepaddle`)。 -[python encrypt.py](./encrypt.py) +运行[python encrypt.py](./encrypt.py)进行模型加密 [//file]:#encrypt.py ``` python @@ -25,7 +25,9 @@ def serving_encryption(): serving_client="encrypt_client", encryption=True) ``` -其中dirname为模型所在的文件夹路径,当参数为离散参数时,无须指定params_filename,当参数为为__params__时,需指定params_filename='__params__'. +其中dirname为模型所在的文件夹路径 + +当参数为离散参数时,无须指定params_filename,当参数为__params__时,需指定`params_filename="__params__"` 密钥保存在`key`文件中,加密模型文件以及server端配置文件保存在`encrypt_server`目录下,client端配置文件保存在`encrypt_client`目录下。