Skip to content

Annotator check_font() RANK -1 remove progress#4864

Merged
glenn-jocher merged 2 commits into
masterfrom
update/Annotator
Sep 20, 2021
Merged

Annotator check_font() RANK -1 remove progress#4864
glenn-jocher merged 2 commits into
masterfrom
update/Annotator

Conversation

@glenn-jocher

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

Copy link
Copy Markdown
Member

🛠️ 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
@glenn-jocher glenn-jocher mentioned this pull request Oct 12, 2021
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.

1 participant