Spaces:
Running on Zero
Running on Zero
Update src/rvc.py
Browse files108 unmodified lines10911011111211311411511658 unmodified lines175176177176178108 unmodified lines
def load_hubert(device, is_half, model_path):
from fairseq import checkpoint_utils
import fairseq
torch.serialization.add_safe_globals([fairseq.data.dictionary.Dictionary])
models, saved_cfg, task = checkpoint_utils.load_model_ensemble_and_task([model_path], suffix='', )
hubert = models[0]58 unmodified lines )
wavfile.write(output_path, tgt_sr, audio_opt)
working_path = output_path working_path = output_pathsrc/rvc.py+3-1