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

Make workspace size argument use MB #6878 #6879

Conversation

DavidBaldsiefen
Copy link
Contributor

@DavidBaldsiefen DavidBaldsiefen commented Mar 7, 2022

Closes #6878

To ensure compatibility with existing scripts etc., workspace sizes < 100MB are automatically adjusted to GB

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

Improved TensorRT memory workspace configuration for model export in Ultralytics YOLOv5.

📊 Key Changes

  • The default TensorRT workspace size has been changed from 4GB to 4096MB.
  • Added a check that adjusts the workspace size if a very small value (less than 100MB) is detected.

🎯 Purpose & Impact

  • Ensures more flexibility and precision in setting the memory workspace for TensorRT exports.
  • Prevents potential issues with configurations that set the workspace size too low, by automatically adjusting it.
  • The impact on users includes smoother TensorRT integration and potentially better performance during model export.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 7, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions YOLOv5 🚀 and Vision AI ⭐.

@github-actions github-actions bot added the Stale label Apr 7, 2022
@github-actions github-actions bot closed this Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change export.py workspace argument to MB instead of GB
2 participants