Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
643f99ce
M
models
项目概览
PaddlePaddle
/
models
大约 1 年 前同步成功
通知
222
Star
6828
Fork
2962
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
602
列表
看板
标记
里程碑
合并请求
255
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
models
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
602
Issue
602
列表
看板
标记
里程碑
合并请求
255
合并请求
255
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
643f99ce
编写于
11月 22, 2022
作者:
L
LokeZhou
提交者:
GitHub
11月 22, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix PP-HumanV2 PP-Vehicle Single choice bug (#5645)
上级
fa0218ad
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
5 deletion
+6
-5
modelcenter/PP-HumanV2/APP/pipeline/pipeline.py
modelcenter/PP-HumanV2/APP/pipeline/pipeline.py
+1
-1
modelcenter/PP-Vehicle/APP/pipeline/pipeline.py
modelcenter/PP-Vehicle/APP/pipeline/pipeline.py
+5
-4
未找到文件。
modelcenter/PP-HumanV2/APP/pipeline/pipeline.py
浏览文件 @
643f99ce
...
@@ -135,7 +135,7 @@ def get_model_dir_with_list(cfg, args):
...
@@ -135,7 +135,7 @@ def get_model_dir_with_list(cfg, args):
cfg
[
key
][
"rec_model_dir"
]
=
rec_model_dir
cfg
[
key
][
"rec_model_dir"
]
=
rec_model_dir
print
(
"rec_model_dir model dir: "
,
rec_model_dir
)
print
(
"rec_model_dir model dir: "
,
rec_model_dir
)
if
key
==
'ID_BASED_DETACTION'
or
key
==
'SKELETON_ACTION'
or
key
==
'ATTR'
or
key
==
'ID_BASED_CLSACTION'
or
key
==
'REID'
:
if
(
key
==
'ID_BASED_DETACTION'
and
(
key
in
activate_list
))
or
(
key
==
'SKELETON_ACTION'
and
(
key
in
activate_list
))
or
(
key
==
'ATTR'
and
(
key
in
activate_list
))
or
(
key
==
'ID_BASED_CLSACTION'
and
(
key
in
activate_list
))
or
(
key
==
'REID'
and
(
key
in
activate_list
))
:
model_dir
=
cfg
[
'MOT'
][
"model_dir"
]
model_dir
=
cfg
[
'MOT'
][
"model_dir"
]
downloaded_model_dir
=
auto_download_model
(
model_dir
)
downloaded_model_dir
=
auto_download_model
(
model_dir
)
if
downloaded_model_dir
:
if
downloaded_model_dir
:
...
...
modelcenter/PP-Vehicle/APP/pipeline/pipeline.py
浏览文件 @
643f99ce
...
@@ -133,13 +133,12 @@ def get_model_dir_with_list(cfg, args):
...
@@ -133,13 +133,12 @@ def get_model_dir_with_list(cfg, args):
cfg
[
key
][
"rec_model_dir"
]
=
rec_model_dir
cfg
[
key
][
"rec_model_dir"
]
=
rec_model_dir
print
(
"rec_model_dir model dir: "
,
rec_model_dir
)
print
(
"rec_model_dir model dir: "
,
rec_model_dir
)
elif
key
==
"MOT"
and
(
if
(
key
==
"MOT"
and
(
key
in
activate_list
))
or
(
key
==
"VEHICLE_PLATE"
and
(
key
in
activate_list
))
or
(
key
==
"VEHICLE_ATTR"
and
(
key
in
activate_list
)):
# for idbased and skeletonbased actions
key
in
activate_list
):
# for idbased and skeletonbased actions
model_dir
=
cfg
[
"MOT"
][
"model_dir"
]
model_dir
=
cfg
[
key
][
"model_dir"
]
downloaded_model_dir
=
auto_download_model
(
model_dir
)
downloaded_model_dir
=
auto_download_model
(
model_dir
)
if
downloaded_model_dir
:
if
downloaded_model_dir
:
model_dir
=
downloaded_model_dir
model_dir
=
downloaded_model_dir
cfg
[
key
][
"model_dir"
]
=
model_dir
cfg
[
"MOT"
][
"model_dir"
]
=
model_dir
print
(
"mot_model_dir model_dir: "
,
model_dir
)
print
(
"mot_model_dir model_dir: "
,
model_dir
)
...
@@ -219,10 +218,12 @@ class PipePredictor(object):
...
@@ -219,10 +218,12 @@ class PipePredictor(object):
# only for ppvehicle
# only for ppvehicle
self
.
with_vehicleplate
=
True
if
'VEHICLE_PLATE'
in
activate_list
else
False
self
.
with_vehicleplate
=
True
if
'VEHICLE_PLATE'
in
activate_list
else
False
if
self
.
with_vehicleplate
:
if
self
.
with_vehicleplate
:
self
.
with_mot
=
True
print
(
'Vehicle Plate Recognition enabled'
)
print
(
'Vehicle Plate Recognition enabled'
)
self
.
with_vehicle_attr
=
True
if
'VEHICLE_ATTR'
in
activate_list
else
False
self
.
with_vehicle_attr
=
True
if
'VEHICLE_ATTR'
in
activate_list
else
False
if
self
.
with_vehicle_attr
:
if
self
.
with_vehicle_attr
:
self
.
with_mot
=
True
print
(
'Vehicle Attribute Recognition enabled'
)
print
(
'Vehicle Attribute Recognition enabled'
)
self
.
modebase
=
{
self
.
modebase
=
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录