Merge pull request #54 from hustvl/fix-colmaploader-bug

fix-colmaploader-bug
This commit is contained in:
Geralt_of_Rivia 2023-12-19 12:56:59 +08:00 committed by GitHub
commit c7478df53a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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