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

Annotator check_font() RANK -1 remove progress #4864

Merged
merged 2 commits into from
Sep 20, 2021
Merged

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Sep 20, 2021

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Enhancements to plotting utilities, including environment-aware font management and reduced download verbosity.

πŸ“Š Key Changes

  • Added os and rearranged import statements for better organization.
  • Introduced a RANK environment variable to control conditional font downloading.
  • Modified font download function to disable progress output, streamlining the process.

🎯 Purpose & Impact

  • πŸ”’ Font Download Control: By checking the RANK value, the system avoids unnecessary font downloads across distributed training nodes, potentially saving bandwidth and reducing clutter.
  • πŸš€ Performance: Disabling progress display during font download leads to a less verbose console, which is especially beneficial for users who are running scripts in automated environments or with logging.
  • ✨ Consistency and Organization: Reordering the imports improves the code consistency and may slightly aid in understanding the module's dependencies for future development.

@glenn-jocher glenn-jocher merged commit 8ad9e4e into master Sep 20, 2021
@glenn-jocher glenn-jocher deleted the update/Annotator branch September 20, 2021 11:57
CesarBazanAV pushed a commit to CesarBazanAV/yolov5 that referenced this pull request Sep 29, 2021
* Annotator `check_font()` RANK -1 remove progress

* Cleanup
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
* Annotator `check_font()` RANK -1 remove progress

* Cleanup
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.

None yet

1 participant