Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cellpose/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def assign_device(use_torch=True, gpu=False, device=0):
if isinstance(device, str):
if device != "mps" or not(gpu and torch.backends.mps.is_available()):
device = int(device)
if gpu and use_gpu(use_torch=True):
if gpu and use_gpu(gpu_number=device, use_torch=use_torch):
try:
if torch.cuda.is_available():
device = torch.device(f'cuda:{device}')
Expand Down