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

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

Merged
merged 1 commit into from
Jul 22, 2022

Conversation

glenn-jocher
Copy link
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