Skip to content

Commit 887606d

Browse files
Merge pull request #1466 from MouseLand/mps_docs
fix docs for mps #1455
2 parents e427452 + 516bb0c commit 887606d

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

cellpose/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ def get_arg_parser():
2626
# settings for CPU vs GPU
2727
hardware_args = parser.add_argument_group("Hardware Arguments")
2828
hardware_args.add_argument("--use_gpu", action="store_true",
29-
help="use gpu if torch with cuda installed")
29+
help="use gpu or mps if torch with cuda installed")
3030
hardware_args.add_argument(
3131
"--gpu_device", required=False, default="0", type=str,
32-
help="which gpu device to use, use an integer for torch, or mps for M1")
32+
help="which gpu device to use in pytorch, specified as an integer")
3333

3434
# settings for locating and formatting images
3535
input_img_args = parser.add_argument_group("Input Image Arguments")

docs/installation.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,11 @@ this code at the beginning of your notebook before you import cellpose:
3131
M1-M3 Mac installation
3232
~~~~~~~~~~~~~~~~~~~~~~~
3333

34-
Support for M1-M3 should work out-of-the-box with Cellpose now! Please submit an issue if it's not working.
35-
36-
From the command line you can choose the Mac device explicitly with
34+
If you specify ``--use_gpu`` on the command line, Cellpose will automatically use the MPS acceleration for Apple Silicon if you have a compatible version of PyTorch installed. Please submit an issue if it's not working.
3735

3836
::
3937

40-
python -m cellpose --dir path --gpu_device mps --use_gpu
38+
python -m cellpose --dir path --use_gpu
4139

4240
AMD GPU ROCm installation
4341
~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)