Skip to content

Fix "is directory" check in test_yolo.py#111

Open
iver56 wants to merge 1 commit intoallanzelener:masterfrom
iver56:fix-directory-check
Open

Fix "is directory" check in test_yolo.py#111
iver56 wants to merge 1 commit intoallanzelener:masterfrom
iver56:fix-directory-check

Conversation

@iver56
Copy link

@iver56 iver56 commented Mar 15, 2018

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

@beipym
Copy link

beipym commented May 31, 2020

hey , i face the same error trying to run the code , what should i do ?

PermissionError: [Errno 13] Permission denied: 'images\\out' in windows

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

Successfully merging this pull request may close these issues.

2 participants