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

bfm lm68 index should be minus 1 ? #7

Open
masonwang513 opened this issue Nov 7, 2023 · 0 comments
Open

bfm lm68 index should be minus 1 ? #7

masonwang513 opened this issue Nov 7, 2023 · 0 comments

Comments

@masonwang513
Copy link

https://github.com/wuhaozhe/pytorch-nicp/blob/099f189b749154e97d0f6fa5a1e16e8fb885cce0/bfm_model.py#L23C60-L23C60

lm_index = bfm_meta_data['keypoints']
faces = torch.from_numpy(faces).long().to(device) - 1
lm_index = torch.from_numpy(lm_index).long().to(device)

According to this line from 3dmm-fitting-pytorch repo, self.kp_inds = torch.tensor(model_dict['keypoints'] - 1).squeeze().long()](https://github.com/ascust/3DMM-Fitting-Pytorch/blob/master/core/BFM09Model.py#L26) , whether lm_index should be also minus 1 ?

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