Colin97 / OpenShape_code

official code of “OpenShape: Scaling Up 3D Shape Representation Towards Open-World Understanding”
https://colin97.github.io/OpenShape/
Apache License 2.0
244 stars 17 forks source link

Why use the relative position encoding #12

Closed yifliu3 closed 5 months ago

yifliu3 commented 1 year ago

Hi,

I noticed that you have used the relative position of centroids as the input of the position encoding: entroid_delta = centroids.unsqueeze(-1) - centroids.unsqueeze(-2) may I know the reason to use relative encoding rather the commonly used absolution position encoding

eliphatfs commented 5 months ago

I think this is common since PointNet++. This makes the patches independent of the absolute position so the network can embed it more generalizably.