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

Optimize imports #9464

Merged
merged 5 commits into from
Sep 18, 2022
Merged

Optimize imports #9464

merged 5 commits into from
Sep 18, 2022

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Sep 18, 2022

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Streamlining imports and dependencies in the YOLOv5 codebase.

πŸ“Š Key Changes

  • Removed unused import torch.nn.functional from segment/train.py.
  • Adjusted whitespace in utils/loggers/clearml/clearml_utils.py for better readability.
  • Removed the parse_opt import from utils/loggers/comet/hpo.py file as it is no longer needed.

🎯 Purpose & Impact

  • 🧹 Codebase Cleanup: Removing unnecessary imports declutters the code, making it easier to maintain and understand, which can potentially reduce bugs.
  • πŸ“– Improved Readability: Minor spacing adjustments contribute to a more standardized code style.
  • πŸš€ Optimized Dependencies: By ensuring only necessary modules are imported, the app can run more efficiently, possibly reducing memory usage and startup time.

@glenn-jocher glenn-jocher self-assigned this Sep 18, 2022
@glenn-jocher glenn-jocher merged commit 95cef1a into master Sep 18, 2022
@glenn-jocher glenn-jocher deleted the optimize/imports branch September 18, 2022 10:42
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