Skip to content

Commit

Permalink
Fix Error: Non valid scaleNetToOutput. (#337)
Browse files Browse the repository at this point in the history
Getting Non valid scaleNetToOutput:
if (scaleNetToOutput == -1.f)
                            error("Non valid scaleNetToOutput.", __LINE__, __FUNCTION__, __FILE__);

std::pair<int, std::string> PoseGpuRenderer::renderPose(Array<float>& outputData,
                                                            const Array<float>& poseKeypoints,
                                                            const float scaleInputToOutput,
                                                            const float scaleNetToOutput)
expects 4 parameter.
  • Loading branch information
chriamue authored and gineshidalgo99 committed Nov 20, 2017
1 parent a5b85d3 commit e709a2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ int openPoseTutorialPose2()
const auto poseKeypoints = poseExtractorPtr->getPoseKeypoints();
const auto scaleNetToOutput = poseExtractorPtr->getScaleNetToOutput();
// Step 5 - Render pose
poseGpuRenderer.renderPose(outputArray, poseKeypoints, scaleNetToOutput);
poseGpuRenderer.renderPose(outputArray, poseKeypoints, scaleInputToOutput, scaleNetToOutput);
// Step 6 - OpenPose output format to cv::Mat
auto outputImage = opOutputToCvMat.formatToCvMat(outputArray);

Expand Down

0 comments on commit e709a2b

Please sign in to comment.