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

project SMPL vertices to 3d space with respective camera matrix #8

Closed
friendly-code-bot opened this issue Jun 23, 2022 · 2 comments
Closed

Comments

@friendly-code-bot
Copy link

Hi,

i would like to use your code for my research work but I encounter some problems and require some support.

My ultimate goal is to get the 3d coordinates of the vertices with my own camera matrix K. I want later on make selective body region selection and and need the 3d coordinates of the Human body to do so.

Acoording to your code, the SMPL vertices in the proxy representation and i would like to get the 3d coordinates somehow out of it.

Could you tell me how to do the projection from the proxy to the 3d coordinates using a specific camera matrix.

I would appreciate your help.

thanks

@chillcloud-dev
Copy link

following ...

@akashsengupta1997
Copy link
Owner

Hi,

Thanks for your interest in our work!

The vertex coordinates output by the SMPL model (line 116 of predict_poseMF_shapeGaussian_net.py) are in the SMPL world coordinate system. You can define your camera in this this coordinate system and project however you want. For example, in line 175 of the training code (train_poseMF_shapeGaussian_net.py), I set up a perspective camera in the SMPL world coordinates, and use that to project the SMPL 3D joints (in world coordinates) onto the image plane. Specifically, you may want to look at the perspective_project_torch function here:

def perspective_project_torch(points, rotation, translation, cam_K=None,

There is also an orthographic_project_torch function on the same file if you are using a scaled orthographic/weak perspective camera.

The proxy representation is not related to SMPL vertices. The proxy representation is the input representation consisting of 2D edge maps and 2D keypoint heatmaps.

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

3 participants