Spaces:
Running on Zero
Running on Zero
Update src/mdx.py
Browse files64 unmodified lines65666768686970717264 unmodified lines def __init__(self, model_path: str, params: MDXModel, processor=DEFAULT_PROCESSOR):
# Set the device and the provider (CPU or CUDA) self.device = torch.device(f'cuda:{processor}') if processor >= 0 else torch.device('cpu') #self.device = torch.device(f'cuda:{processor}') if processor >= 0 else torch.device('cpu') device = torch.device('cuda:0') if torch.cuda.is_available() else torch.device('cpu') self.provider = ['CUDAExecutionProvider'] if processor >= 0 else ['CPUExecutionProvider']
self.model = paramssrc/mdx.py+2-1