pytorch-YOLOv4 icon indicating copy to clipboard operation
pytorch-YOLOv4 copied to clipboard

error:OpenCV can't augment image: 608 x 608

Open FYM1209 opened this issue 1 year ago • 3 comments

ValueError: could not broadcast input array from shape (348,376,3) into shape (370,376,3)

OpenCV can't augment image: 608 x 608

FYM1209 avatar Jul 09 '22 09:07 FYM1209

I had the same issue when trying to train tiny yolov4 model and this post helped me. I added hsv = list(hsv) and the error vanished

pavlik-tikhomirov avatar Aug 11 '22 11:08 pavlik-tikhomirov

in which file this hsv = list(hsv) change is to be made

ShivaThe avatar Oct 11 '22 12:10 ShivaThe

@ShivaThe I added after this line and error solved. https://github.com/Tianxiaomo/pytorch-YOLOv4/blob/master/dataset.py#L140

ozora-ogino avatar Oct 26 '22 10:10 ozora-ogino