-
Notifications
You must be signed in to change notification settings - Fork 23
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
NaN value in the rendered result #43
Comments
The I used some utility methods from Open3D lib on my mesh in Open3D and here are some results:
Can you give me some ideas how to make sure |
Hi, |
Thanks. I used a neural network to output this mesh. I will find a way to produce watertight surfaces. |
I have PR in progress that adds a method to extract the largest manifold subpart of a mesh using linear programming #51. However the best approach would be to have an algorithm that generates manifold surfaces in the first place |
Describe the bug
I am working on a custom Renderer with Scene3DPytorch and ColoredTriMeshPytorch. However, I encountered a NaN in the output tensor of the
scene.render
method.Here is the gist contains my code: link to code
The data for vertices and faces can be download at link to data
To Reproduce
Steps to reproduce the behavior:
vertices.npz
andfaces.npz
: link to datananproblem.py
img
tensor and thegrad
for thetrans
tensor is also nanprint("nan counts = ", img[torch.isnan(img)].shape) # nan counts = torch.Size([387])
print("trans grad", trans.grad) # trans grad tensor([nan, nan, nan])
Expected behavior
I expected to have a valid gradient in the
trans.grad
Desktop (please complete the following information):
I have
AssertionError
on 0.1.17 atassert self.adjacencies.is_manifold
Will update if have NaN error on 0.1.17
The text was updated successfully, but these errors were encountered: