Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
PaddleDetection
提交
e6ad10e5
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看板
未验证
提交
e6ad10e5
编写于
7月 18, 2022
作者:
F
Feng Ni
提交者:
GitHub
7月 18, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix ids2names in plot_tracking_dict (#6466)
上级
7e162e6a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
6 deletion
+11
-6
deploy/pipeline/pipeline.py
deploy/pipeline/pipeline.py
+1
-0
deploy/pptracking/python/mot/visualize.py
deploy/pptracking/python/mot/visualize.py
+1
-1
deploy/pptracking/python/mot_sde_infer.py
deploy/pptracking/python/mot_sde_infer.py
+4
-2
deploy/python/mot_sde_infer.py
deploy/python/mot_sde_infer.py
+5
-3
未找到文件。
deploy/pipeline/pipeline.py
浏览文件 @
e6ad10e5
...
...
@@ -966,6 +966,7 @@ class PipePredictor(object):
online_scores
,
frame_id
=
frame_id
,
fps
=
fps
,
ids2names
=
self
.
mot_predictor
.
pred_config
.
labels
,
do_entrance_counting
=
self
.
do_entrance_counting
,
do_break_in_counting
=
self
.
do_break_in_counting
,
entrance
=
entrance
,
...
...
deploy/pptracking/python/mot/visualize.py
浏览文件 @
e6ad10e5
...
...
@@ -191,7 +191,7 @@ def plot_tracking_dict(image,
scores_dict
,
frame_id
=
0
,
fps
=
0.
,
ids2names
=
[
'pedestrian'
],
ids2names
=
[],
do_entrance_counting
=
False
,
do_break_in_counting
=
False
,
entrance
=
None
,
...
...
deploy/pptracking/python/mot_sde_infer.py
浏览文件 @
e6ad10e5
...
...
@@ -512,14 +512,15 @@ class SDE_Detector(Detector):
online_ids
,
online_scores
,
frame_id
=
frame_id
,
ids2names
=
[]
)
ids2names
=
ids2names
)
else
:
im
=
plot_tracking
(
frame
,
online_tlwhs
,
online_ids
,
online_scores
,
frame_id
=
frame_id
)
frame_id
=
frame_id
,
ids2names
=
ids2names
)
save_dir
=
os
.
path
.
join
(
self
.
output_dir
,
seq_name
)
if
not
os
.
path
.
exists
(
save_dir
):
os
.
makedirs
(
save_dir
)
...
...
@@ -632,6 +633,7 @@ class SDE_Detector(Detector):
online_scores
,
frame_id
=
frame_id
,
fps
=
fps
,
ids2names
=
ids2names
,
do_entrance_counting
=
self
.
do_entrance_counting
,
entrance
=
entrance
)
else
:
...
...
deploy/python/mot_sde_infer.py
浏览文件 @
e6ad10e5
...
...
@@ -359,14 +359,15 @@ class SDE_Detector(Detector):
online_ids
,
online_scores
,
frame_id
=
frame_id
,
ids2names
=
[]
)
ids2names
=
ids2names
)
else
:
im
=
plot_tracking
(
frame
,
online_tlwhs
,
online_ids
,
online_scores
,
frame_id
=
frame_id
)
frame_id
=
frame_id
,
ids2names
=
ids2names
)
save_dir
=
os
.
path
.
join
(
self
.
output_dir
,
seq_name
)
if
not
os
.
path
.
exists
(
save_dir
):
os
.
makedirs
(
save_dir
)
...
...
@@ -431,7 +432,8 @@ class SDE_Detector(Detector):
online_ids
,
online_scores
,
frame_id
=
frame_id
,
fps
=
fps
)
fps
=
fps
,
ids2names
=
ids2names
)
else
:
# use ByteTracker, support multiple class
for
cls_id
in
range
(
num_classes
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录