You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello buddy, I just started learning PointNet and am working on my own implementation currently as well. Your code has offered a great insight into my work but at the moment I don't quite understand your loss function setup somehow.
According to the PointNet paper Page 4 Joint Alignment Network section and Supplementary Part C "A regularization loss (with weight 0.001) is added to the softmax classification loss to make the matrix close to orthogonal.", shouldn't the loss function be something like below:
# Regularization function from the official pytorch implementation repo # Ref. https://github.com/fxia22/pointnet.pytorch/blob/master/pointnet/model.pydeffeature_transform_regularizer(trans):
d=trans.size()[1]
batchsize=trans.size()[0]
I=torch.eye(d)[None, :, :]
iftrans.is_cuda:
I=I.cuda()
loss=torch.mean(torch.norm(torch.bmm(trans, trans.transpose(2,1)) -I, dim=(1,2)))
defpointnetloss(outputs, labels, m3x3, m64x64, alpha=0.001):
criterion=torch.nn.NLLLoss()
returncriterion(outputs, labels) +alpha*feature_transform_regularizer(m64x64)
I newly just stepped into this area of research and tbh I am still not confident to say that I fully understand the paper. If you can show me some pointers, that would be more than appreciated!
Cheers~
The text was updated successfully, but these errors were encountered:
Hello buddy, I just started learning PointNet and am working on my own implementation currently as well. Your code has offered a great insight into my work but at the moment I don't quite understand your loss function setup somehow.
According to the PointNet paper Page 4 Joint Alignment Network section and Supplementary Part C "A regularization loss (with weight 0.001) is added to the softmax classification loss to make the matrix close to orthogonal.", shouldn't the loss function be something like below:
I newly just stepped into this area of research and tbh I am still not confident to say that I fully understand the paper. If you can show me some pointers, that would be more than appreciated!
Cheers~
The text was updated successfully, but these errors were encountered: