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

Compatibility with Pytorch3d renderer #326

Open
cfernandezlab opened this issue Jan 13, 2021 · 1 comment
Open

Compatibility with Pytorch3d renderer #326

cfernandezlab opened this issue Jan 13, 2021 · 1 comment
Labels

Comments

@cfernandezlab
Copy link

Hi Patrik, thanks for your excellent work!

I was wondering if you have any experience using the output of your tracker with the pytorch3d renderer.

If I understood correctly, the modelview matrix gives us the conversion from object/model coordinates to camera coordinates, whereas the projection matrix can be used to project the 3D points to 2D. However, I was following a simple example and I don't find the correct way to pass R and T to the renderer to visualize the mesh with the predicted head pose (It shows only a white canvas).

I tried passing R and T directly from the modelview matrix, also combining it with the projection matrix and even applying the transformations to the mesh and simply passing R=Identity and T=[0,0,0].

Any suggestions?

Thank you very much in advance.

@patrikhuber
Copy link
Owner

Hi Clara,

Thanks a lot! My apologies for the very late reply, it has been extremely busy unfortunately.

Your general understanding of the matrices is right. The eos renderer follows the OpenGL conventions, so what you get should be OpenGL-compliant model-view and projection matrices. I don't have any experience with pytorch3d yet, but it probably expects those matrices in a slightly different format. Unfortunately problems between camera coordinate system conventions are quite common and most annoying (I wish our field could get rid of those problems!), and I would recommend reading more about the OpenGL and PyTorch3D conventions first and then do some debugging.

It would be quite interesting to get the eos fitting output to work with pytorch3d, so I'd be quite interested in that. Have you made and progress on this since January or what did you end up doing?

Sorry again for the late reply!

Best wishes,
Patrik

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

No branches or pull requests

2 participants