Question on data generation for stage 1
DJNing opened this issue · 1 comments
Thanks for your great work on reproducing CLA-NeRF!
Since the data generation code has not been release yet. I am trying to write the generation code myself. And I am getting some questions on this. It would be helpful if you could give me some hint on this.
- Defining camera_angle_x
I saw related code for camera_angle_x
in the dataloader. But I am not sure why we need to define that as we can get focal length directly from the Sapien library. Would it be OK if I just use that focal length?
Another minor issue is that it seems the image resolution is hard coded in the dataloader.
- How to save the c2w matrix
In the Sapien library, there are several methods for camera position e.g., camera.get_model_matrix()
, camera.pose.to_transformation_matrix()
, camera.get_extrinsic_matrix()
. I am not sure which is used in this repo.
Thank you very much for your reply!
Thank you for your interest in this repo.
-
Yes you could use focal length directly. The motivation for saving it in this format is to make it compatible with the original NeRF's
transforms.json
format i.e. the NeRF blender dataset. -
We directly save poses using
camera.get_model_matrix()
which is OpenGL camera convention.