Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
a1bcf54a
S
Serving
项目概览
PaddlePaddle
/
Serving
大约 1 年 前同步成功
通知
185
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a1bcf54a
编写于
6月 18, 2020
作者:
M
MRXLT
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add yolov4 ci
上级
07634332
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
38 addition
and
2 deletion
+38
-2
core/predictor/framework/infer.h
core/predictor/framework/infer.h
+2
-2
python/examples/yolov4/000000570688.jpg
python/examples/yolov4/000000570688.jpg
+0
-0
tools/serving_build.sh
tools/serving_build.sh
+36
-0
未找到文件。
core/predictor/framework/infer.h
浏览文件 @
a1bcf54a
...
...
@@ -603,13 +603,13 @@ class VersionedInferEngine : public InferEngine {
LOG
(
ERROR
)
<<
"Failed generate engine with type:"
<<
engine_type
;
return
-
1
;
}
VLOG
(
2
)
<<
"FLGS_logtostderr "
<<
FLAGS_logtostderr
;
VLOG
(
2
)
<<
"FL
A
GS_logtostderr "
<<
FLAGS_logtostderr
;
int
tmp
=
FLAGS_logtostderr
;
if
(
engine
->
proc_initialize
(
conf
,
version
)
!=
0
)
{
LOG
(
ERROR
)
<<
"Failed initialize engine, type:"
<<
engine_type
;
return
-
1
;
}
VLOG
(
2
)
<<
"FLGS_logtostderr "
<<
FLAGS_logtostderr
;
VLOG
(
2
)
<<
"FL
A
GS_logtostderr "
<<
FLAGS_logtostderr
;
FLAGS_logtostderr
=
tmp
;
auto
r
=
_versions
.
insert
(
std
::
make_pair
(
engine
->
version
(),
engine
));
if
(
!
r
.
second
)
{
...
...
python/examples/yolov4/000000570688.jpg
0 → 100644
浏览文件 @
a1bcf54a
135.1 KB
tools/serving_build.sh
浏览文件 @
a1bcf54a
...
...
@@ -499,6 +499,41 @@ function python_test_lac() {
cd
..
}
function
python_test_yolov4
(){
#pwd:/ Serving/python/examples
local
TYPE
=
$1
export
SERVING_BIN
=
${
SERVING_WORKDIR
}
/build-server-
${
TYPE
}
/core/general-server/serving
cd
yolov4
case
$TYPE
in
CPU
)
python
-m
paddle_serving_app.package
--get_model
yolov4
tar
-xzvf
yolov4.tar.gz
check_cmd
"python -m paddle_serving_server.serve --model yolov4_model/ --port 9393 &"
sleep
5
check_cmd
"python test_client.py 000000570688.jpg"
echo
"yolov4 CPU RPC inference pass"
kill_server_process
;;
GPU
)
python
-m
paddle_serving_app.package
--get_model
yolov4
tar
-xzvf
yolov4.tar.gz
check_cmd
"python -m paddle_serving_server_gpu.serve --model yolov4_model/ --port 9393 --gpu_ids 0 &"
sleep
5
check_cmd
"python test_client.py 000000570688.jpg"
echo
"yolov4 GPU RPC inference pass"
kill_server_process
;;
*
)
echo
"error type"
exit
1
;;
esac
echo
"test yolov4
$TYPE
finished as expected."
unset
SERVING_BIN
cd
..
}
function
python_run_test
()
{
# Using the compiled binary
local
TYPE
=
$1
# pwd: /Serving
...
...
@@ -510,6 +545,7 @@ function python_run_test() {
python_test_lac
$TYPE
# pwd: /Serving/python/examples
python_test_multi_process
$TYPE
# pwd: /Serving/python/examples
python_test_multi_fetch
$TYPE
# pwd: /Serving/python/examples
python_test_yolov4
$TYPE
# pwd: /Serving/python/examples
echo
"test python
$TYPE
part finished as expected."
cd
../..
# pwd: /Serving
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录