Closed danielchiu615 closed 1 year ago
Hi @danielchiu615, the device
in the config is cpu
, which means your Pytorch is not correctly supporting cuda. You may want to double-check your installation, and you can verify with torch.cuda.is_available()
.
(barf-env) C:\Users\usera\bundle-adjusting-NeRF>python3 train.py --group=test --model=barf --yaml=barf_llff --name=fern --data.scene=fern --barf_c2f=[0.1,0.5] Process ID: 21644 [train.py] (PyTorch code for training NeRF/BARF) setting configurations... loading options/base.yaml... loading options/nerf_llff.yaml... loading options/barf_llff.yaml...
yaml: barf_llff existing options file found (identical) Traceback (most recent call last): File "C:\Users\usera\bundle-adjusting-NeRF\train.py", line 32, in
main()
File "C:\Users\usera\bundle-adjusting-NeRF\train.py", line 18, in main
with torch.cuda.device(opt.device):
File "C:\Users\usera\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\torch\cuda__init.py", line 312, in init__
self.idx = _get_device_index(device='cuda')
File "C:\Users\usera\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\torch\cuda_utils.py", line 36, in _get_device_index
return _torch_get_device_index(device, optional, allow_cpu)
File "C:\Users\usera\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\torch_utils.py", line 731, in _get_device_index
raise ValueError(
ValueError: Expected a torch.device with a specified index or an integer, but got:cuda
I first typed git clone
then followed the steps and stuck here
I want to try this code with custom images with camera parameters
Appreciate any help!