README_CN.md 519 字节
Newer Older
S
stephon 已提交
1 2 3 4 5 6 7 8 9
# PP-Shitu

## 获取模型
```
wget https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/serving/pp_shitu.tar.gz
tar -xzvf pp_shitu.tar.gz
```

## 获取测试图像和index
B
Bin Lu 已提交
10
```
S
stephon 已提交
11 12
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 已提交
13
```
S
stephon 已提交
14 15 16 17 18 19 20 21 22 23 24

## RPC 服务
### 启动服务端
```
sh run_cpp_serving.sh
```

### 客户端预测
```
python3 test_cpp_serving_pipeline.py ./drint_dataset_v1.0/test_images/nongfu_spring.jpeg
```