Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
PaddleDetection
提交
d5ae73f0
P
PaddleDetection
项目概览
s920243400
/
PaddleDetection
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleDetection
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d5ae73f0
编写于
5月 31, 2022
作者:
Z
zhiboniu
提交者:
zhiboniu
6月 02, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add standard actions
上级
14b7a24b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
47 addition
and
4 deletion
+47
-4
deploy/pphuman/config/infer_cfg.yml
deploy/pphuman/config/infer_cfg.yml
+15
-0
deploy/pphuman/pipeline.py
deploy/pphuman/pipeline.py
+32
-4
未找到文件。
deploy/pphuman/config/infer_cfg.yml
浏览文件 @
d5ae73f0
...
...
@@ -24,6 +24,11 @@ ATTR:
basemode
:
"
idbased"
enable
:
False
VIDEO_ACTION
:
model_dir
:
output_inference/pp-stm
batch_size
:
1
enable
:
False
SKELETON_ACTION
:
model_dir
:
output_inference/STGCN
batch_size
:
1
...
...
@@ -33,6 +38,16 @@ SKELETON_ACTION:
basemode
:
"
skeletonbased"
enable
:
False
ID_BASED_DETACTION
:
model_dir
:
output_inference/detector
batch_size
:
1
enable
:
False
ID_BASED_CLSACTION
:
model_dir
:
output_inference/classification
batch_size
:
1
enable
:
False
REID
:
model_dir
:
output_inference/reid_model/
batch_size
:
16
...
...
deploy/pphuman/pipeline.py
浏览文件 @
d5ae73f0
...
...
@@ -266,12 +266,27 @@ class PipePredictor(object):
self
.
with_skeleton_action
=
cfg
.
get
(
'SKELETON_ACTION'
,
False
)[
'enable'
]
if
cfg
.
get
(
'SKELETON_ACTION'
,
False
)
else
False
self
.
with_video_action
=
cfg
.
get
(
'VIDEO_ACTION'
,
False
)[
'enable'
]
if
cfg
.
get
(
'VIDEO_ACTION'
,
False
)
else
False
self
.
with_idbased_detaction
=
cfg
.
get
(
'ID_BASED_DETACTION'
,
False
)[
'enable'
]
if
cfg
.
get
(
'ID_BASED_DETACTION'
,
False
)
else
False
self
.
with_idbased_clsaction
=
cfg
.
get
(
'ID_BASED_CLSACTION'
,
False
)[
'enable'
]
if
cfg
.
get
(
'ID_BASED_CLSACTION'
,
False
)
else
False
self
.
with_mtmct
=
cfg
.
get
(
'REID'
,
False
)[
'enable'
]
if
cfg
.
get
(
'REID'
,
False
)
else
False
if
self
.
with_attr
:
print
(
'Attribute Recognition enabled'
)
if
self
.
with_skeleton_action
:
print
(
'SkeletonAction Recognition enabled'
)
if
self
.
with_video_action
:
print
(
'VideoAction Recognition enabled'
)
if
self
.
with_idbased_detaction
:
print
(
'IDBASED Detection Action Recognition enabled'
)
if
self
.
with_idbased_clsaction
:
print
(
'IDBASED Classification Action Recognition enabled'
)
if
self
.
with_mtmct
:
print
(
"MTMCT enabled"
)
...
...
@@ -547,6 +562,7 @@ class PipePredictor(object):
self
.
pipeline_res
.
update
(
mot_res
,
'mot'
)
if
self
.
with_attr
or
self
.
with_skeleton_action
:
#todo: move this code to each class's predeal function
crop_input
,
new_bboxes
,
ori_bboxes
=
crop_image_with_mot
(
frame
,
mot_res
)
...
...
@@ -559,6 +575,18 @@ class PipePredictor(object):
self
.
pipe_timer
.
module_time
[
'attr'
].
end
()
self
.
pipeline_res
.
update
(
attr_res
,
'attr'
)
if
self
.
with_idbased_detaction
:
#predeal, get what your model need
#predict, model preprocess\run\postprocess
#postdeal, interact with pipeline
pass
if
self
.
with_idbased_clsaction
:
#predeal, get what your model need
#predict, model preprocess\run\postprocess
#postdeal, interact with pipeline
pass
if
self
.
with_skeleton_action
:
if
self
.
modebase
[
"skeletonbased"
]:
if
frame_id
>
self
.
warmup_frame
:
...
...
@@ -621,10 +649,10 @@ class PipePredictor(object):
else
:
self
.
pipeline_res
.
clear
(
'reid'
)
if
self
.
modebase
[
"videobased"
]
:
pass
if
self
.
modebase
[
"framebased"
]:
if
self
.
with_video_action
:
#predeal, get what your model need
#predict, model preprocess\run\postprocess
#postdeal, interact with pipeline
pass
self
.
collector
.
append
(
frame_id
,
self
.
pipeline_res
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录