-
Notifications
You must be signed in to change notification settings - Fork 1.4k
render image with some constant colors that described in OBJ-file #1109
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
Comments
Can you give the whole stack trace? |
full trace back
|
Something weird is happening here. What is |
Here are the codes
|
Whatever has gone wrong here is quite concerning and it might need some work to debug. If you can help that would be great, otherwise supplying us with everything we need to reproduce the error is needed (the data, the full code, the versions of pytorch, pytorch3d, cuda). There's an assumption in the lighting code that certain tensors will be contiguous, which allows it to save memory by knowing that reshaping tensors won't need to copy data, and one of these assumptions has failed the case here. It would be useful to work backwards from the error and look at the strides and shapes of the tensors which go in to it. This could be done in a debugger or by adding print statements. Specifically,
At least one of these two things is probably not contiguous, and the next question would be why. |
data: test_obj.tar.gz
|
There's a mismatch in batch sizes. The materials (ambient_color, diffuse_color, specular_color, shininess) each contain 23 items / a batch size of 23. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
❓ Questions on how to use PyTorch3D
basically the same question asked in #280, but asking for a concrete example
I was able to create the Materials object from
aux.material_colors
. But passing it to shader causes aRuntimeError
when rendering. (Same error withrenderer(materials=materials)
). My feeling isfaces.materials_idx
is missing in the pipeline. As in this comment,faces.materials_idx
indexes into the material properties for each face, but I couldn't find a place to pass it to the renderer.here is how I create
materials
here is how I render an image
and here is the RuntimeError
The text was updated successfully, but these errors were encountered: