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

Fixed relative paths in darknet_images.py #7566

Merged
merged 1 commit into from
Apr 25, 2021

Conversation

juantoca
Copy link

What does this pull request solve?

Solves an issue in darknet_images.py that arrises when trying to label images provided through a relative path to a folder that starts with a dot or that has hidden folders inside the path.

Minimal reproduction instructions

run the following command:

python3 darknet_images.py --input ./IMAGES --weights /path/to/weights --config_file /path/to/cfg --data_file path/to/data --save_labels

Instead of generating a .txt for each image, it generates a single file at $PWD/.txt.

@AlexeyAB AlexeyAB merged commit 98fa47c into AlexeyAB:master Apr 25, 2021
juhong-rdv pushed a commit to juhong-rdv/darknet that referenced this pull request Dec 18, 2021
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