1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-07 19:40:44 +08:00

fix(dml): train extract_f0_print error

ModuleNotFoundError: No module named 'torch.privateuseone' due to new prosess
This commit is contained in:
源文雨
2025-11-21 16:52:17 +08:00
parent 7fa122045f
commit 43d19eb00e
13 changed files with 50 additions and 39 deletions

View File

@@ -11,14 +11,14 @@ class F0Predictor(object):
f0_min=50,
f0_max=1100,
sampling_rate=44100,
device: Optional[str] = None,
device: Optional[Union[str, torch.device]] = None,
):
self.hop_length = hop_length
self.f0_min = f0_min
self.f0_max = f0_max
self.sampling_rate = sampling_rate
if device is None:
device = "cuda:0" if torch.cuda.is_available() else "cpu"
if not device:
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
self.device = device
def compute_f0(