TropComplique / wing-loss

A facial landmarks regressor
MIT License
76 stars 17 forks source link

Wing Loss function of constant C #9

Open Dawson-huang opened 6 years ago

Dawson-huang commented 6 years ago

Hello, thank you for your job! I have a question need your help. When |x| >= w, the |x| will subtract the constant C, but I get the constant C is -7.91759 by the formula C = w − w ln(1 + w/epsilon) with w=10 and epsilon = 2. It means that |x| will be larger when |x| >= w. But it not fit the idea of Wing Loss functions, or I am wrong of the constant C when calculating? Thank you for your help!

github-luffy commented 5 years ago

hi, code:c = w * (1.0 - math.log(1.0 + w/epsilon)),math.log is equal to ln, that is no problem.