mirror of
https://github.com/graphdeco-inria/gaussian-splatting
synced 2024-11-24 21:13:46 +00:00
Update sorting logic in scene/dataset_readers.py for readColmapSceneInfo
This commit is contained in:
parent
d3048bebaa
commit
08a6e07266
@ -143,7 +143,7 @@ def readColmapSceneInfo(path, images, eval, llffhold=8):
|
||||
|
||||
reading_dir = "images" if images == None else images
|
||||
cam_infos_unsorted = readColmapCameras(cam_extrinsics=cam_extrinsics, cam_intrinsics=cam_intrinsics, images_folder=os.path.join(path, reading_dir))
|
||||
cam_infos = sorted(cam_infos_unsorted.copy(), key = lambda x : x.image_name)
|
||||
cam_infos = sorted(cam_infos_unsorted.copy(), key = lambda x : x.uid)
|
||||
|
||||
if eval:
|
||||
train_cam_infos = [c for idx, c in enumerate(cam_infos) if idx % llffhold != 0]
|
||||
|
Loading…
Reference in New Issue
Block a user