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 check_requirements() #1853

Merged
merged 4 commits into from
Jan 7, 2021
Merged

Add check_requirements() #1853

merged 4 commits into from
Jan 7, 2021

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Jan 6, 2021

This PR adds check_requirements() to verify that all required dependencies are installed per requirements.txt. This may help identify dependency problems before any code is run and provide better feedback to users such as issue #1849.

Screen Shot 2021-01-05 at 11 48 55 PM

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

Added automatic requirements check to ensure dependencies are met when running detect.py, test.py, and train.py.

📊 Key Changes

  • Imported the new function check_requirements in detect.py, test.py, and train.py.
  • Defined check_requirements in utils/general.py to verify that all necessary Python package requirements are met.

🎯 Purpose & Impact

  • Integrity: Ensures that the environment meets the project's dependency criteria, preventing runtime errors due to missing or outdated packages.
  • User Experience: Provides users with immediate feedback if their environment does not meet the necessary conditions to run the code properly.
  • Convenience: Automates the process of dependency verification, streamlining the setup process for new users.

@glenn-jocher
Copy link
Member Author

/rebase

@glenn-jocher glenn-jocher merged commit e77c77f into master Jan 7, 2021
@glenn-jocher glenn-jocher deleted the check_requirements branch January 7, 2021 00:35
KMint1819 pushed a commit to KMint1819/yolov5 that referenced this pull request May 12, 2021
* Add check_requirements()

* add import

* parameterize filename

* add to detect, test
taicaile pushed a commit to taicaile/yolov5 that referenced this pull request Oct 12, 2021
* Add check_requirements()

* add import

* parameterize filename

* add to detect, test
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
* Add check_requirements()

* add import

* parameterize filename

* add to detect, test
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.

AttributeError: Can't get attribute 'SiLU' on <module 'torch.nn.modules.activation'
1 participant