kcheng1021 / GaussianPro

[ICML2024] Official code for GaussianPro: 3D Gaussian Splatting with Progressive Propagation
https://kcheng1021.github.io/gaussianpro.github.io/
MIT License
551 stars 36 forks source link

Something wrong when trying my own dataset #37

Open hanhantie233 opened 2 months ago

hanhantie233 commented 2 months ago

File "train.py", line 372, in <module> 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 "train.py", line 41, in training scene = Scene(dataset, gaussians) File "D:\01ZPS_data\models\GaussianPro\scene\__init__.py", line 74, in __init__ self.train_cameras[resolution_scale] = cameraList_from_camInfos(scene_info.train_cameras, resolution_scale, args) File "D:\01ZPS_data\models\GaussianPro\utils\camera_utils.py", line 77, in cameraList_from_camInfos camera_list.append(loadCam(args, id, c, resolution_scale)) File "D:\01ZPS_data\models\GaussianPro\utils\camera_utils.py", line 71, in loadCam sky_mask=resized_sky_mask, normal=resized_normal, depth=resized_depth) File "D:\01ZPS_data\models\GaussianPro\scene\cameras.py", line 53, in __init__ [0, K[1], K[3]], IndexError: index 3 is out of bounds for axis 0 with size 3

I encountered this error when using my own dataset and I'm wondering why.

hanhantie233 commented 2 months ago

I found the shape of K is 3.

kcheng1021 commented 1 month ago

Please ensure that your dataset format is consistent with the format processed by colmap.