Zhongdao / Towards-Realtime-MOT

Joint Detection and Embedding for fast multi-object tracking
MIT License
2.38k stars 539 forks source link

load_darknet_weights error #196

Open nimochuanzhang opened 3 years ago

nimochuanzhang commented 3 years ago

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

0x45f commented 3 years ago

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

DariusCorp commented 1 year ago

I have the same issue did you find the solution?