Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
活在明天
openpose
提交
59a7365c
O
openpose
项目概览
活在明天
/
openpose
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openpose
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
59a7365c
编写于
11月 10, 2019
作者:
G
Gines Hidalgo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated flagsToOpenPose
上级
d0bb4e90
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
9 addition
and
9 deletion
+9
-9
src/openpose/utilities/flagsToOpenPose.cpp
src/openpose/utilities/flagsToOpenPose.cpp
+9
-9
未找到文件。
src/openpose/utilities/flagsToOpenPose.cpp
浏览文件 @
59a7365c
...
...
@@ -91,13 +91,13 @@ namespace op
else
if
(
keypointScaleMode
==
4
)
return
ScaleMode
::
PlusMinusOne
;
else
if
(
keypointScaleMode
==
5
)
return
ScaleMode
::
ZeroToOne
AspectRatio
;
return
ScaleMode
::
ZeroToOne
FixedAspect
;
else
if
(
keypointScaleMode
==
6
)
return
ScaleMode
::
PlusMinusOne
AspectRatio
;
return
ScaleMode
::
PlusMinusOne
FixedAspect
;
// else
const
std
::
string
message
=
"Integer does not correspond to any scale mode: set to (0, 1, 2, 3, 4, 5, 6)"
" for (InputResolution, NetOutputResolution, OutputResolution, ZeroToOne,"
" PlusMinusOne, ZeroToOne
AspectRatio, PlusMinusOneAspectRatio
),"
" PlusMinusOne, ZeroToOne
FixedAspect, PlusMinusOneFixedAspect
),"
" respectively."
;
error
(
message
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
return
ScaleMode
::
InputResolution
;
...
...
@@ -123,20 +123,20 @@ namespace op
else
if
(
heatMapScaleMode
==
3
)
return
ScaleMode
::
NoScale
;
else
if
(
heatMapScaleMode
==
4
)
return
ScaleMode
::
ZeroToOne
AspectRatio
;
return
ScaleMode
::
ZeroToOne
FixedAspect
;
else
if
(
heatMapScaleMode
==
5
)
return
ScaleMode
::
PlusMinusOne
AspectRatio
;
return
ScaleMode
::
PlusMinusOne
FixedAspect
;
// else
const
std
::
string
message
=
"Integer does not correspond to any scale mode: set to (0, 1, 2, 3, 4, 5)"
" for (PlusMinusOne, ZeroToOne, UnsignedChar, NoScale, PlusMinusOne
AspectRatio
,"
" ZeroToOne
AspectRatio
), respectively."
;
" for (PlusMinusOne, ZeroToOne, UnsignedChar, NoScale, PlusMinusOne
FixedAspect
,"
" ZeroToOne
FixedAspect
), respectively."
;
error
(
message
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
return
ScaleMode
::
PlusMinusOne
AspectRatio
;
return
ScaleMode
::
PlusMinusOne
FixedAspect
;
}
catch
(
const
std
::
exception
&
e
)
{
error
(
e
.
what
(),
__LINE__
,
__FUNCTION__
,
__FILE__
);
return
ScaleMode
::
PlusMinusOne
AspectRatio
;
return
ScaleMode
::
PlusMinusOne
FixedAspect
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录