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

AutoUpdate TensorFlow in export.py #9447

Merged
merged 1 commit into from
Sep 16, 2022
Merged

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Sep 16, 2022

May help resolve #9375

Signed-off-by: Glenn Jocher [email protected]

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Improved TensorFlow export compatibility for YOLOv5 on different hardware.

πŸ“Š Key Changes

  • Added a check to determine if TensorFlow or TensorFlow-CPU should be used based on CUDA availability.

🎯 Purpose & Impact

  • 🎯 Ensures the export script uses the correct TensorFlow package depending on the user's system (with or without GPU support), enhancing compatibility and user experience.
  • πŸš€ Potentially reduces setup complexity and errors for users exporting YOLOv5 models to TensorFlow SavedModel format, as the script now automatically selects the appropriate TensorFlow dependency.

@glenn-jocher glenn-jocher merged commit db06f49 into master Sep 16, 2022
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-1 branch September 16, 2022 18:44
@glenn-jocher glenn-jocher self-assigned this Sep 16, 2022
@glenn-jocher glenn-jocher mentioned this pull request Sep 16, 2022
2 tasks
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.

export to tensorflow fail
1 participant