Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
07dce1d9
S
Serving
项目概览
PaddlePaddle
/
Serving
1 年多 前同步成功
通知
186
Star
833
Fork
253
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
105
列表
看板
标记
里程碑
合并请求
10
Wiki
2
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Serving
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
105
Issue
105
列表
看板
标记
里程碑
合并请求
10
合并请求
10
Pages
分析
分析
仓库分析
DevOps
Wiki
2
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
07dce1d9
编写于
2月 10, 2021
作者:
J
Jiawei Wang
提交者:
wangjiawei04
2月 10, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Merge pull request #1036 from wangjiawei04/readme2
Readme Fix
上级
2125d711
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
30 addition
and
10 deletion
+30
-10
python/examples/bert/README.md
python/examples/bert/README.md
+6
-3
python/examples/bert/README_CN.md
python/examples/bert/README_CN.md
+4
-4
python/examples/detection/README.md
python/examples/detection/README.md
+1
-0
python/examples/detection/faster_rcnn_r50_fpn_1x_coco/README.md
.../examples/detection/faster_rcnn_r50_fpn_1x_coco/README.md
+3
-0
python/examples/detection/faster_rcnn_r50_fpn_1x_coco/README_CN.md
...amples/detection/faster_rcnn_r50_fpn_1x_coco/README_CN.md
+1
-0
python/examples/detection/ppyolo_r50vd_dcn_1x_coco/README.md
python/examples/detection/ppyolo_r50vd_dcn_1x_coco/README.md
+2
-0
python/examples/detection/ppyolo_r50vd_dcn_1x_coco/README_CN.md
.../examples/detection/ppyolo_r50vd_dcn_1x_coco/README_CN.md
+2
-0
python/examples/detection/ttfnet_darknet53_1x_coco/README.md
python/examples/detection/ttfnet_darknet53_1x_coco/README.md
+1
-0
python/examples/detection/ttfnet_darknet53_1x_coco/README_CN.md
.../examples/detection/ttfnet_darknet53_1x_coco/README_CN.md
+2
-0
python/examples/detection/yolov3_darknet53_270e_coco/README.md
...n/examples/detection/yolov3_darknet53_270e_coco/README.md
+2
-0
python/examples/detection/yolov3_darknet53_270e_coco/README_CN.md
...xamples/detection/yolov3_darknet53_270e_coco/README_CN.md
+2
-0
python/examples/pipeline/imagenet/README_CN.md
python/examples/pipeline/imagenet/README_CN.md
+4
-3
未找到文件。
python/examples/bert/README.md
浏览文件 @
07dce1d9
...
...
@@ -11,14 +11,16 @@ This example use model [BERT Chinese Model](https://www.paddlepaddle.org.cn/hubd
Install paddlehub first
```
pip install paddlehub
pip
3
install paddlehub
```
run
```
python prepare_model.py 128
python
3
prepare_model.py 128
```
**PaddleHub only support Python 3.5+**
the 128 in the command above means max_seq_len in BERT model, which is the length of sample after preprocessing.
the config file and model file for server side are saved in the folder bert_seq128_model.
the config file generated for client side is saved in the folder bert_seq128_client.
...
...
@@ -28,8 +30,9 @@ You can also download the above model from BOS(max_seq_len=128). After decompres
```
shell
wget https://paddle-serving.bj.bcebos.com/paddle_hub_models/text/SemanticModel/bert_chinese_L-12_H-768_A-12.tar.gz
tar
-xzf
bert_chinese_L-12_H-768_A-12.tar.gz
mv
bert_chinese_L-12_H-768_A-12_model bert_seq128_model
mv
bert_chinese_L-12_H-768_A-12_client bert_seq128_client
```
if your model is bert_chinese_L-12_H-768_A-12_model, replace the 'bert_seq128_model' field in the following command with 'bert_chinese_L-12_H-768_A-12_model',replace 'bert_seq128_client' with 'bert_chinese_L-12_H-768_A-12_client'.
### Getting Dict and Sample Dataset
...
...
python/examples/bert/README_CN.md
浏览文件 @
07dce1d9
...
...
@@ -10,11 +10,11 @@
示例中采用
[
Paddlehub
](
https://github.com/PaddlePaddle/PaddleHub
)
中的
[
BERT中文模型
](
https://www.paddlepaddle.org.cn/hubdetail?name=bert_chinese_L-12_H-768_A-12&en_category=SemanticModel
)
。
请先安装paddlehub
```
pip install paddlehub
pip
3
install paddlehub
```
执行
```
python prepare_model.py 128
python
3
prepare_model.py 128
```
参数128表示BERT模型中的max_seq_len,即预处理后的样本长度。
生成server端配置文件与模型文件,存放在bert_seq128_model文件夹。
...
...
@@ -25,9 +25,9 @@ python prepare_model.py 128
```
shell
wget https://paddle-serving.bj.bcebos.com/paddle_hub_models/text/SemanticModel/bert_chinese_L-12_H-768_A-12.tar.gz
tar
-xzf
bert_chinese_L-12_H-768_A-12.tar.gz
mv
bert_chinese_L-12_H-768_A-12_model bert_seq128_model
mv
bert_chinese_L-12_H-768_A-12_client bert_seq128_client
```
若使用bert_chinese_L-12_H-768_A-12_model模型,将下面命令中的bert_seq128_model字段替换为bert_chinese_L-12_H-768_A-12_model,bert_seq128_client字段替换为bert_chinese_L-12_H-768_A-12_client.
### 获取词典和样例数据
...
...
python/examples/detection/README.md
浏览文件 @
07dce1d9
...
...
@@ -12,6 +12,7 @@ Paddle Detection provides a large number of [Model Zoo](https://github.com/Paddl
### Serving example
Several examples of PaddleDetection models used in Serving are given in this folder
All examples support TensorRT.
-
[
Faster RCNN
](
./faster_rcnn_r50_fpn_1x_coco
)
-
[
PPYOLO
](
./ppyolo_r50vd_dcn_1x_coco
)
...
...
python/examples/detection/faster_rcnn_r50_fpn_1x_coco/README.md
浏览文件 @
07dce1d9
...
...
@@ -13,6 +13,9 @@ tar xf faster_rcnn_r50_fpn_1x_coco.tar
python -m paddle_serving_server_gpu.serve --model serving_server --port 9494 --gpu_ids 0
```
This model support TensorRT, if you want a faster inference, please use
`--use_trt`
.
### Perform prediction
```
python test_client.py 000000570688.jpg
...
...
python/examples/detection/faster_rcnn_r50_fpn_1x_coco/README_CN.md
浏览文件 @
07dce1d9
...
...
@@ -13,6 +13,7 @@ wget --no-check-certificate https://paddle-serving.bj.bcebos.com/pddet_demo/2.0/
tar xf faster_rcnn_r50_fpn_1x_coco.tar
python -m paddle_serving_server_gpu.serve --model pddet_serving_model --port 9494 --gpu_ids 0
```
该模型支持TensorRT,如果想要更快的预测速度,可以开启
`--use_trt`
选项。
### 执行预测
```
...
...
python/examples/detection/ppyolo_r50vd_dcn_1x_coco/README.md
浏览文件 @
07dce1d9
...
...
@@ -13,6 +13,8 @@ tar xf ppyolo_r50vd_dcn_1x_coco.tar
python -m paddle_serving_server_gpu.serve --model serving_server --port 9494 --gpu_ids 0
```
This model support TensorRT, if you want a faster inference, please use
`--use_trt`
.
### Perform prediction
```
python test_client.py 000000570688.jpg
...
...
python/examples/detection/ppyolo_r50vd_dcn_1x_coco/README_CN.md
浏览文件 @
07dce1d9
...
...
@@ -14,6 +14,8 @@ tar xf ppyolo_r50vd_dcn_1x_coco.tar
python -m paddle_serving_server_gpu.serve --model pddet_serving_model --port 9494 --gpu_ids 0
```
该模型支持TensorRT,如果想要更快的预测速度,可以开启
`--use_trt`
选项。
### 执行预测
```
python test_client.py 000000570688.jpg
...
...
python/examples/detection/ttfnet_darknet53_1x_coco/README.md
浏览文件 @
07dce1d9
...
...
@@ -12,6 +12,7 @@ wget --no-check-certificate https://paddle-serving.bj.bcebos.com/pddet_demo/2.0/
tar xf ttfnet_darknet53_1x_coco.tar
python -m paddle_serving_server_gpu.serve --model serving_server --port 9494 --gpu_ids 0
```
This model support TensorRT, if you want a faster inference, please use
`--use_trt`
.
### Perform prediction
```
...
...
python/examples/detection/ttfnet_darknet53_1x_coco/README_CN.md
浏览文件 @
07dce1d9
...
...
@@ -14,6 +14,8 @@ tar xf ttfnet_darknet53_1x_coco.tar
python -m paddle_serving_server_gpu.serve --model pddet_serving_model --port 9494 --gpu_ids 0
```
该模型支持TensorRT,如果想要更快的预测速度,可以开启
`--use_trt`
选项。
### 执行预测
```
python test_client.py 000000570688.jpg
...
...
python/examples/detection/yolov3_darknet53_270e_coco/README.md
浏览文件 @
07dce1d9
...
...
@@ -13,6 +13,8 @@ tar xf yolov3_darknet53_270e_coco.tar
python -m paddle_serving_server_gpu.serve --model serving_server --port 9494 --gpu_ids 0
```
This model support TensorRT, if you want a faster inference, please use
`--use_trt`
.
### Perform prediction
```
python test_client.py 000000570688.jpg
...
...
python/examples/detection/yolov3_darknet53_270e_coco/README_CN.md
浏览文件 @
07dce1d9
...
...
@@ -14,6 +14,8 @@ tar xf yolov3_darknet53_270e_coco.tar
python -m paddle_serving_server_gpu.serve --model pddet_serving_model --port 9494 --gpu_ids 0
```
该模型支持TensorRT,如果想要更快的预测速度,可以开启
`--use_trt`
选项。
### 执行预测
```
python test_client.py 000000570688.jpg
...
...
python/examples/pipeline/imagenet/README_CN.md
浏览文件 @
07dce1d9
# Imagenet Pipeline WebService
这里以
Uci
服务为例来介绍 Pipeline WebService 的使用。
这里以
Imagenet
服务为例来介绍 Pipeline WebService 的使用。
## 获取模型
```
...
...
@@ -10,10 +10,11 @@ sh get_model.sh
## 启动服务
```
python web_service.py &>log.txt &
python
resnet50_
web_service.py &>log.txt &
```
## 测试
```
curl -X POST -k http://localhost:18082/uci/prediction -d '{"key": ["x"], "value": ["0.0137, -0.1136, 0.2553, -0.0692, 0.0582, -0.0727, -0.1583, -0.0584, 0.6283, 0.4919, 0.1856, 0.0795, -0.0332"]}'
python pipeline_rpc_client.py
```
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录