Spaces:
Running
Running
Update src/rvc.py
Browse files18 unmodified lines1920212223222324252636 unmodified lines636465666768697071727374757618 unmodified lines
class Config: def __init__(self, device, is_half): self.device = 'cpu' self.is_half = True self.device = device self.is_half = is_half self.n_cpu = 0 self.gpu_name = None self.gpu_mem = None36 unmodified lines 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+10-2