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

The defination in dataset file #81

Closed
zhangyahu1 opened this issue Sep 22, 2019 · 0 comments
Closed

The defination in dataset file #81

zhangyahu1 opened this issue Sep 22, 2019 · 0 comments

Comments

@zhangyahu1
Copy link

Hi Xingyi,

Thanks for your work. Does 'gt_3d = gt_3d - gt_3d[:1]' in L133 mean to subtract the root joint position?

def _get_part_info(self, index):
ann = self.annot[self.idxs[index]]
gt_3d = np.array(ann['gt_3d'], dtype=np.float32)
gt_3d = gt_3d - gt_3d[:1]
gt_3d = gt_3d[self.h36m_to_mpii]
pts = np.array(ann['uvd'], dtype=np.float32)
c = np.array([112, 112], dtype=np.float32)
s = 224.
return gt_3d, pts, c, s

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

1 participant