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: handle integer labels in creating labels.txt in export_yoloV8 #493

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

Conversation

alibdz
Copy link

@alibdz alibdz commented Dec 1, 2023

The previous code in utils/export_yoloV8.py assumed label values are always strings, causing issues when the model has integer labels (like: 0, 1, 2, ...). This commit adds a check to handle both string and integer labels properly. If the label is an integer, it is converted to a string before writing to the 'labels.txt' file.

The previous code assumed label values are always strings, causing issues when the model has integer labels (like: 0, 1, 2, ...). This commit adds a check to handle both string and integer labels properly. If the label is an integer, it is converted to a string before writing to the 'labels.txt' file.
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.

1 participant