From 74edd5dcf903f58270832e2bd79e28640f47709f Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Wed, 7 Aug 2024 17:12:53 +0800 Subject: [PATCH] Add files via upload --- GPT_SoVITS/prepare_datasets/1-get-text.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GPT_SoVITS/prepare_datasets/1-get-text.py b/GPT_SoVITS/prepare_datasets/1-get-text.py index a1049b3..7af6c10 100644 --- a/GPT_SoVITS/prepare_datasets/1-get-text.py +++ b/GPT_SoVITS/prepare_datasets/1-get-text.py @@ -20,6 +20,7 @@ from tqdm import tqdm from text.cleaner import clean_text from transformers import AutoModelForMaskedLM, AutoTokenizer import numpy as np +from tools.my_utils import clean_path # inp_text=sys.argv[1] # inp_wav_dir=sys.argv[2] @@ -84,6 +85,7 @@ if os.path.exists(txt_path) == False: def process(data, res): for name, text, lan in data: try: + name=clean_path(name) name = os.path.basename(name) print(name) phones, word2ph, norm_text = clean_text(