Skip to content

Commit

Permalink
fixed bug for yanx27#59
Browse files Browse the repository at this point in the history
  • Loading branch information
yanx27 committed Mar 21, 2021
1 parent 40ab12b commit d65f07f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/pointnet_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,5 @@ def feature_transform_reguliarzer(trans):
I = torch.eye(d)[None, :, :]
if trans.is_cuda:
I = I.cuda()
loss = torch.mean(torch.norm(torch.bmm(trans, trans.transpose(2, 1) - I), dim=(1, 2)))
loss = torch.mean(torch.norm(torch.bmm(trans, trans.transpose(2, 1)) - I, dim=(1, 2)))
return loss

0 comments on commit d65f07f

Please sign in to comment.