alextrevithick / GRF

🔥 General Radiance Field (ICCV, 2021)
280 stars 18 forks source link

About Intrinsic Matrix #6

Open GaryGky opened 3 years ago

GaryGky commented 3 years ago

May I ask how to get the intrinsic matrix of a photo if I want to use my own data to train GRF? And without the intrinsic matrix, will the performance of GRF significantly degrade?

alextrevithick commented 3 years ago

The intrinsic matrix is necessary. So you have the poses but not the intrinsic matrix? If not, you can follow the instructions from NeRF to estimate the camera poses along with the intrinsic using COLMAP, then train GRF using the default LLFF hyperparamaters. To do that, follow the section on generating your own poses from the NeRF repo at https://github.com/bmild/nerf

GaryGky commented 3 years ago

OK. Thank you! May I ask one more thing? I simply use this formula to generate intrinsic which assumes that the camera is without Distortion, is that reasonable?

intrinsic = np.array([[focal, 0., W / 2], [0, focal, H / 2], [0, 0, 1.]])

alextrevithick commented 3 years ago

Seems reasonable to me, assuming the principal point isn't too far from the center.

GaryGky commented 3 years ago

Thank you. I will have a try.