nerfstudio-project / nerfacc

A General NeRF Acceleration Toolbox in PyTorch.
https://www.nerfacc.com/
Other
1.38k stars 113 forks source link

Not cuda toolkit #208

Closed aiyb1314 closed 1 year ago

aiyb1314 commented 1 year ago

When I run the code using pycharm, I get the following error message: NerfAcc: No CUDA toolkit found. NerfAcc will be disabled. , but it succeeds when using the command line.

liruilong940607 commented 1 year ago

That sounds like you need to config pycharm where cuda is. I’m not familiar with pycharm though

botaoye commented 1 year ago

When I run the code using pycharm, I get the following error message: NerfAcc: No CUDA toolkit found. NerfAcc will be disabled. , but it succeeds when using the command line.

Hi, I have the same question, did you successfully use nerfcc in PyCharm?

HL4214 commented 1 year ago

When I run the code using pycharm, I get the following error message: NerfAcc: No CUDA toolkit found. NerfAcc will be disabled. , but it succeeds when using the command line.

Hi, I solved the problem; The possible cause is that the call function from subprocess library starts a new process, but when running the code using pycharm, the enviroment is different from the commond line so that "nvcc" can not find;

My solution is first run "echo $PATH" on the commond line and then add the PATH value to enviroment variables in pycharm;

botaoye commented 1 year ago

When I run the code using pycharm, I get the following error message: NerfAcc: No CUDA toolkit found. NerfAcc will be disabled. , but it succeeds when using the command line.

Hi, I solved the problem; The possible cause is that the call function from subprocess library starts a new process, but when running the code using pycharm, the enviroment is different from the commond line so that "nvcc" can not find;

My solution is first run "echo $PATH" on the commond line and then add the PATH value to enviroment variables in pycharm;

It works, thanks a lot!

yuchenlichuck commented 1 year ago

me too

yuchenlichuck commented 1 year ago

I am still come cross the same problems

dawnzyt commented 6 months ago

I am still come cross the same problems

just add

env_list = os.environ['PATH'].split(':')
env_list.append('/usr/local/cuda/bin')
os.environ['PATH'] = ':'.join(env_list)