Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
07f5f782
P
PaddleDetection
项目概览
PaddlePaddle
/
PaddleDetection
接近 2 年 前同步成功
通知
707
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看板
提交
07f5f782
编写于
6月 30, 2022
作者:
Z
zhiboniu
提交者:
zhiboniu
7月 01, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update review
上级
47897299
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
7 deletion
+5
-7
deploy/cpp/src/keypoint_postprocess.cc
deploy/cpp/src/keypoint_postprocess.cc
+0
-2
deploy/python/det_keypoint_unite_infer.py
deploy/python/det_keypoint_unite_infer.py
+3
-3
deploy/python/det_keypoint_unite_utils.py
deploy/python/det_keypoint_unite_utils.py
+2
-2
未找到文件。
deploy/cpp/src/keypoint_postprocess.cc
浏览文件 @
07f5f782
...
@@ -300,8 +300,6 @@ float PoseSmooth::OneEuroFilter(float x_cur, float x_pre, int loc) {
...
@@ -300,8 +300,6 @@ float PoseSmooth::OneEuroFilter(float x_cur, float x_pre, int loc) {
float
fc
=
this
->
fc_min
+
this
->
beta
*
abs
(
dx_cur_hat
);
float
fc
=
this
->
fc_min
+
this
->
beta
*
abs
(
dx_cur_hat
);
this
->
alpha
=
this
->
smoothing_factor
(
te
,
fc
);
this
->
alpha
=
this
->
smoothing_factor
(
te
,
fc
);
float
x_cur_hat
=
this
->
ExpSmoothing
(
x_cur
,
x_pre
);
float
x_cur_hat
=
this
->
ExpSmoothing
(
x_cur
,
x_pre
);
// printf("alpha:%f, x_cur:%f, x_pre:%f, x_cur_hat:%f\n", this->alpha, x_cur,
// x_pre, x_cur_hat);
this
->
x_prev_hat
.
keypoints
[
loc
]
=
x_cur_hat
;
this
->
x_prev_hat
.
keypoints
[
loc
]
=
x_cur_hat
;
this
->
dx_prev_hat
.
keypoints
[
loc
]
=
dx_cur_hat
;
this
->
dx_prev_hat
.
keypoints
[
loc
]
=
dx_cur_hat
;
return
x_cur_hat
;
return
x_cur_hat
;
...
...
deploy/python/det_keypoint_unite_infer.py
浏览文件 @
07f5f782
...
@@ -165,7 +165,7 @@ def topdown_unite_predict_video(detector,
...
@@ -165,7 +165,7 @@ def topdown_unite_predict_video(detector,
frame2
,
results
,
topdown_keypoint_detector
,
keypoint_batch_size
,
frame2
,
results
,
topdown_keypoint_detector
,
keypoint_batch_size
,
FLAGS
.
run_benchmark
)
FLAGS
.
run_benchmark
)
if
FLAGS
.
smooth
:
if
FLAGS
.
smooth
and
len
(
keypoint_res
[
'keypoint'
][
0
])
==
1
:
current_keypoints
=
np
.
array
(
keypoint_res
[
'keypoint'
][
0
][
0
])
current_keypoints
=
np
.
array
(
keypoint_res
[
'keypoint'
][
0
][
0
])
smooth_keypoints
=
keypoint_smoothing
.
smooth_process
(
smooth_keypoints
=
keypoint_smoothing
.
smooth_process
(
current_keypoints
)
current_keypoints
)
...
@@ -231,9 +231,9 @@ class KeypointSmoothing(object):
...
@@ -231,9 +231,9 @@ class KeypointSmoothing(object):
self
.
fc_min
=
fc_min
self
.
fc_min
=
fc_min
self
.
beta
=
beta
self
.
beta
=
beta
if
self
.
filter_type
==
'
one_e
uro'
:
if
self
.
filter_type
==
'
OneE
uro'
:
self
.
smooth_func
=
self
.
one_euro_filter
self
.
smooth_func
=
self
.
one_euro_filter
elif
self
.
filter_type
==
'
ema
'
:
elif
self
.
filter_type
==
'
EMA
'
:
self
.
smooth_func
=
self
.
exponential_smoothing
self
.
smooth_func
=
self
.
exponential_smoothing
else
:
else
:
raise
ValueError
(
'filter type must be one_euro or ema'
)
raise
ValueError
(
'filter type must be one_euro or ema'
)
...
...
deploy/python/det_keypoint_unite_utils.py
浏览文件 @
07f5f782
...
@@ -135,7 +135,7 @@ def argsparser():
...
@@ -135,7 +135,7 @@ def argsparser():
parser
.
add_argument
(
parser
.
add_argument
(
'--filter_type'
,
'--filter_type'
,
type
=
str
,
type
=
str
,
default
=
'
one_e
uro'
,
default
=
'
OneE
uro'
,
help
=
'when set --smooth True, choose filter type you want to use, it can be
one_euro or ema
.'
help
=
'when set --smooth True, choose filter type you want to use, it can be
[OneEuro] or [EMA]
.'
)
)
return
parser
return
parser
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录