README.md 614 字节
Newer Older
1 2

## Prepare
Z
zhangjun 已提交
3 4 5 6 7
### download model and extract
```
wget https://paddle-inference-dist.bj.bcebos.com/PaddleLite/models_and_data_for_unittests/VGG19.tar.gz
tar zxvf VGG19.tar.gz
```
8 9
### convert model
```
Z
zhangjun 已提交
10 11 12 13 14 15
python3 -m paddle_serving_client.convert --dirname VGG19
```
### or, you can get the serving saved model directly
```
wget https://paddle-serving.bj.bcebos.com/models/xpu/vgg19.tar.gz
tar zxvf vgg19.tar.gz 
16 17 18 19 20 21 22
```

## RPC Service

### Start Service

```
Z
zhangjun 已提交
23
python3 -m paddle_serving_server.serve --model serving_server --port 7702 --use_lite --use_xpu --ir_optim
24 25 26 27 28 29 30
```

### Client Prediction

```
python vgg19_client.py
```