DReg-NeRF icon indicating copy to clipboard operation
DReg-NeRF copied to clipboard

error when running inference

Open Holmes-Alan opened this issue 2 years ago • 3 comments

Thanks for your code. When I ran your code, I met the problem with the tinycudnn as follows,

File "/workspace/project/DReg-NeRF/conerf/utils/utils.py", line 86, in sigma_fn return radiance_field.query_density(positions) File "/workspace/project/DReg-NeRF/conerf/radiance_fields/ngp.py", line 157, in query_density self.mlp_base(x.view(-1, self.num_dim)) File "/root/miniconda3/envs/nerf/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl return forward_call(*input, **kwargs) File "/root/miniconda3/envs/nerf/lib/python3.9/site-packages/tinycudann/modules.py", line 186, in forward output = _module_function.apply( File "/root/miniconda3/envs/nerf/lib/python3.9/site-packages/tinycudann/modules.py", line 98, in forward native_ctx, output = native_tcnn_module.fwd(input, params) RuntimeError: /tmp/pip-req-build-3a45ith0/include/tiny-cuda-nn/cutlass_matmul.h:330 status failed with error Error Internal

I can use tinycudnn in Nerfstudio and instantNGP successfully. I only met this problem when running your code. What do you think the problem is? I am looking forward to your answer.

Holmes-Alan avatar Sep 19 '23 11:09 Holmes-Alan

Did you follow the installation guide and use the install script?

AIBluefisher avatar Sep 19 '23 13:09 AIBluefisher

yes, I did follow the script.

Holmes-Alan avatar Sep 19 '23 19:09 Holmes-Alan

The issue may be caused by NeRFAcc. I met the same problem once and then I tested several versions of Pytorch. On my computer, the torch version specified in the script works well. You can refer to a discussion of the related problem at https://github.com/KAIR-BAIR/nerfacc/issues/207.

AIBluefisher avatar Sep 20 '23 02:09 AIBluefisher