From 48d9319ddc9b614bed47cfe8fc05c64ceab87631 Mon Sep 17 00:00:00 2001 From: Jiawei Wang Date: Wed, 22 Apr 2020 23:43:23 +0800 Subject: [PATCH] Update README_CN.md --- .../examples/faster_rcnn_model/README_CN.md | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/python/examples/faster_rcnn_model/README_CN.md b/python/examples/faster_rcnn_model/README_CN.md index 23fb4506..f43b46d3 100644 --- a/python/examples/faster_rcnn_model/README_CN.md +++ b/python/examples/faster_rcnn_model/README_CN.md @@ -28,3 +28,43 @@ python tools/train.py -c configs/faster_rcnn_r50_1x.yml ``` python export_model.py ``` + +## 2. 启动模型并预测 +如果用户没有用Paddle Detection项目训练模型,我们也在此为您提供示例模型下载。 + +### 下载模型 +``` +wget https://paddle-serving.bj.bcebos.com/pddet_demo/faster_rcnn_model.tar.gz +wget https://paddle-serving.bj.bcebos.com/pddet_demo/paddle_serving_app-0.0.1-py2-none-any.whl +wget https://paddle-serving.bj.bcebos.com/pddet_demo/infer_cfg.yml +tar xf faster_rcnn_model.tar.gz +mv faster_rcnn_model/pddet* . +``` + +### 启动服务 +``` +GLOG_v=2 python -m paddle_serving_server_gpu.serve --model pddet_serving_model --port 9494 --gpu_id 0 +``` + +### 执行预测 +``` +python test_client.py --config_path=infer_cfg.yml --infer_img=000000570688.jpg --dump_result --visualize +``` + +## 3. 结果分析 +

+
+ +
+

+这是输入图片 + +

+
+ +
+

+这是实现添加了bbox之后的图片,可以看到客户端已经为图片做好了后处理,此外在output/bbox.json也有各个框的编号和坐标信息。 + +u y + -- GitLab