Towards-Realtime-MOT icon indicating copy to clipboard operation
Towards-Realtime-MOT copied to clipboard

load_darknet_weights error

Open nimochuanzhang opened this issue 4 years ago • 2 comments

Traceback (most recent call last): File "E:/jpf/Towards-Realtime-MOT/train.py", line 221, in opt=opt,

File "E:/jpf/Towards-Realtime-MOT/train.py", line 77, in train load_darknet_weights(model, osp.join(weights_from, 'darknet53.conv.74'))

File "E:\jpf\Towards-Realtime-MOT\models.py", line 346, in load_darknet_weights bn_b = torch.from_numpy(weights[ptr:ptr + num_b]).view_as(bn_layer.bias)

RuntimeError: shape '[512]' is invalid for input of size 0

help,help,help

nimochuanzhang avatar Oct 09 '20 15:10 nimochuanzhang

我也遇到了这个问题,请问解决了吗

0x45f avatar Jan 06 '21 12:01 0x45f

I have the same issue did you find the solution?

DariusCorp avatar Mar 07 '23 19:03 DariusCorp