Spaces:
Running on Zero
Running on Zero
Update src/mdx.py
Browse files65 unmodified lines6667686970716970717273747565 unmodified lines
# 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.device = torch.device('cuda:0') if torch.cuda.is_available() else torch.device('cpu') #self.provider = ['CUDAExecutionProvider'] if processor >= 0 else ['CPUExecutionProvider'] self.provider = ['CPUExecutionProvider'] self.model = params
# Load the ONNX model using ONNX Runtimesrc/mdx.py+4-3