README.md 640 字节
Newer Older
S
stephon 已提交
1
# PP-Shitu
Z
ZhangYulongg 已提交
2 3 4 5
```
# Dependent packages need to be installed
pip install faiss-cpu==1.7.1.post2 -i https://mirror.baidu.com/pypi/simple
```
S
stephon 已提交
6 7 8 9

## Get Model
```
wget https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/serving/pp_shitu.tar.gz
Z
ZhangYulongg 已提交
10
tar -xvf pp_shitu.tar.gz
S
stephon 已提交
11 12 13
```

## Get test images and index
B
Bin Lu 已提交
14
```
S
stephon 已提交
15 16
wget https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/data/drink_dataset_v1.0.tar
tar -xvf drink_dataset_v1.0.tar
B
Bin Lu 已提交
17
```
S
stephon 已提交
18 19 20 21 22 23 24 25 26

## RPC Service
### Start Service
```
sh run_cpp_serving.sh
```

### Client Prediction
```
Z
ZhangYulongg 已提交
27
python3 test_cpp_serving_pipeline.py ./drink_dataset_v1.0/test_images/nongfu_spring.jpeg
B
Bin Lu 已提交
28
```