Skip to content

Update hubconf.py to reset LOGGER.level after load#8674

Merged
glenn-jocher merged 1 commit intomasterfrom
glenn-jocher-patch-1
Jul 22, 2022
Merged

Update hubconf.py to reset LOGGER.level after load#8674
glenn-jocher merged 1 commit intomasterfrom
glenn-jocher-patch-1

Conversation

@glenn-jocher
Copy link
Copy Markdown
Member

@glenn-jocher glenn-jocher commented Jul 22, 2022

Resolves silent outputs after model load.

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

Improve logging behavior during model creation in YOLOv5.

📊 Key Changes

  • Captured the initial logging level before changing it.
  • Restored the original logging level after model creation process.

🎯 Purpose & Impact

  • Purpose: Ensures that the user's logging level preferences are respected during model loading, making the library more considerate of the user's logging settings.
  • Impact: Users will experience less unwanted logging output when using YOLOv5 in their projects, leading to cleaner and more readable logs.

🔍 This update is particularly useful for developers looking to maintain a specific log verbosity within their applications or for those integrating YOLOv5 into larger software systems where log output needs to be controlled.

Resolves silent outputs after model load
@glenn-jocher glenn-jocher self-assigned this Jul 22, 2022
@glenn-jocher glenn-jocher merged commit 38721de into master Jul 22, 2022
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-1 branch July 22, 2022 09:54
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this pull request Sep 8, 2022
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