Closed trinhnhut-gif closed 3 years ago
The problem comes from the GridSampling3D transform. It means that probably the shape of the tensor (contained in the attribute pos of your object data) is not correct. The code should look like this:
pos = read_point_cloud(...) #pos is of shape N x 3
data = Data(pos=pos, batch=torch.zeros(len(pos)).long())
data = transform(data)
model.set_input(data, "cuda")
output = model.forward()
please can you check the size of pos
in your case ?
Hi. Thank you for your help.. I have solved this problem with my data ( blue one is a simulation and yellow one is a real point cloud ). But both of them are too big (4 million points) so google colab could not enough RAM to run in registration part with error WARNING WARNING:root:kernel b48211a4-a3e6-44f4-8082-89f69da39d21 restarted. So I think I will try with other smaller data or use local computer. Again, thank you so much for your support
Thanks for testing my code !
hi humanpose1 Thank you a lot for your update. It's running with your data but when I try to run with my 3D point loud data and use your model :MS_SVCONV_2cm_X2_3head_3dm.pt I have some problems like that:
INFO - 2021-06-15 11:01:11,212 - model_checkpoint - Loading checkpoint from models/MS_SVCONV_2cm_X2_3head_3dm.pt INFO - 2021-06-15 11:01:11,566 - modelfactory - The config will be used to build the model INFO - 2021-06-15 11:01:11,750 - model_checkpoint - Available weights : ['latest', 'loss', 'hit_ratio', 'feat_match_ratio', 'trans_error', 'rot_error', 'rre', 'rte', 'sr_err'] INFO - 2021-06-15 11:01:11,751 - model_checkpoint - Model loaded from MS_SVCONV_2cm_X2_3head_3dm.pt:latest
invalid syntax (, line 1)
[Open3D WARNING] Read PCD failed: unable to open file: Dt/4sm.pcd0;m
RuntimeError Traceback (most recent call last)