mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-06 03:57:44 +08:00
fix: 1A-Dataset formatting doesn't work if using a empty 'Audio dataset folder'
This commit is contained in:
parent
8ed4d157b3
commit
f49d60d6bb
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user