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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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