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

RuntimeError: shape '[0, 16, 3, 196, 196]' is invalid for input of size 460992 for swintiny #5

Closed
Dongshengjiang opened this issue Sep 2, 2021 · 3 comments

Comments

@Dongshengjiang
Copy link

Hello, I meet a error when I use local crop with size 96 for swin_tiny. is the released code not work for this size?

@ChunyuanLI
Copy link
Contributor

ChunyuanLI commented Sep 2, 2021

Could you please provide more information? For example, are you using multi-crop? If yes, what are the number of crops and their crop size for global and local crops, respectively? and what is the input image size?

@Dongshengjiang
Copy link
Author

Yes,when I use only global crops(224), it works. But when I set local crops >=1 with size 96, it shows the error.

@Dongshengjiang
Copy link
Author

When I move the code to gpu, it seems there is no problem. Thanks!

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

2 participants