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

An error is reported during the fpn_efficientformerv2_s0 test. #50

Open
nizhenliang opened this issue Feb 16, 2023 · 2 comments
Open

An error is reported during the fpn_efficientformerv2_s0 test. #50

nizhenliang opened this issue Feb 16, 2023 · 2 comments

Comments

@nizhenliang
Copy link

q = self.q(x).flatten(2).reshape(B, self.num_heads, -1, H * W).permute(0, 1, 3, 2)
RuntimeError: shape '[1, 8, -1, 336]' is invalid for input of size 90112

@nypyp
Copy link

nypyp commented Mar 10, 2024

I have met the same err, have you solved this?

@nypyp
Copy link

nypyp commented Mar 10, 2024

I have use the mmsegmentation to run this as backbone, and I solve this err by copy the config file of poolformer, the key is adding this line

dict(type='ResizeToMultiple', size_divisor=32) 

in test_pipeline

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