Spaces:
Running on Zero
Running on Zero
Update src/mdx.py
Browse files64 unmodified lines6566676869707164 unmodified linesdef __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.provider = ['CUDAExecutionProvider'] if processor >= 0 else ['CPUExecutionProvider']self.model = params64 unmodified lines656667686970717264 unmodified linesdef __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')device = torch.device('cuda:0') if torch.cuda.is_available() else torch.device('cpu')self.provider = ['CUDAExecutionProvider'] if processor >= 0 else ['CPUExecutionProvider']self.model = params
src/mdx.py+2-1