Patch MPS torch.gather to avoid errors on changing max_det#17057
Patch MPS torch.gather to avoid errors on changing max_det#17057Y-T-G wants to merge 9 commits intoultralytics:mainfrom
max_det#17057Conversation
|
👋 Hello @Y-T-G, thank you for submitting your pull request to the
If you need further guidance, don't hesitate to consult our Contributing Guide. Thank you for helping make Ultralytics even better! 🚀✨ |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17057 +/- ##
==========================================
+ Coverage 74.01% 74.04% +0.03%
==========================================
Files 127 127
Lines 17099 17105 +6
==========================================
+ Hits 12656 12666 +10
+ Misses 4443 4439 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
max_det
Resolves #17054
Patch based on dbolya/tomesd#15
MRE
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Added a fix for a
torch.gatherbug on macOS with Metal Performance Shaders (MPS), improving compatibility. 🛠️🍎📊 Key Changes
torch_gatherpatch to address a known MPS-related issue intorch.gather.MACOScheck).🎯 Purpose & Impact
torch.gatherwhen running PyTorch on macOS using MPS, ensuring stability and correctness.