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

How to adapt arbitrary image size? #19

Closed
Sumching opened this issue Feb 22, 2021 · 1 comment
Closed

How to adapt arbitrary image size? #19

Sumching opened this issue Feb 22, 2021 · 1 comment

Comments

@Sumching
Copy link

The length of learnable position embedding should be specified when it is initialized, so it is impossible to process images of other sizes. Is there any way to solve this problem?

@zhoufengfan
Copy link

Just change your img_size from the bash command --img_size [new_image_size].
The code will fit the length of learnable position embedding adaptively.

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

3 participants