Spaces:
Running on Zero
Running on Zero
Update src/mdx.py
Browse files65 unmodified lines66676869707172737465 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.model = params# Load the ONNX model using ONNX Runtime65 unmodified lines6667686970717273747565 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')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 Runtime
src/mdx.py+4-3