You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code below is from gaussian_splatting/scene/dataset_readers.py.
I wonder if this is from colmap or someother places?
I try to use the transforms.json and PLY file exported from NGP as input, and both of them are in nerf coordinate. I check the dataset_readers.py code and find the transforms.json is converted to COLMAP coordinate. Is that means the NGP PLY file is not matched to the converted transforms.json, so I cannot use the NGP PLY file? What if I don't do the coordinate convertion(delete the convertion code of dataset_readers file) and make both json and PLY stay in NeRF coordinate?
Is anyone have some advice? Thanks a lot!!!
defreadNerfSyntheticInfo(path, white_background, eval, extension=".png"):
print("Reading Training Transforms")
train_cam_infos=readCamerasFromTransforms(path, "transforms_train.json", white_background, extension)
print("Reading Test Transforms")
test_cam_infos=readCamerasFromTransforms(path, "transforms_test.json", white_background, extension)
ifnoteval:
train_cam_infos.extend(test_cam_infos)
test_cam_infos= []
nerf_normalization=getNerfppNorm(train_cam_infos)
ply_path=os.path.join(path, "points3d.ply")
ifnotos.path.exists(ply_path):
# Since this data set has no colmap data, we start with random pointsnum_pts=100_000print(f"Generating random point cloud ({num_pts})...")
# We create random points inside the bounds of the synthetic Blender scenesxyz=np.random.random((num_pts, 3)) *2.6-1.3shs=np.random.random((num_pts, 3)) /255.0pcd=BasicPointCloud(points=xyz, colors=SH2RGB(shs), normals=np.zeros((num_pts, 3)))
storePly(ply_path, xyz, SH2RGB(shs) *255)
try:
pcd=fetchPly(ply_path)
except:
pcd=Nonescene_info=SceneInfo(point_cloud=pcd,
train_cameras=train_cam_infos,
test_cameras=test_cam_infos,
nerf_normalization=nerf_normalization,
ply_path=ply_path)
returnscene_info
The text was updated successfully, but these errors were encountered:
The code below is from
gaussian_splatting/scene/dataset_readers.py
.dataset_readers.py
code and find the transforms.json is converted to COLMAP coordinate. Is that means the NGP PLY file is not matched to the converted transforms.json, so I cannot use the NGP PLY file? What if I don't do the coordinate convertion(delete the convertion code ofdataset_readers
file) and make both json and PLY stay in NeRF coordinate?Is anyone have some advice? Thanks a lot!!!
The text was updated successfully, but these errors were encountered: