From 06b8f8dc86f69a443ebfbaf6cec93339ea825a11 Mon Sep 17 00:00:00 2001 From: Geralt_of_Rivia <87054407+guanjunwu@users.noreply.github.com> Date: Tue, 19 Dec 2023 01:23:14 +0800 Subject: [PATCH] fix-colmaploader-bug --- scene/dataset_readers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/dataset_readers.py b/scene/dataset_readers.py index d3161cc..3aa29f3 100644 --- a/scene/dataset_readers.py +++ b/scene/dataset_readers.py @@ -116,7 +116,7 @@ def readColmapCameras(cam_extrinsics, cam_intrinsics, images_folder): image = PILtoTorch(image,None) cam_info = CameraInfo(uid=uid, R=R, T=T, FovY=FovY, FovX=FovX, image=image, image_path=image_path, image_name=image_name, width=width, height=height, - time = 0, mask=None) + time = float(idx/len(cam_extrinsics), mask=None) # default by monocular settings. cam_infos.append(cam_info) sys.stdout.write('\n') return cam_infos