sarafridov / K-Planes

Other
479 stars 45 forks source link

No such file or directory: 'tmp' #2

Open willehlad opened 1 year ago

willehlad commented 1 year ago

Hi.. right from the off i am getting the error..

File "D:\plenoxels\main.py", line 14, in get_freer_gpu memory_available = [int(x.split()[2]) for x in open('tmp', 'r').readlines()] FileNotFoundError: [Errno 2] No such file or directory: 'tmp'

thanks Howie

Giodiro commented 1 year ago

Hi @willehlad, sorry for this. We had some code to set the GPU but I think it only worked with some versions of nvidia-smi. I just pushed a fix, let me know if you have time to try it and if it works!

willehlad commented 1 year ago

i have no idea what your response was.. i'm new to github so not sure what you're showing me in the response .. is it a possible out of memory error.. which wouldn't make much sense as it's asking for a directory.

thanks howie

willehlad commented 1 year ago

Hi Giodiro..now i am getting the following error..

File "D:\plenoxels\main.py", line 10, in get_freer_gpu os.system('nvidia-smi -q -d Memory |grep -A5 GPU|grep Free >tmp') NameError: name 'os' is not defined

sorry to waste your time ;p

Howie

sarafridov commented 1 year ago

Hi Howie,

I'm not sure why you'd get 'os' is not defined since os is imported before that line, but regardless an easy workaround is to just replace the line gpu = get_freer_gpu() with gpu = 0 or whichever gpu number you want to use.