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

Allow to disable data/ prefix in YOLO export #689

Merged
merged 8 commits into from
Mar 28, 2022

Conversation

zhiltsov-max
Copy link
Contributor

@zhiltsov-max zhiltsov-max commented Mar 22, 2022

Summary

Closes #609

  • Added the add-path-prefix option to disable data/ prefix generation in YOLO export
  • Enforced forward slashes in YOLO annotation files

How to test

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT

@@ -147,6 +147,8 @@ Extra options for exporting to YOLO format:
(default: `False`)
- `--image-ext <IMAGE_EXT>` allow to specify image extension
for exporting dataset (default: use original or `.jpg`, if none)
- `--add-path-prefix` whether to include the `data/` path prefix
in the annotation files of not (default: `True`)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
in the annotation files of not (default: `True`)
in the annotation files or not (default: `True`)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, fixed.

@zhiltsov-max zhiltsov-max merged commit 6c11145 into develop Mar 28, 2022
@zhiltsov-max zhiltsov-max deleted the zm/yolo-prepend-data branch March 28, 2022 10:09
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