yolov3-channel-and-layer-pruning
yolov3-channel-and-layer-pruning copied to clipboard
RuntimeError: Error(s) in loading state_dict for Darknet: size mismatch for module_list.81.Conv2d.weight: copying a param with shape torch.Size([75, 1024, 1, 1]) from checkpoint, the shape in current model is torch.Size([45, 1024, 1, 1]).
I am having this error after runnning test.py. i don't know whwhy it shows the filter size 75. how to change it ?
Kindly help.
python test.py --data data/fruit.data --cfg cfg/s_yolov3.cfg --weights weights/last.pt Namespace(batch_size=16, cfg='cfg/s_yolov3.cfg', conf_thres=0.001, data='data/fruit.data', device='', img_size=416, iou_thres=0.5, nms_thres=0.5, save_json=False, weights='weights/last.pt') Using CUDA device0 _CudaDeviceProperties(name='GeForce GTX 1080 Ti', total_memory=11264MB)
Traceback (most recent call last):
File "test.py", line 222, in
the pt does not match the cfg
I have the same question, have you solve the problem? Thank you.