Closed a-lemus96 closed 8 months ago
Problem occurred when running python run-nerf.py --debug
command.
Torch version currently being used is
>>> torch.__version__
'2.0.1+cu117'
By doing some initial research, I found that problem might be due to a possible torch.tensor()
declaration that is not being transferred to GPU, according to this issue
PyTorch RuntimeError t == DeviceType::CUDAINTERNAL ASSERT FAILED
Mismatch between rays_o
device and renderer device
Loading model from: /home/lemus/miniconda3/envs/nerf/lib/python3.11/site-packages/lpips/weights/v0.1/vgg.pth
[NeRF]: 0%| | 0/8000 [00:00<?, ?it/s]> /home/lemus/projects/fs-nerf/src/render/renderer.py(83)render_rays()
-> ray_idxs, t_starts, t_ends = self.estimator.sampling(
(Pdb) p rays_o.device
device(type='cpu')
(Pdb)
Problem solved by properly moving tensors to CUDA device.
Originally posted by @a-lemus96 in #61