Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openvinotoolkit
training_toolbox_caffe
提交
de593ac2
T
training_toolbox_caffe
项目概览
openvinotoolkit
/
training_toolbox_caffe
上一次同步 1 年多
通知
0
Star
49
Fork
21
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
training_toolbox_caffe
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
de593ac2
编写于
1月 21, 2019
作者:
E
Evgeny Izutov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed metrics
上级
4c446263
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
6 deletion
+7
-6
python/action_metrics.py
python/action_metrics.py
+7
-6
未找到文件。
python/action_metrics.py
浏览文件 @
de593ac2
...
...
@@ -32,11 +32,12 @@ import caffe
BBoxDesc
=
namedtuple
(
'BBoxDesc'
,
'label, det_conf, action_conf, xmin, ymin, xmax, ymax'
)
ACTION_NAMES_MAP
=
{
'sitting'
:
0
,
'standing'
:
1
,
'raising_hand'
:
2
,
'__undefined__'
:
3
,
'listening'
:
0
,
'reading'
:
0
,
'writing'
:
0
,
'lie_on_the_desk'
:
0
,
'in_group_discussions'
:
3
}
ACTION_NAMES_BACK_MAP
=
{
0
:
'sitting'
,
1
:
'standing'
,
2
:
'raising_hand'
}
VALID_ACTION_NAMES
=
[
'sitting'
,
'standing'
,
'raising_hand'
]
ACTION_NAMES_MAP
=
{
'sitting'
:
0
,
'standing'
:
1
,
'raising_hand'
:
2
,
'listening'
:
3
,
'reading'
:
4
,
'writing'
:
4
,
'lie_on_the_desk'
:
4
,
'busy'
:
4
,
'in_group_discussions'
:
5
,
'__undefined__'
:
5
}
VALID_ACTION_NAMES
=
[
'sitting'
,
'standing'
,
'raising_hand'
,
'listening'
,
'head_down'
]
ACTION_NAMES_BACK_MAP
=
{
i
:
n
for
i
,
n
in
enumerate
(
VALID_ACTION_NAMES
)}
def
extract_video_properties
(
vidcap
):
...
...
@@ -626,7 +627,7 @@ def main():
parser
.
add_argument
(
'--out_name'
,
default
=
'detection_out'
,
type
=
str
,
help
=
'Name of detection output blob'
)
parser
.
add_argument
(
'--compute_mode'
,
type
=
str
,
choices
=
[
'CPU'
,
'GPU'
],
default
=
'GPU'
,
help
=
'Caffe compute mode: CPU or GPU'
)
parser
.
add_argument
(
'--gpu_id'
,
type
=
int
,
default
=
0
,
choices
=
[
0
,
1
]
,
help
=
'GPU id'
)
parser
.
add_argument
(
'--gpu_id'
,
type
=
int
,
default
=
0
,
choices
=
range
(
8
)
,
help
=
'GPU id'
)
args
=
parser
.
parse_args
()
assert
exists
(
args
.
proto
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录