Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_41840029
PaddleOCR
提交
30037fc4
P
PaddleOCR
项目概览
weixin_41840029
/
PaddleOCR
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleOCR
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleOCR
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
30037fc4
编写于
3月 15, 2022
作者:
T
tink2123
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
polish tipc serving
上级
455a21ca
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
1 addition
and
6 deletion
+1
-6
deploy/pdserving/web_service_rec.py
deploy/pdserving/web_service_rec.py
+1
-2
test_tipc/test_serving.sh
test_tipc/test_serving.sh
+0
-4
未找到文件。
deploy/pdserving/web_service_rec.py
浏览文件 @
30037fc4
...
@@ -78,7 +78,6 @@ class RecOp(Op):
...
@@ -78,7 +78,6 @@ class RecOp(Op):
class
OcrService
(
WebService
):
class
OcrService
(
WebService
):
def
get_pipeline_response
(
self
,
read_op
):
def
get_pipeline_response
(
self
,
read_op
):
rec_op
=
RecOp
(
name
=
"rec"
,
input_ops
=
[
read_op
])
rec_op
=
RecOp
(
name
=
"rec"
,
input_ops
=
[
read_op
])
print
(
"rec op:"
,
rec_op
)
return
rec_op
return
rec_op
...
...
test_tipc/test_serving.sh
浏览文件 @
30037fc4
...
@@ -58,11 +58,9 @@ function func_serving(){
...
@@ -58,11 +58,9 @@ function func_serving(){
trans_model_cmd
=
"
${
python_list
[0]
}
${
trans_model_py
}
${
set_dirname
}
${
set_model_filename
}
${
set_params_filename
}
${
set_serving_server
}
${
set_serving_client
}
"
trans_model_cmd
=
"
${
python_list
[0]
}
${
trans_model_py
}
${
set_dirname
}
${
set_model_filename
}
${
set_params_filename
}
${
set_serving_server
}
${
set_serving_client
}
"
eval
$trans_model_cmd
eval
$trans_model_cmd
cd
${
serving_dir_value
}
cd
${
serving_dir_value
}
echo
$PWD
unset
https_proxy
unset
https_proxy
unset
http_proxy
unset
http_proxy
for
python
in
${
python_list
[*]
}
;
do
for
python
in
${
python_list
[*]
}
;
do
echo
${
python
}
if
[
${
python
}
=
"cpp"
]
;
then
if
[
${
python
}
=
"cpp"
]
;
then
for
use_gpu
in
${
web_use_gpu_list
[*]
}
;
do
for
use_gpu
in
${
web_use_gpu_list
[*]
}
;
do
if
[
${
use_gpu
}
=
"null"
]
;
then
if
[
${
use_gpu
}
=
"null"
]
;
then
...
@@ -93,9 +91,7 @@ function func_serving(){
...
@@ -93,9 +91,7 @@ function func_serving(){
done
done
else
else
# python serving
# python serving
echo
${
web_use_gpu_list
[*]
}
for
use_gpu
in
${
web_use_gpu_list
[*]
}
;
do
for
use_gpu
in
${
web_use_gpu_list
[*]
}
;
do
echo
${
ues_gpu
}
if
[
${
use_gpu
}
=
"null"
]
;
then
if
[
${
use_gpu
}
=
"null"
]
;
then
for
use_mkldnn
in
${
web_use_mkldnn_list
[*]
}
;
do
for
use_mkldnn
in
${
web_use_mkldnn_list
[*]
}
;
do
for
threads
in
${
web_cpu_threads_list
[*]
}
;
do
for
threads
in
${
web_cpu_threads_list
[*]
}
;
do
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录