paulguerrero / pcpnet

Pytorch implementation of PCPNet
Other
172 stars 42 forks source link

Hello i have a problem with dataset.py #19

Open Lemon2048 opened 6 months ago

Lemon2048 commented 6 months ago

Hello i have a problem with dataset.py

can you help me resolve this issue thank you!

dataset.py", line 324, in getitem patch_normal = torch.from_numpy(shape.normals[center_point_ind, :]) IndexError: index 6033759 is out of bounds for axis 0 with size 2364679

paulguerrero commented 6 months ago

Hi @Lemon2048 , it seems your .pidx file that defines the point indices that are to be used as patch centers contains an out of bound index (index 6033759, while your point cloud only has 2364679 points).

Hope that helps!