CornerNet-Lite icon indicating copy to clipboard operation
CornerNet-Lite copied to clipboard

dist = tag_mean.unsqueeze(1) - tag_mean.unsqueeze(2) RuntimeError: Dimension out of range (expected to be in range of [-2, 1], but got 2)

Open oftenliu opened this issue 6 years ago • 7 comments
trafficstars

oftenliu avatar Apr 25 '19 13:04 oftenliu

the same problem,i've met

h72001346 avatar Apr 26 '19 01:04 h72001346

but i used cuda 9 instead

h72001346 avatar Apr 26 '19 01:04 h72001346

the same problem,i've met,do you know how to solve it now?

qianzhang2018 avatar May 08 '19 02:05 qianzhang2018

i can work now,batch size can't be 1,do you set it the same? i set 2,now it works

qianzhang2018 avatar May 08 '19 03:05 qianzhang2018

if I want to set batch_size = 1,how to solve the problem?

sun201711 avatar Aug 01 '19 10:08 sun201711

i can work now,batch size can't be 1,do you set it the same? i set 2,now it works

WHY? Why does it work?! It solves literally everything!

I had chunk_size = [1, 1, 1], batch_size = 3. And it provoked my PC reboot for CornerNet and this issue for CornerNet_Saccade. But with chunk_size = [2] or chunk_size = [2, 2, 2] everything works :) Thanks a lot!

GalyaZalesskaya avatar Nov 22 '19 11:11 GalyaZalesskaya

up to now, Is there an effective solution to this problem——use the bach_size == 1;

Glutton-zh avatar Apr 01 '20 07:04 Glutton-zh