Open zhangsongdmk opened 1 year ago
The error was called in the train.py & train_sr.py, os.environ[‘CUDA_VISIBLE_DEVICES‘] was set to 1, 6, not 0, if only 1 GPU was used, the code could not find GPU.
I had the same problem. Did you solve it?
Using /root/.cache/torch_extensions/py38_cu113 as PyTorch extensions root...
Detected CUDA files, patching ldflags
Emitting ninja build file /root/.cache/torch_extensions/py38_cu113/adam_upd_cuda/build.ninja...
Traceback (most recent call last):
File "run_sr.py", line 12, in
The error was called in the train.py & train_sr.py, os.environ[‘CUDA_VISIBLE_DEVICES‘] was set to 1, 6, not 0, if only 1 GPU was used, the code could not find GPU.
But there are other problems left and I didn't run the code successfully.
I didn't solve it either. I only have one gpu and my pytorch and cuda versions are 1.10 and 11.3 respectively. I think we might need a lower version
try like export TORCH_CUDA_ARCH_LIST="8.6"
there is some config part in the code to set which number gpu to use. you change the number to your computer.
---- Replied Message ---- | From | @.> | | Date | 09/14/2023 19:13 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [frozoul/4K-NeRF] torch and cuda version of your work (Issue #11) |
try like export TORCH_CUDA_ARCH_LIST="8.6"
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Thank you for you great work. As far as I know you are the only one work on high resolution NeRF.
I try to run the 'traing 4K resolution with L1 loss' according to the readme.md. But get the following error . Some times it's caused by pytorch&cuda version. So can I know the pytorch&cuda version infomation?
' File "/opt/anaconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1561, in _get_cuda_arch_flags arch_list[-1] += '+PTX' IndexError: list index out of range but get "arch_list[-1] += '+PTX'" error