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

einops.EinopsError: Error while processing rearrange-reduction pattern "b d (h ph) (w pw) -> b (ph pw) (h w) d". #8

Open
JiangMei0201 opened this issue Dec 22, 2021 · 3 comments

Comments

@JiangMei0201
Copy link

JiangMei0201 commented Dec 22, 2021

No description provided.

@wilbur-lqw
Copy link

hi, I face the same error, have you any solution to deal with it?

@kennethzhao24
Copy link

Are you getting the error when you tried to use input size of 224?

When using size of 224, the height and width of the feature is 7 by 7. Since the patch size is 2 by 2, you need to pad or interpolate it to 8 by 8.

@Lixuesen-l
Copy link

输入图像的尺寸必须是32的整数倍。patch_size的大小要能被每次下采样后的特征大小整除就可以了

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

4 participants