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

Improved non-latin Annotator() plotting #7488

Merged
merged 5 commits into from
Apr 20, 2022
Merged

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Apr 20, 2022

May resolve #7460

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Improved support for non-Latin text in training data labels and UI elements.

πŸ“Š Key Changes

  • Addition of a check for non-ASCII class names in data labels, prompting the download of a compatible font if necessary.
  • Introduction of a progress parameter to the check_font function to show download progress.
  • Modification to Annotator class to better handle non-Latin text by selecting the appropriate font.

🎯 Purpose & Impact

  • πŸš€ Purpose: The primary goal is to ensure that YOLOv5 can effectively work with datasets that have non-Latin scripts (such as Asian, Arabic, Cyrillic, etc.) by automatically checking and downloading a font that supports these scripts, thus avoiding errors in label visualization.
  • πŸ’‘ Impact: Users working with international datasets will experience smoother setup and training processes, as well as improved display of non-Latin characters during training, evaluation, and inference stages. This will enhance the usability of YOLOv5 for a global user base.

@glenn-jocher glenn-jocher self-assigned this Apr 20, 2022
@glenn-jocher glenn-jocher changed the title Improved non-latin labels Annotator plotting Improved non-latin Annotator() plotting Apr 20, 2022
@glenn-jocher glenn-jocher merged commit c9042dc into master Apr 20, 2022
@glenn-jocher glenn-jocher deleted the update/annotator branch April 20, 2022 00:32
glenn-jocher added a commit that referenced this pull request Apr 20, 2022
Follows #7488. Correct bug where fonts were downloading to current working directory rather than global CONFIG_DIR
glenn-jocher added a commit that referenced this pull request Apr 20, 2022
Follows #7488. Correct bug where fonts were downloading to current working directory rather than global CONFIG_DIR
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
* Improved non-latin labels Annotator plotting

May resolve ultralytics#7460

* Update train.py

* Update train.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add progress arg

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
Follows ultralytics#7488. Correct bug where fonts were downloading to current working directory rather than global CONFIG_DIR
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this pull request Sep 8, 2022
* Improved non-latin labels Annotator plotting

May resolve ultralytics#7460

* Update train.py

* Update train.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add progress arg

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this pull request Sep 8, 2022
Follows ultralytics#7488. Correct bug where fonts were downloading to current working directory rather than global CONFIG_DIR
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.

how to change lebels to Korean?
1 participant