Skip to content
Open
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 clearvoice/clearvoice/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(self, args):
if free_gpu_id is not None:
args.use_cuda = 1
torch.cuda.set_device(free_gpu_id)
self.device = torch.device('cuda')
self.device = torch.device(f'cuda:{free_gpu_id}')
else:
# If no GPU is detected, use the CPU
#print("No GPU found. Using CPU.")
Expand Down