mirror of
https://github.com/svc-develop-team/so-vits-svc.git
synced 2025-01-09 04:27:31 +08:00
Merge branch '4.0-Vec768-Layer12' into NT-v1.0
This commit is contained in:
commit
ef568841a9
@ -1,7 +1,6 @@
|
||||
from modules.F0Predictor.F0Predictor import F0Predictor
|
||||
import pyworld
|
||||
import numpy as np
|
||||
import scipy
|
||||
|
||||
class DioF0Predictor(F0Predictor):
|
||||
def __init__(self,hop_length=512,f0_min=50,f0_max=1100,sampling_rate=44100):
|
||||
@ -83,4 +82,4 @@ class DioF0Predictor(F0Predictor):
|
||||
f0 = pyworld.stonemask(wav.astype(np.double), f0, t, self.sampling_rate)
|
||||
for index, pitch in enumerate(f0):
|
||||
f0[index] = round(pitch, 1)
|
||||
return self.interpolate_f0(self.resize_f0(f0, p_len))
|
||||
return self.interpolate_f0(self.resize_f0(f0, p_len))
|
||||
|
@ -1,7 +1,6 @@
|
||||
from modules.F0Predictor.F0Predictor import F0Predictor
|
||||
import pyworld
|
||||
import numpy as np
|
||||
import scipy
|
||||
|
||||
class HarvestF0Predictor(F0Predictor):
|
||||
def __init__(self,hop_length=512,f0_min=50,f0_max=1100,sampling_rate=44100):
|
||||
@ -79,4 +78,4 @@ class HarvestF0Predictor(F0Predictor):
|
||||
frame_period=1000 * self.hop_length / self.sampling_rate,
|
||||
)
|
||||
f0 = pyworld.stonemask(wav.astype(np.double), f0, t, self.sampling_rate)
|
||||
return self.interpolate_f0(self.resize_f0(f0, p_len))
|
||||
return self.interpolate_f0(self.resize_f0(f0, p_len))
|
||||
|
@ -41,7 +41,6 @@ def process_one(filename, hmodel,f0p):
|
||||
)
|
||||
np.save(f0_path, np.asanyarray((f0,uv),dtype=object))
|
||||
|
||||
|
||||
spec_path = filename.replace(".wav", ".spec.pt")
|
||||
if not os.path.exists(spec_path):
|
||||
# Process spectrogram
|
||||
|
Loading…
Reference in New Issue
Block a user