ashawkey / torch-ngp

A pytorch CUDA extension implementation of instant-ngp (sdf and nerf), with a GUI.
MIT License
2.11k stars 275 forks source link

Same camera pose format as Nerf? #120

Closed cazhang closed 1 year ago

cazhang commented 2 years ago

Just wondering if the camera coordinate the same as nerf?

What I got confused is the use of nerf_to_ngp function in provider?

ashawkey commented 2 years ago

@cazhang Hi, no, we use the same coordinate system as instant-ngp.

cazhang commented 2 years ago

@cazhang Hi, no, we use the same coordinate system as instant-ngp.

So nerf_to_ngp conversion is needed if I'm using the nerf-compatible data?

ashawkey commented 2 years ago

Yes, but you need to do nothing with the data itself. The data provider will perform the conversion.

cazhang commented 2 years ago

I'm using some custom dataset which works with nerf_pytorch, and now want to use it with your torch_ngp, I'm afraid I have to adapt the pose to make it work. My thought is to do the following transform: x y z -> x -y -z is that all I need?