when i tested the directory of image files of Inference with pretrained models, i have the "NoneType' object has no attribute 'astype“ error ,ask for help !thank you !
PYTHONPATH environment variable: ?python --version output: 2.7.14You probably gives it an invalid (corrupted, unreadable by opencv) image.
I had the same issue. I implemented an except cv2.error as e in my version of infer_simple.py but did not work.
Most helpful comment
You probably gives it an invalid (corrupted, unreadable by opencv) image.