EfficientFormer icon indicating copy to clipboard operation
EfficientFormer copied to clipboard

An error is reported during the fpn_efficientformerv2_s0 test.

Open nizhenliang opened this issue 3 years ago • 2 comments

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

nizhenliang avatar Feb 16 '23 07:02 nizhenliang

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

nypyp avatar Mar 10 '24 08:03 nypyp

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

nypyp avatar Mar 10 '24 09:03 nypyp