Skip to content

padding of first convolution set to dilation in residualblock#62

Closed
ParsaEsmati wants to merge 1 commit intoyang-song:mainfrom
ParsaEsmati:fixedresidual
Closed

padding of first convolution set to dilation in residualblock#62
ParsaEsmati wants to merge 1 commit intoyang-song:mainfrom
ParsaEsmati:fixedresidual

Conversation

@ParsaEsmati
Copy link
Copy Markdown

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
@ParsaEsmati ParsaEsmati closed this Apr 3, 2025
@ParsaEsmati ParsaEsmati deleted the fixedresidual branch April 3, 2025 20:05
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.

1 participant