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

Question about the parameter of upsampling in FCN32s #56

Open
super233 opened this issue Feb 9, 2020 · 0 comments
Open

Question about the parameter of upsampling in FCN32s #56

super233 opened this issue Feb 9, 2020 · 0 comments

Comments

@super233
Copy link

super233 commented Feb 9, 2020

  According to the formula of ConvTranspose2d: output = (input - 1) * stride - 2 * padding + kernel_size. To realize 32 times upsampling, the parameter should be (kernel_size=32, stride=32, padding=0).
  But the parameter in code is self.upscore = nn.ConvTranspose2d(num_classes, num_classes, kernel_size=64, stride=32, bias=False).
  Could you please tell me why it's this? Thank you : )

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

1 participant