From 250b1c73cba60db18148b21ec5fbce01fd9d19bc Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Thu, 27 Feb 2025 20:49:17 +0800 Subject: [PATCH] fix 24k to 48k inference --- GPT_SoVITS/inference_webui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPT_SoVITS/inference_webui.py b/GPT_SoVITS/inference_webui.py index b464382..4eaeca6 100644 --- a/GPT_SoVITS/inference_webui.py +++ b/GPT_SoVITS/inference_webui.py @@ -503,7 +503,7 @@ def audio_sr(audio,sr): sr_model=AP_BWE(device) except FileNotFoundError: gr.Warning(i18n("你没有下载超分模型的参数,因此不进行超分。如想超分请先参照教程把文件下载好")) - return audio,sr + return audio.cpu().detach().numpy(),sr return sr_model(audio,sr)