Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
huiyeruzhou
openpose
提交
fe8a1fae
O
openpose
项目概览
huiyeruzhou
/
openpose
与 Fork 源项目一致
从无法访问的项目Fork
通知
7
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,发现更多精彩内容 >>
提交
fe8a1fae
编写于
5月 10, 2017
作者:
G
gineshidalgo99
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Profiler slightly changed
上级
d781f832
变更
22
隐藏空白更改
内联
并排
Showing
22 changed file
with
28 addition
and
23 deletion
+28
-23
include/openpose/core/wCvMatToOpInput.hpp
include/openpose/core/wCvMatToOpInput.hpp
+1
-1
include/openpose/core/wCvMatToOpOutput.hpp
include/openpose/core/wCvMatToOpOutput.hpp
+1
-1
include/openpose/core/wKeyPointScaler.hpp
include/openpose/core/wKeyPointScaler.hpp
+1
-1
include/openpose/core/wOpOutputToCvMat.hpp
include/openpose/core/wOpOutputToCvMat.hpp
+1
-1
include/openpose/experimental/face/wFaceExtractor.hpp
include/openpose/experimental/face/wFaceExtractor.hpp
+1
-1
include/openpose/experimental/face/wFaceRenderer.hpp
include/openpose/experimental/face/wFaceRenderer.hpp
+1
-1
include/openpose/experimental/filestream/wPoseJsonCocoSaver.hpp
...e/openpose/experimental/filestream/wPoseJsonCocoSaver.hpp
+1
-1
include/openpose/experimental/hand/wHandExtractor.hpp
include/openpose/experimental/hand/wHandExtractor.hpp
+1
-1
include/openpose/experimental/hand/wHandRenderer.hpp
include/openpose/experimental/hand/wHandRenderer.hpp
+1
-1
include/openpose/filestream/wHeatMapSaver.hpp
include/openpose/filestream/wHeatMapSaver.hpp
+1
-1
include/openpose/filestream/wImageSaver.hpp
include/openpose/filestream/wImageSaver.hpp
+1
-1
include/openpose/filestream/wPoseJsonSaver.hpp
include/openpose/filestream/wPoseJsonSaver.hpp
+1
-1
include/openpose/filestream/wPoseSaver.hpp
include/openpose/filestream/wPoseSaver.hpp
+1
-1
include/openpose/filestream/wVideoSaver.hpp
include/openpose/filestream/wVideoSaver.hpp
+1
-1
include/openpose/gui/wGui.hpp
include/openpose/gui/wGui.hpp
+1
-1
include/openpose/gui/wGuiInfoAdder.hpp
include/openpose/gui/wGuiInfoAdder.hpp
+1
-1
include/openpose/pose/wPoseExtractor.hpp
include/openpose/pose/wPoseExtractor.hpp
+1
-1
include/openpose/pose/wPoseRenderer.hpp
include/openpose/pose/wPoseRenderer.hpp
+1
-1
include/openpose/producer/wDatumProducer.hpp
include/openpose/producer/wDatumProducer.hpp
+1
-1
include/openpose/thread/wQueueOrderer.hpp
include/openpose/thread/wQueueOrderer.hpp
+1
-1
include/openpose/utilities/profiler.hpp
include/openpose/utilities/profiler.hpp
+5
-3
src/openpose/utilities/profiler.cpp
src/openpose/utilities/profiler.cpp
+3
-0
未找到文件。
include/openpose/core/wCvMatToOpInput.hpp
浏览文件 @
fe8a1fae
...
...
@@ -64,7 +64,7 @@ namespace op
tDatum
.
inputNetData
=
spCvMatToOpInput
->
format
(
tDatum
.
cvInputData
);
// Profiling speed
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
// Debugging log
dLog
(
""
,
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
}
...
...
include/openpose/core/wCvMatToOpOutput.hpp
浏览文件 @
fe8a1fae
...
...
@@ -66,7 +66,7 @@ namespace op
std
::
tie
(
tDatum
.
scaleInputToOutput
,
tDatum
.
outputData
)
=
spCvMatToOpOutput
->
format
(
tDatum
.
cvInputData
);
// Profiling speed
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
// Debugging log
dLog
(
""
,
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
}
...
...
include/openpose/core/wKeyPointScaler.hpp
浏览文件 @
fe8a1fae
...
...
@@ -63,7 +63,7 @@ namespace op
}
// Profiling speed
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
// Debugging log
dLog
(
""
,
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
}
...
...
include/openpose/core/wOpOutputToCvMat.hpp
浏览文件 @
fe8a1fae
...
...
@@ -64,7 +64,7 @@ namespace op
tDatum
.
cvOutputData
=
spOpOutputToCvMat
->
formatToCvMat
(
tDatum
.
outputData
);
// Profiling speed
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
// Debugging log
dLog
(
""
,
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
}
...
...
include/openpose/experimental/face/wFaceExtractor.hpp
浏览文件 @
fe8a1fae
...
...
@@ -71,7 +71,7 @@ namespace op
}
// Profiling speed
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
// Debugging log
dLog
(
""
,
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
}
...
...
include/openpose/experimental/face/wFaceRenderer.hpp
浏览文件 @
fe8a1fae
...
...
@@ -68,7 +68,7 @@ namespace op
spFaceRenderer
->
renderFace
(
tDatum
.
outputData
,
tDatum
.
faceKeyPoints
);
// Profiling speed
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
// Debugging log
dLog
(
""
,
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
}
...
...
include/openpose/experimental/filestream/wPoseJsonCocoSaver.hpp
浏览文件 @
fe8a1fae
...
...
@@ -81,7 +81,7 @@ namespace op
spPoseJsonCocoSaver
->
record
(
tDatum
.
poseKeyPoints
,
imageId
);
// Profiling speed
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
}
else
{
...
...
include/openpose/experimental/hand/wHandExtractor.hpp
浏览文件 @
fe8a1fae
...
...
@@ -71,7 +71,7 @@ namespace op
}
// Profiling speed
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
// Debugging log
dLog
(
""
,
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
}
...
...
include/openpose/experimental/hand/wHandRenderer.hpp
浏览文件 @
fe8a1fae
...
...
@@ -68,7 +68,7 @@ namespace op
spHandRenderer
->
renderHands
(
tDatum
.
outputData
,
tDatum
.
handKeyPoints
);
// Profiling speed
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
// Debugging log
dLog
(
""
,
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
}
...
...
include/openpose/filestream/wHeatMapSaver.hpp
浏览文件 @
fe8a1fae
...
...
@@ -70,7 +70,7 @@ namespace op
spHeatMapSaver
->
saveHeatMaps
(
poseHeatMaps
,
fileName
);
// Profiling speed
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
// Debugging log
dLog
(
""
,
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
}
...
...
include/openpose/filestream/wImageSaver.hpp
浏览文件 @
fe8a1fae
...
...
@@ -70,7 +70,7 @@ namespace op
spImageSaver
->
saveImages
(
cvOutputDatas
,
fileName
);
// Profiling speed
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
// Debugging log
dLog
(
""
,
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
}
...
...
include/openpose/filestream/wPoseJsonSaver.hpp
浏览文件 @
fe8a1fae
...
...
@@ -68,7 +68,7 @@ namespace op
spPoseJsonSaver
->
savePoseKeyPoints
(
poseKeyPointsVector
,
fileName
);
// Profiling speed
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
// Debugging log
dLog
(
""
,
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
}
...
...
include/openpose/filestream/wPoseSaver.hpp
浏览文件 @
fe8a1fae
...
...
@@ -69,7 +69,7 @@ namespace op
spPoseSaver
->
savePoseKeyPoints
(
poseKeyPointsVector
,
fileName
);
// Profiling speed
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
// Debugging log
dLog
(
""
,
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
}
...
...
include/openpose/filestream/wVideoSaver.hpp
浏览文件 @
fe8a1fae
...
...
@@ -69,7 +69,7 @@ namespace op
spVideoSaver
->
write
(
cvOutputDatas
);
// Profiling speed
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
// Debugging log
dLog
(
""
,
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
}
...
...
include/openpose/gui/wGui.hpp
浏览文件 @
fe8a1fae
...
...
@@ -71,7 +71,7 @@ namespace op
if
(
!
tDatumsNoPtr
.
empty
())
{
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
}
// Debugging log
dLog
(
""
,
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
...
...
include/openpose/gui/wGuiInfoAdder.hpp
浏览文件 @
fe8a1fae
...
...
@@ -61,7 +61,7 @@ namespace op
spGuiInfoAdder
->
addInfo
(
tDatum
.
cvOutputData
,
tDatum
.
poseKeyPoints
,
tDatum
.
id
,
tDatum
.
elementRendered
.
second
);
// Profiling speed
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
// Debugging log
dLog
(
""
,
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
}
...
...
include/openpose/pose/wPoseExtractor.hpp
浏览文件 @
fe8a1fae
...
...
@@ -68,7 +68,7 @@ namespace op
}
// Profiling speed
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
// Debugging log
dLog
(
""
,
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
}
...
...
include/openpose/pose/wPoseRenderer.hpp
浏览文件 @
fe8a1fae
...
...
@@ -63,7 +63,7 @@ namespace op
tDatum
.
elementRendered
=
spPoseRenderer
->
renderPose
(
tDatum
.
outputData
,
tDatum
.
poseKeyPoints
,
tDatum
.
scaleNetToOutput
);
// Profiling speed
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
// Debugging log
dLog
(
""
,
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
}
...
...
include/openpose/producer/wDatumProducer.hpp
浏览文件 @
fe8a1fae
...
...
@@ -64,7 +64,7 @@ namespace op
this
->
stop
();
// Profiling speed
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
// Debugging log
dLog
(
""
,
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
// Return TDatums
...
...
include/openpose/thread/wQueueOrderer.hpp
浏览文件 @
fe8a1fae
...
...
@@ -108,7 +108,7 @@ namespace op
{
// Profiling speed
Profiler
::
timerEnd
(
profilerKey
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
1000
);
Profiler
::
printAveragedTimeMsOnIterationX
(
profilerKey
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
Profiler
::
DEFAULT_X
);
// Debugging log
dLog
(
""
,
Priority
::
Low
,
__LINE__
,
__FUNCTION__
,
__FILE__
);
}
...
...
include/openpose/utilities/profiler.hpp
浏览文件 @
fe8a1fae
...
...
@@ -13,20 +13,22 @@
// const auto profilerKey = Profiler::timerInit(__LINE__, __FUNCTION__, __FILE__);
// // functions to do...
// Profiler::timerEnd(profilerKey);
// Profiler::printAveragedTimeMsOnIterationX(profilerKey, __LINE__, __FUNCTION__, __FILE__,
1000
);
// Profiler::printAveragedTimeMsOnIterationX(profilerKey, __LINE__, __FUNCTION__, __FILE__,
Profiler::DEFAULT_X
);
namespace
op
{
class
Profiler
{
public:
static
const
unsigned
long
long
DEFAULT_X
;
static
const
std
::
string
timerInit
(
const
int
line
,
const
std
::
string
&
function
,
const
std
::
string
&
file
);
static
void
timerEnd
(
const
std
::
string
&
key
);
static
void
printAveragedTimeMsOnIterationX
(
const
std
::
string
&
key
,
const
int
line
,
const
std
::
string
&
function
,
const
std
::
string
&
file
,
const
unsigned
long
long
x
);
static
void
printAveragedTimeMsOnIterationX
(
const
std
::
string
&
key
,
const
int
line
,
const
std
::
string
&
function
,
const
std
::
string
&
file
,
const
unsigned
long
long
x
=
DEFAULT_X
);
static
void
printAveragedTimeMsEveryXIterations
(
const
std
::
string
&
key
,
const
int
line
,
const
std
::
string
&
function
,
const
std
::
string
&
file
,
const
unsigned
long
long
x
);
static
void
printAveragedTimeMsEveryXIterations
(
const
std
::
string
&
key
,
const
int
line
,
const
std
::
string
&
function
,
const
std
::
string
&
file
,
const
unsigned
long
long
x
=
DEFAULT_X
);
static
void
profileGpuMemory
(
const
int
line
,
const
std
::
string
&
function
,
const
std
::
string
&
file
);
};
...
...
src/openpose/utilities/profiler.cpp
浏览文件 @
fe8a1fae
...
...
@@ -11,7 +11,10 @@
namespace
op
{
const
unsigned
long
long
Profiler
::
DEFAULT_X
=
1000
;
#ifdef PROFILER_ENABLED
std
::
map
<
std
::
string
,
std
::
tuple
<
double
,
unsigned
long
long
,
std
::
chrono
::
high_resolution_clock
::
time_point
>>
sProfilerTuple
{
std
::
map
<
std
::
string
,
std
::
tuple
<
double
,
unsigned
long
long
,
std
::
chrono
::
high_resolution_clock
::
time_point
>>
()
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录