anibali / margipose

3D monocular human pose estimation
Apache License 2.0
98 stars 20 forks source link

[ Training Loss: Jensen Shannon Divergence ] #24

Closed IemProg closed 2 years ago

IemProg commented 3 years ago

Hi,

Great work, thanks for sharing the code !

I would like to apply your implementation of JSD, in another pose estimation framework. Could you please, share what's the shape of your spherical gaussians (_makegauss() function). Are you generating a gaussian distribution for each joint ?

In my case, heatmaps are structured such as: XY = [ N, Nbr_Joints, Height, Width ]. I'm expecting an output of _makegauss() to be [Nbr_joints, Height, Width] but i'm getting [N, Height, Width] ?

Thanks !

anibali commented 3 years ago

You must call make_gauss with coordinates representing the means (centres) of the Gaussians to draw. Consider the signature:

make_gauss(means, size, sigma, normalize=True)

Now, for your case,

The tensor returned by the function will have shape [N, Nbr_Joints, Height, Width].