mirror of
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-06-07 19:00:23 +08:00
optimize(f0): move some f0s into rvc.f0
This commit is contained in:
@@ -89,7 +89,7 @@ class FeatureInput(object):
|
||||
self.model_rmvpe = RMVPE(
|
||||
"assets/rmvpe/rmvpe.pt", is_half=False, device="cpu"
|
||||
)
|
||||
f0 = self.model_rmvpe.infer_from_audio(x, thred=0.03)
|
||||
f0 = self.model_rmvpe.infer_from_audio(x, threshold=0.03)
|
||||
return f0
|
||||
|
||||
def coarse_f0(self, f0):
|
||||
|
||||
@@ -52,7 +52,7 @@ class FeatureInput(object):
|
||||
self.model_rmvpe = RMVPE(
|
||||
"assets/rmvpe/rmvpe.pt", is_half=is_half, device="cuda"
|
||||
)
|
||||
f0 = self.model_rmvpe.infer_from_audio(x, thred=0.03)
|
||||
f0 = self.model_rmvpe.infer_from_audio(x, threshold=0.03)
|
||||
return f0
|
||||
|
||||
def coarse_f0(self, f0):
|
||||
|
||||
@@ -50,7 +50,7 @@ class FeatureInput(object):
|
||||
self.model_rmvpe = RMVPE(
|
||||
"assets/rmvpe/rmvpe.pt", is_half=False, device=device
|
||||
)
|
||||
f0 = self.model_rmvpe.infer_from_audio(x, thred=0.03)
|
||||
f0 = self.model_rmvpe.infer_from_audio(x, threshold=0.03)
|
||||
return f0
|
||||
|
||||
def coarse_f0(self, f0):
|
||||
|
||||
@@ -47,7 +47,7 @@ from torch.nn.parallel import DistributedDataParallel as DDP
|
||||
from torch.utils.data import DataLoader
|
||||
from torch.utils.tensorboard import SummaryWriter
|
||||
|
||||
from rvc import utils
|
||||
from rvc.layers import utils
|
||||
from infer.lib.train.data_utils import (
|
||||
DistributedBucketSampler,
|
||||
TextAudioCollate,
|
||||
|
||||
Reference in New Issue
Block a user