We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 892b392 + cbb3cb7 commit 70c0d07Copy full SHA for 70c0d07
1 file changed
cellpose/core.py
@@ -77,7 +77,7 @@ def assign_device(use_torch=True, gpu=False, device=0):
77
if isinstance(device, str):
78
if device != "mps" or not(gpu and torch.backends.mps.is_available()):
79
device = int(device)
80
- if gpu and use_gpu(use_torch=True):
+ if gpu and use_gpu(gpu_number=device, use_torch=use_torch):
81
try:
82
if torch.cuda.is_available():
83
device = torch.device(f'cuda:{device}')
0 commit comments