diff --git a/scene/dataset_readers.py b/scene/dataset_readers.py index 2a6f904..b7a337c 100644 --- a/scene/dataset_readers.py +++ b/scene/dataset_readers.py @@ -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]