注意: 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
# Dependent packages need to be installed
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 -xvf pp_shitu.tar.gz
wget https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/data/drink_dataset_v1.0.tar
tar -xvf drink_dataset_v1.0.tar
sh run_cpp_serving.sh
python3 test_cpp_serving_pipeline.py ./drink_dataset_v1.0/test_images/nongfu_spring.jpeg