From f49d60d6bb7fec124ff859431b048fe423b59627 Mon Sep 17 00:00:00 2001 From: Tundra Work Date: Sun, 18 Feb 2024 07:13:09 +0000 Subject: [PATCH] fix: 1A-Dataset formatting doesn't work if using a empty 'Audio dataset folder' --- GPT_SoVITS/prepare_datasets/2-get-hubert-wav32k.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPT_SoVITS/prepare_datasets/2-get-hubert-wav32k.py b/GPT_SoVITS/prepare_datasets/2-get-hubert-wav32k.py index b8355dd..9e137a9 100644 --- a/GPT_SoVITS/prepare_datasets/2-get-hubert-wav32k.py +++ b/GPT_SoVITS/prepare_datasets/2-get-hubert-wav32k.py @@ -98,7 +98,7 @@ for line in lines[int(i_part)::int(all_parts)]: try: # wav_name,text=line.split("\t") wav_name, spk_name, language, text = line.split("|") - if (inp_wav_dir !=None): + if (inp_wav_dir != ""): wav_name = os.path.basename(wav_name) wav_path = "%s/%s"%(inp_wav_dir, wav_name)