fix Lint check

This commit is contained in:
Edresson 2020-07-29 21:21:42 -03:00 committed by erogol
parent a2ee48c28e
commit f91b9eeda1
2 changed files with 4 additions and 4 deletions

View File

@ -229,7 +229,7 @@ def vctk(root_path, meta_files=None, wavs_path='wav48'):
items = []
meta_files = glob(f"{os.path.join(root_path,'txt')}/**/*.txt", recursive=True)
for meta_file in meta_files:
txt, speaker_id, txt_file = os.path.relpath(meta_file,root_path).split(os.sep)
_, speaker_id, txt_file = os.path.relpath(meta_file, root_path).split(os.sep)
file_id = txt_file.split('.')[0]
if isinstance(test_speakers, list): # if is list ignore this speakers ids
if speaker_id in test_speakers: