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

can medsam run on a macbook pro ? is there support for pytorch's mps backend ? #331

Open
inventcures opened this issue Oct 15, 2024 · 0 comments

Comments

@inventcures
Copy link

inventcures commented Oct 15, 2024

I followed the instructions on the github
but am getting this error to run the included inferencing example
"AssertionError: Torch not compiled with CUDA enabled"

Is there support in the medsam code for pytorch's MPS backend( Metal Performance Shaders),
which is optimized for Apple's M-series GPUs ?

import torch

device = torch.device("mps") if torch.has_mps else torch.device("cpu")

model.to(device)
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

No branches or pull requests

1 participant