Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confused about Dilated convolution replace maxpooling #15

Open
chasingw opened this issue Aug 21, 2020 · 1 comment
Open

confused about Dilated convolution replace maxpooling #15

chasingw opened this issue Aug 21, 2020 · 1 comment

Comments

@chasingw
Copy link

hello, I'm confused about this change in class PillarFeatureNet

self.t_conv = nn.ConvTranspose2d(100, 1, (1,8), stride=(1,7))
self.conv3 = nn.Conv2d(64, 64, kernel_size=(1, 34), stride=(1, 1), dilation=(1,3))
def forward(self, input):
x = self.conv1(input)
x = self.norm(x)
x = F.relu(x)
x = self.conv3(x)
return x
# x = self.linear(input)
# x = self.norm(x.permute(0, 2, 1).contiguous()).permute(0, 2, 1).contiguous()
# x = F.relu(x)
#
# x_max = torch.max(x, dim=1, keepdim=True)[0]
#
# if self.last_vfe:
# return x_max
# else:
# x_repeat = x_max.repeat(1, inputs.shape[1], 1)
# x_concatenated = torch.cat([x, x_repeat], dim=2)
# return x_concatenated

use conv replace maxpooling op
although the shape are same, can this change equivalent? do you know some reference material about this

@ldtho
Copy link

ldtho commented Jul 18, 2021

same question!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants