diff --git a/examples/C++/PaddleClas/pp_shitu/README.md b/examples/C++/PaddleClas/pp_shitu/README.md index 19363c5b3fbdc534f0483dac77b189e4071e5d0e..e4b52965cfe74ae01950b89a53f50bbaf96a2478 100644 --- a/examples/C++/PaddleClas/pp_shitu/README.md +++ b/examples/C++/PaddleClas/pp_shitu/README.md @@ -1,9 +1,16 @@ -# PP-Shitu +# C++ PP-Shitu Service + +**注意:** Since opencv library is used in the pre-processing and post-processing of C++ code, you need to open `WITH_OPENCV` option to compile the C++ server, see [COMPILE.md](../../../../doc/Compile_CN.md) + +``` +# Dependent packages need to be installed +pip install faiss-cpu==1.7.1.post2 -i https://mirror.baidu.com/pypi/simple +``` ## Get Model ``` wget https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/serving/pp_shitu.tar.gz -tar -xzvf pp_shitu.tar.gz +tar -xvf pp_shitu.tar.gz ``` ## Get test images and index @@ -20,5 +27,5 @@ sh run_cpp_serving.sh ### Client Prediction ``` -python3 test_cpp_serving_pipeline.py ./drint_dataset_v1.0/test_images/nongfu_spring.jpeg +python3 test_cpp_serving_pipeline.py ./drink_dataset_v1.0/test_images/nongfu_spring.jpeg ``` diff --git a/examples/C++/PaddleClas/pp_shitu/README_CN.md b/examples/C++/PaddleClas/pp_shitu/README_CN.md index fd051be9448726287b580474bd10afbaafb10053..826acd85d2a13ae042f866bcc2f35281e5028b7d 100644 --- a/examples/C++/PaddleClas/pp_shitu/README_CN.md +++ b/examples/C++/PaddleClas/pp_shitu/README_CN.md @@ -1,9 +1,16 @@ -# PP-Shitu +# C++ PP-Shitu Service服务 + +**注意:** 由于C++代码中前后处理中使用了OPENCV库,您需要使用开启WITH_OPENCV选项编译的C++ Server,详见[COMPILE.md](../../../../doc/Compile_CN.md) + +``` +## 需安装相关依赖包 +pip install faiss-cpu==1.7.1.post2 -i https://mirror.baidu.com/pypi/simple +``` ## 获取模型 ``` wget https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/serving/pp_shitu.tar.gz -tar -xzvf pp_shitu.tar.gz +tar -xvf pp_shitu.tar.gz ``` ## 获取测试图像和index @@ -20,5 +27,5 @@ sh run_cpp_serving.sh ### 客户端预测 ``` -python3 test_cpp_serving_pipeline.py ./drint_dataset_v1.0/test_images/nongfu_spring.jpeg +python3 test_cpp_serving_pipeline.py ./drink_dataset_v1.0/test_images/nongfu_spring.jpeg ```