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

Training attempts to read non-image file and stops #36

Open
drjoeCV opened this issue Jan 14, 2022 · 1 comment
Open

Training attempts to read non-image file and stops #36

drjoeCV opened this issue Jan 14, 2022 · 1 comment

Comments

@drjoeCV
Copy link

drjoeCV commented Jan 14, 2022

Line 196 in train.py creates a list of image paths
eval_img_paths = [os.path.join('./images/',s) for s in eval_img_names]
but since the./ images folder contains two subfolders (readme and tiny_val) they will be included in the list. This will cause an IsADirectoryError from PIL when Image.open(img_path) is called later.

duanzhiihao added a commit that referenced this issue Jan 14, 2022
@duanzhiihao
Copy link
Owner

Thanks. I just fixed it.

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