Skip to content

Commit

Permalink
Merge pull request #4 from dcy0577/master
Browse files Browse the repository at this point in the history
update 4
  • Loading branch information
dcy0577 authored Aug 26, 2021
2 parents a5ed3bf + 2d29e04 commit 5d0ac3d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions KPConv-PyTorch/models/architectures_sphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,16 @@ def __init__(self, config, lbl_values, ign_lbls):
out_dim = out_dim // 2


# second fusion before segementation head, in_dim = 128(original output of KPconv) + 2(geometric features) = 130
# second fusion before segementation head, in_dim = 128(original output of KPconv) + 1(geometric features) = 129

self.head_mlp = UnaryBlock(out_dim + 1, out_dim + 1, False, 0) # 128+1=129, in_dim=out_dim
self.head_softmax = UnaryBlock(out_dim + 1, self.C, False, 0)
# self.head_mlp = UnaryBlock(out_dim + 1, out_dim + 1, False, 0) # 128+1=129, in_dim=out_dim
# self.head_softmax = UnaryBlock(out_dim + 1, self.C, False, 0)

# self.head_mlp = UnaryBlock(out_dim + 64, out_dim + 64, False, 0) # 128+64=192, in_dim=out_dim
# self.head_softmax = UnaryBlock(out_dim + 64, self.C, False, 0)

# self.head_mlp = UnaryBlock(out_dim, config.first_features_dim, False, 0)
# self.head_softmax = UnaryBlock(config.first_features_dim, self.C, False, 0)
self.head_mlp = UnaryBlock(out_dim, config.first_features_dim, False, 0)
self.head_softmax = UnaryBlock(config.first_features_dim, self.C, False, 0)


################
Expand Down Expand Up @@ -307,7 +307,7 @@ def forward(self, batch, config):

# Head of network
# second fusion, fusing twice!->not good idea
x = torch.cat((x, batch.feature_3d[:,1:]), dim=1) # (np, 128+1=129)
# x = torch.cat((x, batch.feature_3d[:,1:]), dim=1) # (np, 128+1=129)
# x = torch.cat((x, feature_2d3d), dim=1) # (np, 128+64=192)
x = self.head_mlp(x, batch)
x = self.head_softmax(x, batch)
Expand Down

0 comments on commit 5d0ac3d

Please sign in to comment.