Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
3201036a
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看板
提交
3201036a
编写于
5月 25, 2020
作者:
M
MRXLT
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix demo
上级
07d01908
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
9 addition
and
9 deletion
+9
-9
python/examples/bert/bert_client.py
python/examples/bert/bert_client.py
+1
-1
python/examples/imdb/benchmark.py
python/examples/imdb/benchmark.py
+1
-1
python/examples/imdb/test_client.py
python/examples/imdb/test_client.py
+1
-1
python/examples/imdb/text_classify_service.py
python/examples/imdb/text_classify_service.py
+1
-1
python/examples/resnet_v2_50/resnet50_debug.py
python/examples/resnet_v2_50/resnet50_debug.py
+1
-1
python/examples/senta/get_data.sh
python/examples/senta/get_data.sh
+1
-1
python/examples/senta/senta_web_service.py
python/examples/senta/senta_web_service.py
+1
-1
python/paddle_serving_app/README.md
python/paddle_serving_app/README.md
+1
-1
python/paddle_serving_app/README_CN.md
python/paddle_serving_app/README_CN.md
+1
-1
未找到文件。
python/examples/bert/bert_client.py
浏览文件 @
3201036a
...
...
@@ -25,7 +25,7 @@ from paddlehub.common.logger import logger
import
socket
from
paddle_serving_client
import
Client
from
paddle_serving_client.utils
import
benchmark_args
from
paddle_serving_app
import
ChineseBertReader
from
paddle_serving_app
.reader
import
ChineseBertReader
args
=
benchmark_args
()
...
...
python/examples/imdb/benchmark.py
浏览文件 @
3201036a
...
...
@@ -16,7 +16,7 @@
import
sys
import
time
import
requests
from
paddle_serving_app
import
IMDBDataset
from
paddle_serving_app
.reader
import
IMDBDataset
from
paddle_serving_client
import
Client
from
paddle_serving_client.utils
import
MultiThreadRunner
from
paddle_serving_client.utils
import
benchmark_args
...
...
python/examples/imdb/test_client.py
浏览文件 @
3201036a
...
...
@@ -13,7 +13,7 @@
# limitations under the License.
# pylint: disable=doc-string-missing
from
paddle_serving_client
import
Client
from
paddle_serving_app
import
IMDBDataset
from
paddle_serving_app
.reader
import
IMDBDataset
import
sys
client
=
Client
()
...
...
python/examples/imdb/text_classify_service.py
浏览文件 @
3201036a
...
...
@@ -14,7 +14,7 @@
# pylint: disable=doc-string-missing
from
paddle_serving_server.web_service
import
WebService
from
paddle_serving_app
import
IMDBDataset
from
paddle_serving_app
.reader
import
IMDBDataset
import
sys
...
...
python/examples/resnet_v2_50/resnet50_debug.py
浏览文件 @
3201036a
...
...
@@ -14,7 +14,7 @@
from
paddle_serving_app.reader
import
Sequential
,
File2Image
,
Resize
,
CenterCrop
from
paddle_serving_app.reader
import
RGB2BGR
,
Transpose
,
Div
,
Normalize
from
paddle_serving_app
import
Debugger
from
paddle_serving_app
.local_predict
import
Debugger
import
sys
debugger
=
Debugger
()
...
...
python/examples/senta/get_data.sh
浏览文件 @
3201036a
wget https://paddle-serving.bj.bcebos.com/paddle_hub_models/text/SentimentAnalysis/senta_bilstm.tar.gz
--no-check-certificate
tar
-xzvf
senta_bilstm.tar.gz
wget https://paddle-serving.bj.bcebos.com/paddle_hub_models/text/LexicalAnalysis/lac
_model
.tar.gz
--no-check-certificate
wget https://paddle-serving.bj.bcebos.com/paddle_hub_models/text/LexicalAnalysis/lac.tar.gz
--no-check-certificate
tar
-xzvf
lac_model.tar.gz
wget https://paddle-serving.bj.bcebos.com/reader/lac/lac_dict.tar.gz
--no-check-certificate
tar
-xzvf
lac_dict.tar.gz
...
...
python/examples/senta/senta_web_service.py
浏览文件 @
3201036a
...
...
@@ -14,7 +14,7 @@
from
paddle_serving_server_gpu.web_service
import
WebService
from
paddle_serving_client
import
Client
from
paddle_serving_app
import
LACReader
,
SentaReader
from
paddle_serving_app
.reader
import
LACReader
,
SentaReader
import
os
import
sys
from
multiprocessing
import
Process
...
...
python/paddle_serving_app/README.md
浏览文件 @
3201036a
...
...
@@ -158,7 +158,7 @@ Therefore, a local prediction tool is built into the paddle_serving_app, which i
Taking
[
fit_a_line prediction service
](
../examples/fit_a_line
)
as an example, the following code can be used to run local prediction.
```
python
from
paddle_serving_app
import
Debugger
from
paddle_serving_app
.local_predict
import
Debugger
import
numpy
as
np
debugger
=
Debugger
()
...
...
python/paddle_serving_app/README_CN.md
浏览文件 @
3201036a
...
...
@@ -147,7 +147,7 @@ Paddle Serving框架的server预测op使用了Paddle 的预测框架,在部署
以
[
fit_a_line预测服务
](
../examples/fit_a_line
)
为例,使用以下代码即可执行本地预测。
```
python
from
paddle_serving_app
import
Debugger
from
paddle_serving_app
.local_predict
import
Debugger
import
numpy
as
np
debugger
=
Debugger
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录