tanluren / yolov3-channel-and-layer-pruning

yolov3 yolov4 channel and layer pruning, Knowledge Distillation 层剪枝,通道剪枝,知识蒸馏
Apache License 2.0
1.5k stars 446 forks source link

yolov4-tiny.cfg RuntimeError: shape '[256, 384, 3, 3]' is invalid for input of size 875238 #97

Open RnYngxx opened 4 years ago

RnYngxx commented 4 years ago

The following error occurred when I use yolov4-tiny.cfg: Traceback (most recent call last): File "/Users/ren_yx/PycharmProjects/Object detection/YOLO_pruning/train.py", line 542, in train() # train normally File "/Users/ren_yx/PycharmProjects/Object detection/YOLO_pruning/train.py", line 143, in train cutoff = load_darknet_weights(model, weights) File "/Users/ren_yx/PycharmProjects/Object detection/YOLO_pruning/models.py", line 353, in load_darknet_weights conv_w = torch.from_numpy(weights[ptr:ptr + num_w]).view_as(conv_layer.weight) RuntimeError: shape '[256, 384, 3, 3]' is invalid for input of size 875238

tanluren commented 4 years ago

上传的cfg不对,已更新