Skip to content

Commit

Permalink
Update pointnet.py
Browse files Browse the repository at this point in the history
Softmax should be taken across each element of the batch instead of across batch
  • Loading branch information
gsp-27 authored Feb 27, 2019
1 parent 2ec315f commit 1551005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pointnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def forward(self, x):
x = F.relu(self.bn1(self.fc1(x)))
x = F.relu(self.bn2(self.fc2(x)))
x = self.fc3(x)
return F.log_softmax(x, dim=0), trans
return F.log_softmax(x, dim=1), trans

class PointNetDenseCls(nn.Module):
def __init__(self, k = 2):
Expand Down

0 comments on commit 1551005

Please sign in to comment.