InternImage icon indicating copy to clipboard operation
InternImage copied to clipboard

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

Open Result1 opened this issue 2 years ago • 4 comments

tensor at non-singleton dimension 2

Result1 avatar Sep 26 '23 08:09 Result1

#245 (comment)

It's still throwing this error.

FindOne1 avatar Dec 04 '23 07:12 FindOne1

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

gaodaren47297 avatar Dec 08 '23 08:12 gaodaren47297

I'm having a similar issue: sampling_locations = (ref + grid * offset_scale).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

Ducking-WJ avatar Oct 02 '24 15:10 Ducking-WJ