OpenGVLab / InternImage

[CVPR 2023 Highlight] InternImage: Exploring Large-Scale Vision Foundation Models with Deformable Convolutions
https://arxiv.org/abs/2211.05778
MIT License
2.52k stars 233 forks source link

sampling_locations = (ref + grid * offset_scale).repeat(N_, 1, 1, 1, 1).flatten(3, 4) + \ RuntimeError: The size of tensor a (16) must match the size of tensor b (32) at non-singleton dimension 2 #238

Open Result1 opened 1 year ago

Result1 commented 1 year ago

tensor at non-singleton dimension 2

FindOne1 commented 11 months ago

#245 (comment)

It's still throwing this error.

gaodaren47297 commented 11 months ago

so,brother,have you already handled this problem?Now,I come across the same problem。

Ducking-WJ commented 1 month ago

I'm having a similar issue: sampling_locations = (ref + grid * offsetscale).repeat(N, 1, 1, 1, 1).flatten(3, 4) + \ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: The size of tensor a (86) must match the size of tensor b (256) at non-singleton dimension 2