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

padding of first convolution set to dilation in residualblock #62

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ParsaEsmati
Copy link

In the case where downsampling is true and dilation>1 there are two convolutions both of which are downsampling by the number of dilation. However the shortcut is only downsampled with one dilation which creates a missmatch between shortcut and output when downsampling is true and dilation>1.

This fix sets the padding=dilation for the first convolution of the ResidualBlock in the case with downsampling 'true' and dilation>1.

…e dilation>0 to avoid downsampling 2*dilation
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

Successfully merging this pull request may close these issues.

None yet

1 participant