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 render SMPLX front and back normal if I konw the camera parameters KRT and SMPLX parameters? #102

Open
fishfishson opened this issue Nov 14, 2023 · 5 comments

Comments

@fishfishson
Copy link

Dear author,

I want to test your normal net performance with my custom multiview data. Since I have already konwn the camera parameters and SMPLX parameters of the captured human, could you pls tell me how to render the SMPLX normal so that the results are consistent with yours?

@YuliangXiu
Copy link
Owner

YuliangXiu commented Nov 14, 2023

Please check infer.py#L201 to know how ECON renders the SMPL-X normal maps from SMPL-X mesh.

@fishfishson
Copy link
Author

I am sorry but it seems like there are some format mismatch for pytorch3d and my opencv cameras. Could you describe the render ing process with more details? For example the parameters of my camera is KRT and how to get the right front camera and back camera?

@fishfishson
Copy link
Author

Please check infer.py#L201 to know how ECON renders the SMPL-X normal maps from SMPL-X mesh.

Should I convert perspetive camera to orthgonal camera?

@YuliangXiu
Copy link
Owner

Yes, all the 2D projections of ECON/ICON are orthogonal or weak perspective.

Please check TestDataset.py#L186 to see the camera details to translate/scale the estimated 3D SMPL-X body.

@YuliangXiu YuliangXiu reopened this Nov 15, 2023
@notorious-eric
Copy link

Yes, all the 2D projections of ECON/ICON are orthogonal or weak perspective.

Please check TestDataset.py#L186 to see the camera details to translate/scale the estimated 3D SMPL-X body.

Hi I also use perspective camera and there is still some mismatch between the rendered normal and RGB. would you explain how can I find the scale and tran in "scale, tranX, tranY = preds_dict["cam"].split(1, dim=1)" to translate/scale the estimated 3D SMPL-X body. When i read smpl model there is no such thing. Thank you.

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