Torch-Pruning icon indicating copy to clipboard operation
Torch-Pruning copied to clipboard

expected input[8, 77, 80, 80] to have 128 channels, but got 77 channels instead

Open naivewx opened this issue 3 years ago • 1 comments

when I use 'Torch-Pruning/examples/coco_yolo/train_with_pruning.py' to pure yolov5s , will have error'RuntimeError: Given groups=1, weight of size [255, 128, 1, 1], expected input[8, 77, 80, 80] to have 128 channels, but got 77 channels instead' @VainF @JonnyKong @Serjio42 ,could you help check this issue?

naivewx avatar Aug 02 '22 10:08 naivewx

put all the files which include Torch-Pruning to your file which include yolov5/train.py.

YellenYeason avatar Sep 11 '22 06:09 YellenYeason