Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'shape' #185

Open
zhebawomenjiuyaochangshenle opened this issue Mar 21, 2022 · 1 comment

Comments

@zhebawomenjiuyaochangshenle

File "D:\gitspace\Pytorch_Retinaface\data\wider_face.py", line 42, in getitem
height, width, _ = img.shape
AttributeError: 'NoneType' object has no attribute 'shape'

why it goes wrong?

@arch-raven
Copy link

Well that's probably because of openCV failing to load image (silently). Ensure that the path to image passed does exist. opencv doesn't throw errors (with imread & imwrite at least) instead fails silently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants