ayooshkathuria / YOLO_v3_tutorial_from_scratch

Accompanying code for Paperspace tutorial series "How to Implement YOLO v3 Object Detector from Scratch"
https://blog.paperspace.com/how-to-implement-a-yolo-object-detector-in-pytorch/
2.32k stars 724 forks source link

ISSUE:'NoneType' object has no attribute 'shape' #37

Closed MidiyaZhu closed 5 years ago

MidiyaZhu commented 5 years ago

When I ran the detect.py, the error issued as
` img_w, img_h = img.shape[1], img.shape[0]

AttributeError: 'NoneType' object has no attribute 'shape'` in util.py I think it might be the question of loading img, but when I debug darknet.py, I could get the result of img.

Anyone could help me solve the problem? Thanks a lot.

anjanaouseph commented 4 years ago

Hi @MidiyaZhu Can u help me with it? I have encountered the same issue.