Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
c417c1dd
P
PaddleDetection
项目概览
PaddlePaddle
/
PaddleDetection
大约 1 年 前同步成功
通知
695
Star
11112
Fork
2696
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
184
列表
看板
标记
里程碑
合并请求
40
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
184
Issue
184
列表
看板
标记
里程碑
合并请求
40
合并请求
40
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c417c1dd
编写于
3月 30, 2022
作者:
Z
zhiboniu
提交者:
zhiboniu
3月 30, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
run reid every 10 frames
上级
8d3b8b47
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
9 addition
and
6 deletion
+9
-6
deploy/pphuman/datacollector.py
deploy/pphuman/datacollector.py
+3
-1
deploy/pphuman/mtmct.py
deploy/pphuman/mtmct.py
+3
-4
deploy/pphuman/pipeline.py
deploy/pphuman/pipeline.py
+3
-1
未找到文件。
deploy/pphuman/datacollector.py
浏览文件 @
c417c1dd
...
@@ -35,6 +35,9 @@ class Result(object):
...
@@ -35,6 +35,9 @@ class Result(object):
return
self
.
res_dict
[
name
]
return
self
.
res_dict
[
name
]
return
None
return
None
def
clear
(
self
,
name
):
self
.
res_dict
[
name
].
clear
()
class
DataCollector
(
object
):
class
DataCollector
(
object
):
"""
"""
...
@@ -80,7 +83,6 @@ class DataCollector(object):
...
@@ -80,7 +83,6 @@ class DataCollector(object):
ids
=
int
(
mot_item
[
0
])
ids
=
int
(
mot_item
[
0
])
if
ids
not
in
self
.
collector
:
if
ids
not
in
self
.
collector
:
self
.
collector
[
ids
]
=
copy
.
deepcopy
(
self
.
mots
)
self
.
collector
[
ids
]
=
copy
.
deepcopy
(
self
.
mots
)
self
.
collector
[
ids
][
"frames"
].
append
(
frameid
)
self
.
collector
[
ids
][
"frames"
].
append
(
frameid
)
self
.
collector
[
ids
][
"rects"
].
append
([
mot_item
[
2
:]])
self
.
collector
[
ids
][
"rects"
].
append
([
mot_item
[
2
:]])
if
attr_res
:
if
attr_res
:
...
...
deploy/pphuman/mtmct.py
浏览文件 @
c417c1dd
...
@@ -297,10 +297,9 @@ def distill_idfeat(mot_res):
...
@@ -297,10 +297,9 @@ def distill_idfeat(mot_res):
feature_new
=
feature_list
feature_new
=
feature_list
#if available frames number is more than 200, take one frame data per 20 frames
#if available frames number is more than 200, take one frame data per 20 frames
if
len
(
qualities_new
)
>
200
:
skipf
=
1
skipf
=
20
if
len
(
qualities_new
)
>
20
:
else
:
skipf
=
2
skipf
=
max
(
10
,
len
(
qualities_new
)
//
10
)
quality_skip
=
np
.
array
(
qualities_new
[::
skipf
])
quality_skip
=
np
.
array
(
qualities_new
[::
skipf
])
feature_skip
=
np
.
array
(
feature_new
[::
skipf
])
feature_skip
=
np
.
array
(
feature_new
[::
skipf
])
...
...
deploy/pphuman/pipeline.py
浏览文件 @
c417c1dd
...
@@ -587,7 +587,7 @@ class PipePredictor(object):
...
@@ -587,7 +587,7 @@ class PipePredictor(object):
if
self
.
cfg
[
'visual'
]:
if
self
.
cfg
[
'visual'
]:
self
.
action_visual_helper
.
update
(
action_res
)
self
.
action_visual_helper
.
update
(
action_res
)
if
self
.
with_mtmct
:
if
self
.
with_mtmct
and
frame_id
%
10
==
0
:
crop_input
,
img_qualities
,
rects
=
self
.
reid_predictor
.
crop_image_with_mot
(
crop_input
,
img_qualities
,
rects
=
self
.
reid_predictor
.
crop_image_with_mot
(
frame
,
mot_res
)
frame
,
mot_res
)
if
frame_id
>
self
.
warmup_frame
:
if
frame_id
>
self
.
warmup_frame
:
...
@@ -603,6 +603,8 @@ class PipePredictor(object):
...
@@ -603,6 +603,8 @@ class PipePredictor(object):
"rects"
:
rects
"rects"
:
rects
}
}
self
.
pipeline_res
.
update
(
reid_res_dict
,
'reid'
)
self
.
pipeline_res
.
update
(
reid_res_dict
,
'reid'
)
else
:
self
.
pipeline_res
.
clear
(
'reid'
)
self
.
collector
.
append
(
frame_id
,
self
.
pipeline_res
)
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录