pytorch-yolo-v3 icon indicating copy to clipboard operation
pytorch-yolo-v3 copied to clipboard

'NoneType' object has no attribute 'shape'

Open chuckwoody opened this issue 6 years ago • 3 comments

Loading network..... Network successfully loaded Traceback (most recent call last): File "D:/pytorch-yolo-v3-master/detect.py", line 150, in batches = list(map(prep_image, imlist, [inp_dim for x in range(len(imlist))])) File "D:\pytorch-yolo-v3-master\preprocess.py", line 39, in prep_image dim = orig_im.shape[1], orig_im.shape[0] AttributeError: 'NoneType' object has no attribute 'shape'

chuckwoody avatar Jul 28 '19 06:07 chuckwoody

I got the same error. How to fix it?

ZongkaiLiu avatar Sep 10 '20 01:09 ZongkaiLiu

same error,help!!

everRoc avatar Feb 12 '21 09:02 everRoc

OK, I got the answer...The dictionary of images can not contain Chinese characters, damn it!

everRoc avatar Feb 13 '21 04:02 everRoc