mirror of
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-06-05 17:20:25 +08:00
optimize(rvc): move . into layers
This commit is contained in:
@@ -24,7 +24,7 @@ from fairseq import checkpoint_utils
|
||||
|
||||
# from models import SynthesizerTrn256#hifigan_nonsf
|
||||
# from lib.infer_pack.models import SynthesizerTrn256NSF as SynthesizerTrn256#hifigan_nsf
|
||||
from rvc.synthesizers import (
|
||||
from rvc.layers.synthesizers import (
|
||||
SynthesizerTrnMs256NSFsid as SynthesizerTrn256,
|
||||
) # hifigan_nsf
|
||||
from scipy.io import wavfile
|
||||
|
||||
@@ -19,6 +19,6 @@ model = RVC(
|
||||
|
||||
wav, sr = librosa.load(wav_path, sr=sampling_rate)
|
||||
|
||||
audio = model.inference(wav, sr, sid, f0_method=f0_method, f0_up_key=f0_up_key)
|
||||
audio = model.infer(wav, sr, sid, f0_method=f0_method, f0_up_key=f0_up_key)
|
||||
|
||||
soundfile.write(out_path, audio, sampling_rate)
|
||||
|
||||
Reference in New Issue
Block a user