bennyguo / instant-nsr-pl

Neural Surface reconstruction based on Instant-NGP. Efficient and customizable boilerplate for your research projects. Train NeuS in 10min!
MIT License
856 stars 84 forks source link

NerfAcc: No CUDA toolkit found #77

Open LSK0821 opened 1 year ago

LSK0821 commented 1 year ago

Hello dear author, I am running python launch.py --config configs/neus-dtu.yaml --gpu 0 --train. The following problem occurs, but I have set PATH and LD_LIBRARY_PATH in the system barshrc, but still the problem occurs

cc332ee4bb2f49faf4f53894e823ed9 20f8ab6c10f6074976cfda5ed6538db

xiaohulihutu commented 1 year ago

export PATH="/usr/local/cuda-11.3/bin${PATH:+:${PATH}}" export LD_LIBRARY_PATH=/usr/local/cuda-11.3/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

my bashrc is like this. and it works.

LSK0821 commented 1 year ago

Thank you for your answer! But this didn't solve my problem.

LSK0821 commented 1 year ago

I tried to execute the above command in terminal, NerFACC can find toolkit, but it will be Killed. Does the author have a solution? 2de1cb09e63413f5f1766b3e91e0510 a2d516a528776ddc0fae040eb042aeb

bennyguo commented 1 year ago

@LSK0821 Install the pre-built wheel for nerfacc here so that it doesn't need to be compiled before use. It seems that the compilation failed on your machine.

image
LSK0821 commented 1 year ago

@LSK0821在这里安装nerfacc的pre-built wheel ,这样使用前就不需要编译了。看来您的机器上编译失败了。

图像

Hello dear author! Thank you for your comments, I followed what you said pip install nerfacc -f https://nerfacc-bucket.s3.us-west-2.amazonaws.com/whl/torch-1.13.0_cu117.html I compiled nerfacc, but currently only the latest compiled version is available, which is different from version 0.33 in requirements, and many functions have changed and the project is no longer executable. Is there any other solution?

image

bennyguo commented 1 year ago

Sorry, I totally forget this. Could you try installing from git source via:

pip install git+https://github.com/KAIR-BAIR/nerfacc.git@0.3.3
LSK0821 commented 1 year ago

Sorry, I totally forget this. Could you try installing from git source via:

pip install git+https://github.com/KAIR-BAIR/nerfacc.git@0.3.3

Thank you very much! This method works! Thank you for your answer, I close this question.