mobilevit-pytorch icon indicating copy to clipboard operation
mobilevit-pytorch copied to clipboard

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

Open JiangMei0201 opened this issue 3 years ago • 4 comments

JiangMei0201 avatar Dec 22 '21 09:12 JiangMei0201

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

wilbur-caper avatar Mar 31 '22 06:03 wilbur-caper

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.

kennethzhao24 avatar Apr 28 '22 03:04 kennethzhao24

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

Lixuesen-l avatar Jul 21 '22 12:07 Lixuesen-l