Skip to content

Commit

Permalink
trying to fix M1 apple #523
Browse files Browse the repository at this point in the history
  • Loading branch information
carsen-stringer committed Jan 12, 2023
1 parent 9a433ae commit ffacce8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cellpose/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def assign_device(use_torch=True, gpu=False, device=0):
try:
device = torch.device('mps')
gpu=True
cpu=False
core_logger.info('>>>> using GPU')
except:
cpu = True
Expand Down

0 comments on commit ffacce8

Please sign in to comment.