wbenbihi / hourglasstensorflow

Tensorflow implementation of Stacked Hourglass Networks for Human Pose Estimation
MIT License
480 stars 179 forks source link

Const used in hourglass_tiny.py #46

Closed cloudy-toast closed 2 years ago

cloudy-toast commented 6 years ago

Hi Walid,

Thanks for sharing the code! Could you please tell me why you used 91 in the function ' _compute_err(self, u, v)'? I understand you want to calculate the distance btw two locations and rescale it to [0,1], but why not divide it by 64?

Best regards, Ruobing

thomas-liao commented 6 years ago

91 is approximately the maximum "error" in terms of euclidean distance in heat map you may get (i.e. prediction at [0, 0] while ground truth is [63, 63]

weiyx16 commented 5 years ago

Yes, in fact 91 = 64*square(2). We need normalization here.