sunset1995 / DirectVoxGO

Direct voxel grid optimization for fast radiance field reconstruction.
https://sunset1995.github.io/dvgo
Other
1.05k stars 110 forks source link

ERROR: the correct camera poses for current points cannot be accessed #38

Open hitsz-zuoqi opened 2 years ago

hitsz-zuoqi commented 2 years ago

I capture some pictures using my phone, but when i finish the colmap mapper process. it send out this message. I find code related to it. pts_arr = [] vis_arr = [] for k in pts3d: pts_arr.append(pts3d[k].xyz) cams = [0] * poses.shape[-1] for ind in pts3d[k].image_ids: if len(cams) < ind - 1: print('ERROR: the correct camera poses for current points cannot be accessed') return cams[ind-1] = 1 vis_arr.append(cams) But i have no idea. Could you help me?

hitsz-zuoqi commented 2 years ago

I found the number is not equal. Cameras 5 Images # 6

sunset1995 commented 2 years ago

It happened when some of the images COLMAP fail to solve the poses. I can modify the code to use the maximum number of available images but recently don't have enough time.

sunset1995 commented 2 years ago

Wait, it seems that I have implemented it before: b8d2023. Are you using the newest version?