-
-
Notifications
You must be signed in to change notification settings - Fork 17.4k
[Snyk] Security upgrade torch from 1.13.1 to 2.2.0 #13693
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
base: master
Are you sure you want to change the base?
Conversation
The following vulnerabilities are fixed by pinning transitive dependencies: - https://snyk.io/vuln/SNYK-PYTHON-TORCH-14534878
|
👋 Hello @glenn-jocher, thank you for submitting a
For more guidance, please refer to our Contributing Guide. Don't hesitate to leave a comment if you have any questions. Thank you for contributing to Ultralytics! 🚀 |
UltralyticsAssistant
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔍 PR Review
Made with ❤️ by Ultralytics Actions
Clean, minimal change, but the new torch>=2.2.0 minimum should be paired with a compatible torchvision minimum to avoid dependency-resolution and runtime compatibility issues. Addressing that would make this PR safe to merge.
💬 Posted 1 inline comment
| scipy>=1.4.1 | ||
| thop>=0.1.1 # FLOPs computation | ||
| torch>=1.8.0 # see https://pytorch.org/get-started/locally (recommended) | ||
| torch>=2.2.0 # see https://pytorch.org/get-started/locally (recommended) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
torch to >=2.2.0 without also updating the minimum torchvision is likely to produce incompatible installs (pip can resolve an invalid pair) and runtime import/ABI errors. torchvision is tightly coupled to torch versions; please raise the torchvision minimum to a compatible baseline for torch==2.2.x (and consider aligning any other PyTorch-adjacent deps if applicable).
Snyk has created this PR to fix 1 vulnerabilities in the pip dependencies of this project.
Snyk changed the following file(s):
requirements.txtImportant
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Out-of-bounds Read
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Bumps the minimum PyTorch dependency to
torch>=2.2.0to address Snyk-reported security concerns and keep the project aligned with newer PyTorch releases 🔒🚀📊 Key Changes
requirements.txtto requiretorch>=2.2.0(fromtorch>=1.8.0).🎯 Purpose & Impact