tucan9389 / PoseEstimation-CoreML

The example project of inferencing Pose Estimation using Core ML
https://github.com/motlabs/awesome-ml-demos-with-ios
MIT License
680 stars 136 forks source link

Why did you add 0.5 when transpose predicted point to (1.0, 1.0)? What is 0.5? #18

Closed KrasnikovRoman closed 5 years ago

tucan9389 commented 5 years ago

Could you tell me the code location of 0.5?

KrasnikovRoman commented 5 years ago

/Common/HeatmapPostProcessor.swift -> Method convertToPredictedPoints -> lines 43 and 44.

tucan9389 commented 5 years ago

Why did you add 0.5 when transpose predicted point to (1.0, 1.0)?

The following comment is mistyped 🤯 Need to change to (0.5, 0.5)

// transpose to (1.0, 1.0)

What is 0.5?

It's kind of location correction. Each location move to the middle of the box.

KrasnikovRoman commented 5 years ago

Thank you!