Closed shenyehui closed 6 months ago
Why do you need to run the following code when running nerf, but not for DFnet, and not when generating random new view in DFnet? By the way how did pose_scale , pose_scale2 and move_all_cam_vec get there, did they come with the dataset?
if rescale_coord: sc=train_set.pose_scale # manual tuned factor, align with colmap scale all_poses[:,:3,3] *= sc
# quite ugly #
# move center of camera pose
if train_set.move_all_cam_vec != [0.,0.,0.]:
all_poses[:, :3, 3] += train_set.move_all_cam_vec
if train_set.pose_scale2 != 1.0:
all_poses[:,:3,3] *= train_set.pose_scale2
Hi, they did not come with the dataset. I manually tuned this parameter so that scenes are centered. The APR/DFNet has to be the same scale as the original scene scale. However, the original NeRF paper requires every camera ray to be bounded within [-pi, pi] due to its position encoding. Therefore, I re-adjusted the pose (pose_scale2) when rendering with Nerf.
Hello Dear Author, I have a few questions to ask about nerf-h.