From 443449e4b644d3233b10c836fb95264687344521 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 10 Nov 2024 14:25:00 +0000 Subject: [PATCH] =?UTF-8?q?=D0=90=D0=B2=D1=82=D0=BE=D0=BC=D0=B0=D1=82?= =?UTF-8?q?=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=BE=D0=B5=20=D1=84=D0=BE=D1=80?= =?UTF-8?q?=D0=BC=D0=B0=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BA=D0=BE=D0=B4=D0=B0=20=D1=81=20=D0=BF=D0=BE=D0=BC?= =?UTF-8?q?=D0=BE=D1=89=D1=8C=D1=8E=20black?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rvc/infer/infer.py | 3 ++- tabs/inference/inference_batch.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rvc/infer/infer.py b/rvc/infer/infer.py index 06bc631..8ce9c75 100644 --- a/rvc/infer/infer.py +++ b/rvc/infer/infer.py @@ -23,6 +23,7 @@ os.makedirs(EMBEDDERS_DIR, exist_ok=True) os.makedirs(RVC_MODELS_DIR, exist_ok=True) + # Загружает модель RVC и индекс по имени модели. def load_rvc_model(rvc_model): # Формируем путь к директории модели @@ -142,7 +143,7 @@ def rvc_infer( cpt, version, net_g, tgt_sr, vc = get_vc(model_path) # Загружаем аудиофайл audio = load_audio(input_path, 16000) - + # Формируем имя выходного файла base_name = os.path.splitext(os.path.basename(input_path))[0] output_path = os.path.join(output_dir, f"{base_name}_(Converted).{output_format}") diff --git a/tabs/inference/inference_batch.py b/tabs/inference/inference_batch.py index 2e27633..e857f63 100644 --- a/tabs/inference/inference_batch.py +++ b/tabs/inference/inference_batch.py @@ -107,7 +107,7 @@ def inference_batch_tab(): interactive=True, visible=True, ) - with gr.Column(scale=3): + with gr.Column(scale=3): pitch = gr.Slider( minimum=-24, maximum=24,