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

Mistaken path change from "images" to "labels" #3719

Closed
tetelevm opened this issue Jun 21, 2021 · 1 comment · Fixed by #3720
Closed

Mistaken path change from "images" to "labels" #3719

tetelevm opened this issue Jun 21, 2021 · 1 comment · Fixed by #3720
Labels
question Further information is requested

Comments

@tetelevm
Copy link

Hello! I create dir /images/train/ on my GoogleDrive and put the train images into /images/train/images/ and labels into /images/train/labels/. I expect the script to look for labels in /images/train/labels, but it looks at the /labels/to_train/images/ (replaces the first word "images" instead of the last word). Isn't this a bug?

@tetelevm tetelevm added the question Further information is requested label Jun 21, 2021
@glenn-jocher
Copy link
Member

@tetelevm yes I see the same result in master. Code to reproduce:

import os
from utils.datasets import img2label_paths

img2label_paths(['dataset/images/images/img1.jpg'])

# output ['dataset/labels/images/img1.txt']

@glenn-jocher glenn-jocher linked a pull request Jun 21, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants