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

Use tqdm.auto #7311

Merged
merged 1 commit into from
Apr 6, 2022
Merged

Use tqdm.auto #7311

merged 1 commit into from
Apr 6, 2022

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Apr 6, 2022

Automatically select proper tqdm submodule if available. I saw torch.hub is using this so following suit.

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Improved progress bar compatibility across different platforms.

πŸ“Š Key Changes

  • Changed the import statement from from tqdm import tqdm to from tqdm.auto import tqdm in multiple YAML files and Python scripts.

🎯 Purpose & Impact

  • Purpose: The update ensures that the progress bar (associated with the tqdm library) adapts to the environment where the code is executed, providing better support for Jupyter notebooks and various terminal interfaces.
  • Impact: This change will enhance the user experience by displaying more robust and visually appropriate progress indicators across different platforms, without altering any core functionalities of the YOLOv5 model. Users developing in notebooks or using different terminals should notice a smoother interface when running processes that utilize progress bars. πŸ”„πŸ’»πŸ“ˆ

@glenn-jocher glenn-jocher self-assigned this Apr 6, 2022
@glenn-jocher glenn-jocher merged commit f735458 into master Apr 6, 2022
@glenn-jocher glenn-jocher deleted the tqdm/auto branch April 6, 2022 10:20
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 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.

None yet

1 participant