Spaces:
Running on Zero
Running on Zero
Update src/main.py
Browse files191 unmodified lines192193194195196197198199191 unmodified linesdef voice_change(voice_model, vocals_path, output_path, pitch_change, f0_method, index_rate, filter_radius, rms_mix_rate, protect, crepe_hop_length, is_webui):rvc_model_path, rvc_index_path = get_rvc_model(voice_model, is_webui)device = 'cuda:0'config = Config(device, True)hubert_model = load_hubert(device, config.is_half, os.path.join(rvc_models_dir, 'hubert_base.pt'))cpt, version, net_g, tgt_sr, vc = get_vc(device, config.is_half, config, rvc_model_path)191 unmodified lines192193194195196197198199191 unmodified linesdef voice_change(voice_model, vocals_path, output_path, pitch_change, f0_method, index_rate, filter_radius, rms_mix_rate, protect, crepe_hop_length, is_webui):rvc_model_path, rvc_index_path = get_rvc_model(voice_model, is_webui)device = 'cpu'config = Config(device, False)hubert_model = load_hubert(device, config.is_half, os.path.join(rvc_models_dir, 'hubert_base.pt'))cpt, version, net_g, tgt_sr, vc = get_vc(device, config.is_half, config, rvc_model_path)
src/main.py+2-2