Skip to content

Swin Transformer with different input size #1137

Answered by rwightman
mt-cly asked this question in General
Discussion options

You must be logged in to vote

In case anyone else reads this, for swin and other transformer arch with fixed or contrained image sizes, it's best to resize/crop/pad the image in preprocessing to fit the network input. That's already handled by default eval transforms for the validation/train scripts here.. but it's not hard to customize for padding or different types of resize (non-aspect preserving, etc).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mt-cly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants