-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
GouraudShader failing with AmbientLights #1043
Comments
Not sure what is happening here. Can you try again with the environment variable |
I'm getting the same error message with I will install pytorch3d on another machine tomorrow and see if it works with CUDA 10.
|
This is a more informative stack trace. Can you check the batch length of the lighting object matches the number of meshes in the batch? |
I just have ambient lights:
I tried changing the lights to (to have the same batch length) this but it gives the same type of error message (indexes have changed):
|
"same type of error message" - but this could have been a fix in the right direction. Can you set CUDA_LAUNCH_BLOCKING and look closely at the stack trace and then what is going on in the code? Another way to simplify errors might be to try doing everything on the CPU. |
This is the stacktrace:
I will just make a simple repository reproducing the error. |
You seem to be onto something. Here is code that reproduces the error: https://github.com/samedii/pytorch3d-gouraud-failure/blob/master/test.py When reproducing the error I found that
Changing to CPU with
|
Removing the light seems to fix the issue
|
Yes. I think this is a specific problem with the AmbientLights class. You can use a PointLights with only an ambient component instead. |
have you found the reason of this problem? it's redicilious. |
Does the workaround of using a PointLights with only an ambient component work? Something probably has the wrong shape, and is (perhaps deliberately to avoid a slowdown) not being validated. |
🐛 Bugs / Unexpected behaviors
SoftGouraudShader
andHardGouraudShader
shader fail whenSoftPhongShader
andHardPhongShader
work. I am using aTexturesVertex
and I've tried with a few different meshes. I am just doing simple rendering.This seems to be relevant:
pytorch/pytorch#55027
Do you know if there any way for me to avoid this issue by changing versions of packages etc?
Previous messages:
Stacktrace:
Instructions To Reproduce the Issue:
Using poetry to install:
CUDA 11.1
NVIDIA CUB requirement for CUDA 11.1
The text was updated successfully, but these errors were encountered: