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

Rendering depth and converting them to the needed format #1862

Open
ynes99 opened this issue Sep 6, 2024 · 1 comment
Open

Rendering depth and converting them to the needed format #1862

ynes99 opened this issue Sep 6, 2024 · 1 comment

Comments

@ynes99
Copy link

ynes99 commented Sep 6, 2024

❓ Questions on how to use PyTorch3D

Hi, I'm trying to generate the depth of an object using pytorch3d, so I used MeshRendererWithFragments and extracted the depth value per mentioned in previous issues (fragment.zbuf) but the content of the tensor is in float, is there a way to convert the values close to the format I need (16bit int)?

@bottler
Copy link
Contributor

bottler commented Sep 18, 2024

It seems like this is a question about torch tensors, not pytorch3d, and you may find a solution in the PyTorch documentation.

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

2 participants