Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
PaddleDetection
提交
c0ede7b1
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看板
提交
c0ede7b1
编写于
5月 13, 2022
作者:
lazyn
提交者:
zhiboniu
5月 17, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix video infer(#5107)
上级
c37086c3
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
6 deletion
+9
-6
deploy/python/infer.py
deploy/python/infer.py
+1
-1
deploy/python/keypoint_infer.py
deploy/python/keypoint_infer.py
+1
-1
deploy/python/mot_jde_infer.py
deploy/python/mot_jde_infer.py
+1
-1
deploy/python/mot_keypoint_unite_infer.py
deploy/python/mot_keypoint_unite_infer.py
+5
-2
deploy/python/mot_sde_infer.py
deploy/python/mot_sde_infer.py
+1
-1
未找到文件。
deploy/python/infer.py
浏览文件 @
c0ede7b1
...
...
@@ -329,7 +329,7 @@ class Detector(object):
break
print
(
'detect frame: %d'
%
(
index
))
index
+=
1
results
=
self
.
predict_image
([
frame
],
visual
=
False
)
results
=
self
.
predict_image
([
frame
[:,
:,
::
-
1
]
],
visual
=
False
)
im
=
visualize_box_mask
(
frame
,
...
...
deploy/python/keypoint_infer.py
浏览文件 @
c0ede7b1
...
...
@@ -266,7 +266,7 @@ class KeyPointDetector(Detector):
break
print
(
'detect frame: %d'
%
(
index
))
index
+=
1
results
=
self
.
predict_image
([
frame
],
visual
=
False
)
results
=
self
.
predict_image
([
frame
[:,
:,
::
-
1
]
],
visual
=
False
)
im_results
=
{}
im_results
[
'keypoint'
]
=
[
results
[
'keypoint'
],
results
[
'score'
]]
im
=
visualize_pose
(
...
...
deploy/python/mot_jde_infer.py
浏览文件 @
c0ede7b1
...
...
@@ -296,7 +296,7 @@ class JDE_Detector(Detector):
timer
.
tic
()
seq_name
=
video_out_name
.
split
(
'.'
)[
0
]
mot_results
=
self
.
predict_image
(
[
frame
],
visual
=
False
,
seq_name
=
seq_name
)
[
frame
[:,
:,
::
-
1
]
],
visual
=
False
,
seq_name
=
seq_name
)
timer
.
toc
()
online_tlwhs
,
online_scores
,
online_ids
=
mot_results
[
0
]
...
...
deploy/python/mot_keypoint_unite_infer.py
浏览文件 @
c0ede7b1
...
...
@@ -167,7 +167,10 @@ def mot_topdown_unite_predict_video(mot_detector,
# mot model
timer_mot
.
tic
()
mot_results
=
mot_detector
.
predict_image
([
frame
],
visual
=
False
)
frame2
=
cv2
.
cvtColor
(
frame
,
cv2
.
COLOR_BGR2RGB
)
mot_results
=
mot_detector
.
predict_image
([
frame2
],
visual
=
False
)
timer_mot
.
toc
()
online_tlwhs
,
online_scores
,
online_ids
=
mot_results
[
0
]
results
=
convert_mot_to_det
(
...
...
@@ -179,7 +182,7 @@ def mot_topdown_unite_predict_video(mot_detector,
# keypoint model
timer_kp
.
tic
()
keypoint_res
=
predict_with_given_det
(
frame
,
results
,
topdown_keypoint_detector
,
keypoint_batch_size
,
frame
2
,
results
,
topdown_keypoint_detector
,
keypoint_batch_size
,
FLAGS
.
run_benchmark
)
timer_kp
.
toc
()
timer_mot_kp
.
toc
()
...
...
deploy/python/mot_sde_infer.py
浏览文件 @
c0ede7b1
...
...
@@ -414,7 +414,7 @@ class SDE_Detector(Detector):
timer
.
tic
()
seq_name
=
video_out_name
.
split
(
'.'
)[
0
]
mot_results
=
self
.
predict_image
(
[
frame
],
visual
=
False
,
seq_name
=
seq_name
)
[
frame
[:,
:,
::
-
1
]
],
visual
=
False
,
seq_name
=
seq_name
)
timer
.
toc
()
# bs=1 in MOT model
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录