I'm proposing this change because the existing implementation gave me an error like this:
Traceback (most recent call last):
File "test_yolo.py", line 194, in <module>
_main(parser.parse_args())
File "test_yolo.py", line 119, in _main
image_type = imghdr.what(os.path.join(test_path, image_file))
File "C:\Users\Iver\Anaconda3\envs\yad2k\lib\imghdr.py", line 16, in what
f = open(file, 'rb')
PermissionError: [Errno 13] Permission denied: 'images\\out'
Environment: Windows 10, Anaconda 3 64 bit, Python 3.6.1
I'm proposing this change because the existing implementation gave me an error like this:
Environment: Windows 10, Anaconda 3 64 bit, Python 3.6.1