README.md 1.2 KB
Newer Older
J
Jiawei Wang 已提交
1 2 3 4
# Faster RCNN model on Paddle Serving

([简体中文](./README_CN.md)|English)

D
dongdaxiang 已提交
5
### Get The Faster RCNN Model
J
Jiawei Wang 已提交
6
```
D
Dong Daxiang 已提交
7 8
wget --no-check-certificate https://paddle-serving.bj.bcebos.com/pddet_demo/faster_rcnn_model.tar.gz
wget --no-check-certificate https://paddle-serving.bj.bcebos.com/pddet_demo/infer_cfg.yml
J
Jiawei Wang 已提交
9
```
D
dongdaxiang 已提交
10
If you want to have more detection models, please refer to [Paddle Detection Model Zoo](https://github.com/PaddlePaddle/PaddleDetection/blob/release/0.2/docs/MODEL_ZOO_cn.md)
J
Jiawei Wang 已提交
11 12 13

### Start the service
```
D
dongdaxiang 已提交
14
tar xf faster_rcnn_model.tar.gz
M
MRXLT 已提交
15
mv faster_rcnn_model/pddet* .
D
dongdaxiang 已提交
16
GLOG_v=2 python -m paddle_serving_server_gpu.serve --model pddet_serving_model --port 9494 --gpu_id 0
J
Jiawei Wang 已提交
17 18 19 20
```

### Perform prediction
```
D
dongdaxiang 已提交
21
python test_client.py pddet_client_conf/serving_client_conf.prototxt infer_cfg.yml 000000570688.jpg
J
Jiawei Wang 已提交
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
```

## 3. Result analysis
<p align = "center">
    <br>
<img src = '000000570688.jpg'>
    <br>
<p>
This is the input picture
  
<p align = "center">
    <br>
<img src = '000000570688_bbox.jpg'>
    <br>
<p>
J
Jiawei Wang 已提交
37
  
J
Jiawei Wang 已提交
38
This is the picture after adding bbox. You can see that the client has done post-processing for the picture. In addition, the output/bbox.json also has the number and coordinate information of each box.