Adding GPU support to the GUI in Apple Silicon#668
Adding GPU support to the GUI in Apple Silicon#668PikaPei wants to merge 1 commit intoMouseLand:mainfrom
Conversation
|
I tried installing cellpose from @PikaPei fork to see if I can get a GUI running with GPU support in Apple Silicon but I encountered the following error:
Executing the same segmentation in a python script I got the following traceback: By changing I am unfortunately not sure how to add this as an additional commit to this PR. |
|
As I explained there, I had to make a few more changes to get it to work properly for me. I've proposed a fork, but I think it will be easy enough to integrate into the main branch. |
|
thanks everyone for your help with this, we've merged in @OratHelm 's fork and it should be working (training included), let us know if not |
Hello Cellpose team!
I noticed that M1 GPU support is in the command-line mode in #523, but not yet in GUI.
This PR checks if the platform is 'arm', the torch.device will use 'mps'.
I have tested it on my M2 macbook, and hope it's useful.