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

Added YOLOv5_AUTOINSTALL environment variable #7505

Merged
merged 2 commits into from
Apr 20, 2022

Conversation

jkocherhans
Copy link
Contributor

@jkocherhans jkocherhans commented Apr 20, 2022

Setting the environment variable YOLOv5_AUTOINSTALL=False will skip installing any missing dependencies as if the user had passed install=False to check_requirements.

See discussion #7472 for details.

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Enhanced control over automatic dependencies installation in YOLOv5.

πŸ“Š Key Changes

  • A new AUTOINSTALL global variable was introduced.
  • Conditional check for auto-installation of requirements based on the AUTOINSTALL environment variable.

🎯 Purpose & Impact

  • πŸŽ›οΈ Purpose: The change allows users to control whether dependencies should be automatically installed by setting an environment variable YOLOv5_AUTOINSTALL.
  • πŸ”§ Impact: Developers who prefer manual control over their environment can disable auto-install. Users can expect more predictable behavior in environments where automatic changes are restricted or not desired.

Setting the environment variable `YOLOv5_AUTOINSTALL=False` will
skip installing any missing dependencies as if the user had passed
`install=False` to `check_requirements`.
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ‘‹ Hello @jkocherhans, thank you for submitting a YOLOv5 πŸš€ PR! To allow your work to be integrated as seamlessly as possible, we advise you to:

  • βœ… Verify your PR is up-to-date with upstream/master. If your PR is behind upstream/master an automatic GitHub Actions merge may be attempted by writing /rebase in a new comment, or by running the following code, replacing 'feature' with the name of your local branch:
git remote add upstream https://github.com/ultralytics/yolov5.git
git fetch upstream
# git checkout feature  # <--- replace 'feature' with local branch name
git merge upstream/master
git push -u origin -f
  • βœ… Verify all Continuous Integration (CI) checks are passing.
  • βœ… Reduce changes to the absolute minimum required for your bug fix or feature addition. "It is not daily increase but daily decrease, hack away the unessential. The closer to the source, the less wastage there is." -Bruce Lee

@glenn-jocher glenn-jocher changed the title Added a way to skip dependency auto-installation. Added YOLOv5_AUTOINSTALL environment variable Apr 20, 2022
@glenn-jocher glenn-jocher linked an issue Apr 20, 2022 that may be closed by this pull request
@glenn-jocher glenn-jocher merged commit b77c8d9 into ultralytics:master Apr 20, 2022
@glenn-jocher
Copy link
Member

@jkocherhans PR is merged. Thank you for your contributions to YOLOv5 πŸš€ and Vision AI ⭐

BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
* Added a way to skip dependency auto-installation.

Setting the environment variable `YOLOv5_AUTOINSTALL=False` will
skip installing any missing dependencies as if the user had passed
`install=False` to `check_requirements`.

* Cleanup

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this pull request Sep 8, 2022
* Added a way to skip dependency auto-installation.

Setting the environment variable `YOLOv5_AUTOINSTALL=False` will
skip installing any missing dependencies as if the user had passed
`install=False` to `check_requirements`.

* Cleanup

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
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.

Using YOLOv5 with Pillow-SIMD
2 participants