Skip to content

Commit ce50456

Browse files
committed
working
1 parent 9b7bd5a commit ce50456

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cellpose/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,8 @@ def _compute_masks(self, shape, dP, cellprob, flow_threshold=0.4, cellprob_thres
420420
""" compute masks from flows and cell probability """
421421

422422
if self.device.type == "mps" and do_3D:
423-
models_logger.warning("MPS does not support 3D post-processing, switching to CPU for 3D stitching")
424-
do_3D = False
423+
models_logger.warning("MPS does not support 3D post-processing, switching to CPU")
424+
self.device = torch.device("cpu")
425425
Lz, Ly, Lx = shape[:3]
426426
tic = time.time()
427427
if do_3D:

0 commit comments

Comments
 (0)