-
Notifications
You must be signed in to change notification settings - Fork 561
DirectML support #1181
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: main
Are you sure you want to change the base?
DirectML support #1181
Conversation
|
@Teranis This looks good! Can you also add some documentation in the |
|
Hi, I modified the cellpose code so that it tries to use DirectML if CUDA and MPS are not available. I tried to follow the existing logic for it. I also included installation instructions (which are now a lot easier than before. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1181 +/- ##
==========================================
- Coverage 47.13% 47.08% -0.05%
==========================================
Files 16 16
Lines 3711 3761 +50
==========================================
+ Hits 1749 1771 +22
- Misses 1962 1990 +28 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hi @mrariden , Then, I would compare the model output to the ground truth. I'm confused about how to do these last steps or why you strictly stick to CLI. Kind regards, |
|
Hi @mrariden , |
See #1169 for details
Adds functions to implement torch-directml. This library uses Directx12 to accelerate PyTorch, which is slower than CUDA but has the benefit of being compatible with any Directx12 device on Windows, including AMD GPUs.
Also includes a working example!