Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to mapping from xy in joint_2d to x'y' in joint_3d_mono? #27

Closed
Fangyh09 opened this issue Jul 6, 2018 · 5 comments
Closed

How to mapping from xy in joint_2d to x'y' in joint_3d_mono? #27

Fangyh09 opened this issue Jul 6, 2018 · 5 comments

Comments

@Fangyh09
Copy link

Fangyh09 commented Jul 6, 2018

Hi, is there any relationship between x,y in pts and x,y in pts_3d_mono?
The model output x,y is in pts, but the ground truth is in pts_3d_mono. So I want to figure out whether there is a mapping. Thanks!

def GetPartInfo(self, index):
pts = self.annot['joint_2d'][index].copy()
pts_3d_mono = self.annot['joint_3d_mono'][index].copy()
pts_3d = self.annot['joint_3d_mono'][index].copy()

@xingyizhou
Copy link
Owner

Hi,
This is a good question. The detailed transformation code from image xy to world xy is here https://github.com/xingyizhou/pytorch-pose-hg-3d/blob/master/src/utils/eval.py#L70, or a more detailed explanation at xingyizhou/pose-hg-3d#3 . Also, we provide the detailed projection formulation at Section 3.2 of https://arxiv.org/pdf/1803.09331.pdf.

@Fangyh09
Copy link
Author

Thanks @xingyizhou
I want to know that during evaluation whether we could use the extrinsic parameters or not?

@xingyizhou
Copy link
Owner

Yes, you can use camera parameters to perform the full perspective projection. However, the depth of the root should be known to resolve the scale-depth ambiguity.

@Fangyh09
Copy link
Author

@xingyizhou
It uses gt meta[i, root] in L84, so the error is relative error instead of absolute error?
I think the difference between protocol I and protocol II is the procruste instead of using gt meta[i, root]. Is it right? Thanks~

p[i, j] = (p[i, j] - pRoot) / lenPred * h36mSumLen + meta[i, root]

@Fangyh09 Fangyh09 reopened this Aug 23, 2018
@xingyizhou
Copy link
Owner

Hi,
Sorry for the very delayed reply. I think all evaluations on H36M are based on relative depth. You can check the official H36M ECCV Challenge data and its evaluation script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants