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

Remove check_requirements(('tensorflow>=2.4.1',)) #5476

Merged
merged 1 commit into from
Nov 3, 2021

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Nov 3, 2021

check_requirements() is unreliable for large packages like torch and tensorflow that may have multiple installation routes (i.e. conda, pip, tensorflow-cpu, etc.)

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Improved model inference support in detect.py.

πŸ“Š Key Changes

  • Removed the TensorFlow version check requirement in the detection script.

🎯 Purpose & Impact

  • πŸ”¨ Simplify the code by eliminating unnecessary TensorFlow version checks.
  • πŸš€ Potentially reduce import times and streamline the running process for TensorFlow users.
  • 🀝 Enhances user experience by removing a step in the setup process for running detections with TensorFlow models.

`check_requirements()` is unreliable for large packages like torch and tensorflow that may have multiple installation routes (i.e. conda, pip, tensorflow-cpu, etc.)
@glenn-jocher glenn-jocher merged commit 0eb37ad into master Nov 3, 2021
@glenn-jocher glenn-jocher deleted the fix/detect_tf_check branch November 3, 2021 13:51
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
`check_requirements()` is unreliable for large packages like torch and tensorflow that may have multiple installation routes (i.e. conda, pip, tensorflow-cpu, etc.)
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.

requirements: tensorflow>=2.4.1 not found and is required by YOLOv5, attempting auto-update...
1 participant