Spaces:
Running
Running
Update src/rvc.py
Browse files18 unmodified lines1920212223222324252635 unmodified lines6263646566676869707165666718 unmodified lines
class Config: def __init__(self, device, is_half): self.device = device self.is_half = is_half self.device = 'cpu' self.is_half = True self.n_cpu = 0 self.gpu_name = None self.gpu_mem = None35 unmodified lines strr = 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 = True
if self.n_cpu == 0: self.n_cpu = cpu_count()src/rvc.py+2-9