bmild / nerf

Code release for NeRF (Neural Radiance Fields)
http://tancik.com/nerf
MIT License
9.84k stars 1.37k forks source link

Is there any difference between get_rays() and get_rays_np() #92

Open MichaleGo opened 3 years ago

MichaleGo commented 3 years ago

Hi, thanks for the great work!

Is there any difference between get_rays()and get_rays_np()?

Thanks!

kainataltaf commented 3 years ago

Functionality of both functions is same. However, get_rays is implemented using numpy and the resulting variables are stored in cpu. On the other hand, get_rays_np is implemented using torch and load the variables in gpu.
This is my understanding of these function.

MY-Whu commented 11 months ago

I think get_rays_np is the function implemented using numpy

Functionality of both functions is same. However, get_rays is implemented using numpy and the resulting variables are stored in cpu. On the other hand, get_rays_np is implemented using torch and load the variables in gpu. This is my understanding of these function.