Skip to content

How to change the stride for the first conv? #530

Answered by rwightman
rakhimovv asked this question in Q&A
Discussion options

You must be logged in to vote

@rakhimovv I'd say that's not a great idea, it'd mess up the rest of the model. If you have a unet arch that needs the stride 1 feature, just pass the unencoded input to the decoder for stride 1 (ie prepend it to the feature stack).

Or you can use a unet arch that is designed to work with the typical ResNet, EfficientNet, etc striding where there is almost always stride=2 for the first level. Something like https://github.com/ternaus/TernausNetV2

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rakhimovv
Comment options

Answer selected by rakhimovv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants