Spaces:
Running
Running
Update src/rvc.py
Browse files18 unmodified lines192021222324252635 unmodified lines6263646566676869707172737418 unmodified linesclass Config:def __init__(self, device, is_half):self.device = deviceself.is_half = is_halfself.n_cpu = 0self.gpu_name = Noneself.gpu_mem = None35 unmodified linesstrr = f.read().replace("3.7", "3.0")with open(BASE_DIR / "src" / "trainset_preprocess_pipeline_print.py", "w") as f:f.write(strr)elif torch.backends.mps.is_available():print("No supported N-card found, use MPS for inference")self.device = "mps"else:print("No supported N-card found, use CPU for inference")self.device = "cpu"self.is_half = Trueif self.n_cpu == 0:self.n_cpu = cpu_count()18 unmodified lines192021222324252635 unmodified lines62636465666718 unmodified linesclass Config:def __init__(self, device, is_half):self.device = 'cpu'self.is_half = Trueself.n_cpu = 0self.gpu_name = Noneself.gpu_mem = None35 unmodified linesstrr = f.read().replace("3.7", "3.0")with open(BASE_DIR / "src" / "trainset_preprocess_pipeline_print.py", "w") as f:f.write(strr)if self.n_cpu == 0:self.n_cpu = cpu_count()
src/rvc.py+2-9