Spaces:
Running
Running
Update src/main.py
Browse files- src/main.py +1 -1
src/main.py
CHANGED
@@ -195,7 +195,7 @@ def voice_change(voice_model, vocals_path, output_path, pitch_change, f0_method,
|
|
195 |
device = 'cpu'
|
196 |
config = Config(device, False)
|
197 |
hubert_model = load_hubert(device, config.is_half, os.path.join(rvc_models_dir, 'hubert_base.pt'))
|
198 |
-
cpt, version, net_g, tgt_sr, vc = get_vc(device,
|
199 |
|
200 |
# convert main vocals
|
201 |
rvc_infer(rvc_index_path, index_rate, vocals_path, output_path, pitch_change, f0_method, cpt, version, net_g, filter_radius, tgt_sr, rms_mix_rate, protect, crepe_hop_length, vc, hubert_model)
|
|
|
195 |
device = 'cpu'
|
196 |
config = Config(device, False)
|
197 |
hubert_model = load_hubert(device, config.is_half, os.path.join(rvc_models_dir, 'hubert_base.pt'))
|
198 |
+
cpt, version, net_g, tgt_sr, vc = get_vc(device, False, config, rvc_model_path)
|
199 |
|
200 |
# convert main vocals
|
201 |
rvc_infer(rvc_index_path, index_rate, vocals_path, output_path, pitch_change, f0_method, cpt, version, net_g, filter_radius, tgt_sr, rms_mix_rate, protect, crepe_hop_length, vc, hubert_model)
|