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

Add user_config_dir('Ultralytics') #4715

Merged
merged 2 commits into from
Sep 8, 2021
Merged

Conversation

glenn-jocher
Copy link
Member

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

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Implementation of user configuration directory for platform-specific settings and font management in YOLOv5.

πŸ“Š Key Changes

  • Added a new user_config_dir function to create or return a user-specific configuration directory.
  • Updated the check_font function to use the new user config directory for downloading missing fonts.

🎯 Purpose & Impact

  • πŸ›  Enhances platform compatibility: The user configuration path adapts to the operating system, improving functionality across Windows, Linux, and macOS.
  • πŸ–Œ Improves font management: Fonts are now managed in the user's configuration directory, making the process cleaner and less intrusive.
  • πŸ“ˆ Potential user impact: Both developers and users benefit from a neater installation with settings and resources stored in a dedicated, user-specific location, which can reduce permission issues and improve the overall user experience.

@glenn-jocher glenn-jocher changed the title Add user_config_dir Add user_config_dir() Sep 8, 2021
@glenn-jocher glenn-jocher changed the title Add user_config_dir() Add user_config_dir('Ultralytics') Sep 8, 2021
@glenn-jocher glenn-jocher merged commit 8e94bf6 into master Sep 8, 2021
@glenn-jocher glenn-jocher deleted the feature/user_config_dir branch September 8, 2021 16:14
@joaodiogocosta
Copy link
Contributor

@glenn-jocher this breaks AWS Lambdas because /home/... is not writable. Only /tmp is writable.

Is there a way to set the "user config dir" to another location?

CesarBazanAV pushed a commit to CesarBazanAV/yolov5 that referenced this pull request Sep 29, 2021
* Add `user_config_dir`

* Linux to .config
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
* Add `user_config_dir`

* Linux to .config
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.

2 participants