gaussian-splatting icon indicating copy to clipboard operation
gaussian-splatting copied to clipboard

Camera model error: Colmap data

Open victorhuzhening opened this issue 2 years ago • 23 comments
trafficstars

I have a question about the camera model of the data: is cameras.bin where the gaussian_splatting model reads the model from? I have a cameras.bin file that I believe specifies PINHOLE model, but I keep getting this error:

Optimizing Output folder: ./output/752b4cb7-a [03/10 04:25:09] Reading camera 1/315Traceback (most recent call last): File "/content/gaussian-splatting/train.py", line 216, in training(lp.extract(args), op.extract(args), pp.extract(args), args.test_iterations, args.save_iterations, args.checkpoint_iterations, args.start_checkpoint, args.debug_from) File "/content/gaussian-splatting/train.py", line 35, in training scene = Scene(dataset, gaussians) File "/content/gaussian-splatting/scene/init.py", line 44, in init scene_info = sceneLoadTypeCallbacks["Colmap"](args.source_path, args.images, args.eval) File "/content/gaussian-splatting/scene/dataset_readers.py", line 145, in readColmapSceneInfo cam_infos_unsorted = readColmapCameras(cam_extrinsics=cam_extrinsics, cam_intrinsics=cam_intrinsics, images_folder=os.path.join(path, reading_dir)) File "/content/gaussian-splatting/scene/dataset_readers.py", line 95, in readColmapCameras assert False, "Colmap camera model not handled: only undistorted datasets (PINHOLE or SIMPLE_PINHOLE cameras) supported!" AssertionError: Colmap camera model not handled: only undistorted datasets (PINHOLE or SIMPLE_PINHOLE cameras) supported!

I also have the files organized as shown in the README. Any clues/tips on what might be causing the problem? Should I maybe specify camera model when I generate the files from Colmap?

Appreciate the help.

victorhuzhening avatar Oct 03 '23 04:10 victorhuzhening