chenhsuanlin / bundle-adjusting-NeRF

BARF: Bundle-Adjusting Neural Radiance Fields 🤮 (ICCV 2021 oral)
MIT License
788 stars 114 forks source link

ValueError: Expected a torch.device with a specified index or an integer, but got:cuda #73

Closed danielchiu615 closed 1 year ago

danielchiu615 commented 1 year ago

(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...

chenhsuanlin commented 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().