PointMamba icon indicating copy to clipboard operation
PointMamba copied to clipboard

Serialization / Hilbert ordering.

Open karannb opened this issue 1 year ago • 4 comments

Hello does the current code-base have code for imposing a specific order and then serializing it? If no, will you be uploading it? If yes, I can't find it; in fact I think

choice = np.random.choice(len(seg), self.npoints, replace=True)
# resample
point_set = point_set[choice, :]
seg = seg[choice]

at line 155 in ./part_segmentation/dataset.py effectively randomizes the order of the points (which I guess might work, but is not what the paper reports).

Thank you!

karannb avatar Jun 12 '24 16:06 karannb

Thank you for your interest in our work! We have recently updated the paper introducing a scanning strategy based on space-filling curves and made minor adjustments to the network architecture to improve performance. The related code will be updated soon, so stay tuned.

Regarding the code you mentioned, in fact the random ordering of each point in the point cloud is a routine operation, this is because the point cloud is permutation invariant, i.e. the order of swapping still represents the same 3D object. On the other hand, we scan FPS-sampled key points along a space-filling curve, which differs from the random ordering.

LMD0311 avatar Jun 13 '24 02:06 LMD0311

Sure! can you please close this issue with the release I guess? So I know when to pull the changes. Thanks.

karannb avatar Jun 14 '24 15:06 karannb

@karannb Hi, I encountered the same issue. Have you resolved it? If so, could you please share your code? Thank you!

LL-C8 avatar Jun 30 '24 11:06 LL-C8

@LL-C8, no I have not solved it, I believe there are a few open source libraries for ordering point clouds, but I am waiting for the authors to release it.

However, you can work with the ShapeNet Part dataset which on my run was within < 0.5% than their reported number with the special ordering.

karannb avatar Jun 30 '24 15:06 karannb

The code has updated.

LMD0311 avatar Mar 19 '25 03:03 LMD0311

Amazing! Thank you.

karannb avatar Mar 19 '25 07:03 karannb