Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
c0ede7b1
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看板
提交
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):
...
@@ -329,7 +329,7 @@ class Detector(object):
break
break
print
(
'detect frame: %d'
%
(
index
))
print
(
'detect frame: %d'
%
(
index
))
index
+=
1
index
+=
1
results
=
self
.
predict_image
([
frame
],
visual
=
False
)
results
=
self
.
predict_image
([
frame
[:,
:,
::
-
1
]
],
visual
=
False
)
im
=
visualize_box_mask
(
im
=
visualize_box_mask
(
frame
,
frame
,
...
...
deploy/python/keypoint_infer.py
浏览文件 @
c0ede7b1
...
@@ -266,7 +266,7 @@ class KeyPointDetector(Detector):
...
@@ -266,7 +266,7 @@ class KeyPointDetector(Detector):
break
break
print
(
'detect frame: %d'
%
(
index
))
print
(
'detect frame: %d'
%
(
index
))
index
+=
1
index
+=
1
results
=
self
.
predict_image
([
frame
],
visual
=
False
)
results
=
self
.
predict_image
([
frame
[:,
:,
::
-
1
]
],
visual
=
False
)
im_results
=
{}
im_results
=
{}
im_results
[
'keypoint'
]
=
[
results
[
'keypoint'
],
results
[
'score'
]]
im_results
[
'keypoint'
]
=
[
results
[
'keypoint'
],
results
[
'score'
]]
im
=
visualize_pose
(
im
=
visualize_pose
(
...
...
deploy/python/mot_jde_infer.py
浏览文件 @
c0ede7b1
...
@@ -296,7 +296,7 @@ class JDE_Detector(Detector):
...
@@ -296,7 +296,7 @@ class JDE_Detector(Detector):
timer
.
tic
()
timer
.
tic
()
seq_name
=
video_out_name
.
split
(
'.'
)[
0
]
seq_name
=
video_out_name
.
split
(
'.'
)[
0
]
mot_results
=
self
.
predict_image
(
mot_results
=
self
.
predict_image
(
[
frame
],
visual
=
False
,
seq_name
=
seq_name
)
[
frame
[:,
:,
::
-
1
]
],
visual
=
False
,
seq_name
=
seq_name
)
timer
.
toc
()
timer
.
toc
()
online_tlwhs
,
online_scores
,
online_ids
=
mot_results
[
0
]
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,
...
@@ -167,7 +167,10 @@ def mot_topdown_unite_predict_video(mot_detector,
# mot model
# mot model
timer_mot
.
tic
()
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
()
timer_mot
.
toc
()
online_tlwhs
,
online_scores
,
online_ids
=
mot_results
[
0
]
online_tlwhs
,
online_scores
,
online_ids
=
mot_results
[
0
]
results
=
convert_mot_to_det
(
results
=
convert_mot_to_det
(
...
@@ -179,7 +182,7 @@ def mot_topdown_unite_predict_video(mot_detector,
...
@@ -179,7 +182,7 @@ def mot_topdown_unite_predict_video(mot_detector,
# keypoint model
# keypoint model
timer_kp
.
tic
()
timer_kp
.
tic
()
keypoint_res
=
predict_with_given_det
(
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
)
FLAGS
.
run_benchmark
)
timer_kp
.
toc
()
timer_kp
.
toc
()
timer_mot_kp
.
toc
()
timer_mot_kp
.
toc
()
...
...
deploy/python/mot_sde_infer.py
浏览文件 @
c0ede7b1
...
@@ -414,7 +414,7 @@ class SDE_Detector(Detector):
...
@@ -414,7 +414,7 @@ class SDE_Detector(Detector):
timer
.
tic
()
timer
.
tic
()
seq_name
=
video_out_name
.
split
(
'.'
)[
0
]
seq_name
=
video_out_name
.
split
(
'.'
)[
0
]
mot_results
=
self
.
predict_image
(
mot_results
=
self
.
predict_image
(
[
frame
],
visual
=
False
,
seq_name
=
seq_name
)
[
frame
[:,
:,
::
-
1
]
],
visual
=
False
,
seq_name
=
seq_name
)
timer
.
toc
()
timer
.
toc
()
# bs=1 in MOT model
# bs=1 in MOT model
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录