Skip to content

Commit

Permalink
Updated Python to new code
Browse files Browse the repository at this point in the history
  • Loading branch information
gineshidalgo99 committed Oct 7, 2019
1 parent d6174a2 commit 35cf7ab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions python/openpose/openpose_python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class WrapperPython{

WrapperPython(int mode = 0)
{
log("Starting OpenPose Python Wrapper...", Priority::High);
opLog("Starting OpenPose Python Wrapper...", Priority::High);

// Construct opWrapper
opWrapper = std::unique_ptr<Wrapper>(new Wrapper(static_cast<ThreadManagerMode>(mode)));
Expand All @@ -93,8 +93,9 @@ class WrapperPython{
if(params.size()) init_int(params);

// logging_level
check(0 <= FLAGS_logging_level && FLAGS_logging_level <= 255, "Wrong logging_level value.",
__LINE__, __FUNCTION__, __FILE__);
checkBool(
0 <= FLAGS_logging_level && FLAGS_logging_level <= 255, "Wrong logging_level value.",
__LINE__, __FUNCTION__, __FILE__);
ConfigureLog::setPriorityThreshold((Priority)FLAGS_logging_level);
Profiler::setDefaultX(FLAGS_profile_speed);

Expand All @@ -113,7 +114,7 @@ class WrapperPython{
const auto poseModel = flagsToPoseModel(FLAGS_model_pose);
// JSON saving
if (!FLAGS_write_keypoint.empty())
log("Flag `write_keypoint` is deprecated and will eventually be removed."
opLog("Flag `write_keypoint` is deprecated and will eventually be removed."
" Please, use `write_json` instead.", Priority::Max);
// keypointScaleMode
const auto keypointScaleMode = flagsToScaleMode(FLAGS_keypoint_scale);
Expand Down

0 comments on commit 35cf7ab

Please sign in to comment.